Skip to content
Snippets Groups Projects
  1. Jun 27, 2019
    • Stewart Miles's avatar
      Version 1.2.121 · 82c9cd8c
      Stewart Miles authored
      * Android Resolver: Fixed warning about missing Packages folder when loading
        XML dependencies files in versions of Unity without the package manager.
      * Android Resolver: Fixed resolution window progress bar exceeding 100%.
      * Android Resolver: If AndroidX is detected in the set of resolved libraries,
        the user will be prompted to enable the Jetifier.
      * Android Resolver: Improved text splitting in text area windows.
      * iOS Resolver: Added support for Unity's breaking changes to the Xcode API
        in 2019.3.+. Cocoapods are now added to build targets, Unity-iPhone and
        UnityFramework in Unity 2019.3+.
      
      Change-Id: Ib9a602aa7b596a2a1204b806fb407e984ca695b1
      v1.2.121
      82c9cd8c
    • Stewart Miles's avatar
      Fixed line splitting in text area windows. · b83b9d2d
      Stewart Miles authored
      Unity's labels can only display a limit number of characters so the
      text area window splits text into multiple label elements.  The splitting
      was not taking into account line breaks so text would be split at very
      odd boundaries making things harder to read.  This changes the line
      splitting to preferably occur on line breaks.
      
      Change-Id: I59d8fc897856da336df19a3324da313fb670b240
      b83b9d2d
    • Stewart Miles's avatar
      Enforce API level 28 is selected if AndroidX is detected. · 9d7fac67
      Stewart Miles authored
      AndroidX doesn't compile with API level < 28 which results in a cryptic compile
      error for developers who haven't installed API 28 in their Android SDK or
      selected a lower API level for compilation in Unity. This detects AndroidX
      libraries when using Gradle resolution - this isn't possible at the moment for
      transitive dependencies when using the mainTemplate.gradle patcher - and
      prompts the user to fix their build configuration otherwise resolution is
      aborted.
      
      This also fixes cases of multiple completions in LabelAssets and the AAR
      processing code.
      
      Bug: 136120351
      Change-Id: I052c69fd8abdb8d991e5777fc64a1e3d30cf9ca9
      9d7fac67
    • Stewart Miles's avatar
      Fixed IOSResolver in Unity 2019.3+ · bc43146b
      Stewart Miles authored
      Unity 2019.3 adds support for using Unity as a framework on iOS which
      broke the method of retrieving the main application target in the
      Xcode API. This patch changes the iOS resolver to fetch the Xcode targets
      using the legacy API, falling back to the new API if it's available.
      
      Bug: 136038764
      Change-Id: I2236b4cfa08f64feb6e6a7957d71987cdacaa6a9
      bc43146b
  2. Jun 26, 2019
  3. Jun 25, 2019
    • Stewart Miles's avatar
      Version 1.2.120 · e10305d6
      Stewart Miles authored
      * Android Resolver: Added support for loading *Dependencies.xml files from
        Unity Package Manager packages.
      * Android Resolver: Resolution window is now closed if resolution runs as
        a pre-build step.
      * iOS Resolver: Added support for loading *Dependencies.xml files from
        Unity Package Manager packages.
      * Android Resolver: Fixed generation of relative repo paths when using
        mainTemplate.gradle resolver.
      * Android Resolver: Fixed copy of .srcaar to .aar files in repos embedded in a
        project when a project path has characters (e.g whitespace) that are escaped
        during conversion to URIs.
      * Android Resolver: Fixed auto-resolution always running if the Android SDK
        is managed by Unity Hub.
      
      Change-Id: I243e7c7cc1e41e8e847561c0a214e8adbb1e8899
      v1.2.120
      e10305d6
    • Stewart Miles's avatar
      Auto-close Android Resolver window when running during build. · b61a712f
      Stewart Miles authored
      This closes the Android Resolver window when resolution occurs during build.
      In addition, this commit deletes a load of stale code moving everything from
      DefaultResolver to the GradleResolver class in the process.
      
      Bug: 135951368
      Fixes #238
      
      Change-Id: I01555be6b4b8bdf3b1d726340fd543d3d9a49a97
      b61a712f
  4. Jun 24, 2019
  5. Jun 20, 2019
  6. Jun 18, 2019
  7. Jun 14, 2019
    • Stewart Miles's avatar
      Do not update asset GUIDs unless the target filename changes. · 725a90ea
      Stewart Miles authored
      Developers tend to move the plugin around in their project. However,
      the Google.VersionHandler.dll asset GUID was changing with each release
      resulting in the DLL failing to load if multiple versions are present in
      the project. This patch fixes this issue by only generating new GUIDs
      for files that are renamed in the plugin.
      
      Bug: 127793909
      Change-Id: I4569e467f3f0c1f96722a280d62af5916344af3e
      725a90ea
    • Stewart Miles's avatar
      Disabled version locking of com.android.support:multidex · 67ade6c9
      Stewart Miles authored
      com.android.support:multidex does not use the same versioning scheme
      as other legacy Android support libraries so it should not be
      version locked.
      
      Bug: 135276990
      Fixed #234
      
      Change-Id: Idf567388cec68fca022022d14819df56a576254b
      67ade6c9
    • Stewart Miles's avatar
      Added Jetifier to download_artifacts.gradle · d0b1eb33
      Stewart Miles authored
      Added Jetifier support to the Gradle artifact downloader script.
      download_artifacts.gradle can now substitute direct and transitive
      dependencies on the legacy support libraries to Jetpack and rewrite
      references to the legacy support libraries in all downloaded libraries.
      
      This adds unit and integration tests for this functionality but does not
      yet connect this to the Android Resolver Unity plugin.
      
      https://github.com/googlesamples/unity-jar-resolver/issues/145
      Bug: 113575309
      Change-Id: Ibb92e43751425ebfd7cedfae62d275099860aaaa
      d0b1eb33
  8. Jun 13, 2019
  9. Jun 12, 2019
  10. Jun 07, 2019
    • Stewart Miles's avatar
      Version 1.2.116 · 2fff2285
      Stewart Miles authored
      * Android Resolver: Fixed resolution of Android dependencies without version
        specifiers.
      * Android Resolver: Fixed Maven repo not found warning in Android Resolver.
      * Android Resolver: Fixed Android Player directory not found exception in
        Unity 2019.x when the Android Player isn't installed.
      
      Change-Id: Idd553b1920975797ae9ffe97c8792b6fd7e2c5a9
      v1.2.116
      2fff2285
    • Stewart Miles's avatar
      Convert path separators for Windows command line paths. · dee1639d
      Stewart Miles authored
      Executing commands with POSIX paths fail on Windows, this
      modifies the CommandLine module to converts path separators for the
      tool (not the tool's arguments).
      
      https://github.com/firebase/quickstart-unity/issues/379
      
      Bug: 134758901
      Change-Id: If591a21ab2c02f5e0005a10d554f4fbbf1dae799
      dee1639d
    • Stewart Miles's avatar
      Fixed resolution of Android dependencies without version specifiers. · 8e0dd4d6
      Stewart Miles authored
      Android Resolver's artifact downloader script was failing if a
      dependency in the graph did not specify a version for an artifact.
      This commit makes it possible to handle empty version specifications
      in dependencies.
      
      In addition, this adds more information to conflicting package log
      messages and eliminates the creation of copy tasks for output
      files that already exist.
      
      Fixes #227
      Bug: 134571587
      
      Change-Id: I81d52d40c2447b6a6bfba68621fbd4b254570850
      8e0dd4d6
    • Stewart Miles's avatar
      Fixed Maven repo not found warning in Android Resolver. · a1ce88b4
      Stewart Miles authored
      It was printing out "Repo directory %s not found" rather than
      including the missing directory name in the message.
      
      Change-Id: I5777450ffd1aaa6be8bdb5cefe73d0edc3b32430
      a1ce88b4
  11. Jun 06, 2019
    • Stewart Miles's avatar
      Only poll build properties for auto-resolution with Android build target. · cc09f55d
      Stewart Miles authored
      Unity 2019.x throws an exception when
      BuildPipeline.GetPlaybackEngineDirectory() is called and the Android player
      isn't installed.  The Android build target can't be selected if it's not
      installed, so we shouldn't be polling the build system if the build target
      isn't Android.  This patch disables build system property polling on assembly
      load if the build target isn't Android.
      
      Fixes #220
      Bug: 134665717
      
      Change-Id: I147e51a9c7740d2e21fdd376abd7e6b2e7cdc7dc
      cc09f55d
  12. May 31, 2019
    • Stewart Miles's avatar
      Version 1.2.115 · 7feb88da
      Stewart Miles authored
      * Android Resolver: Fixed exception due to Unity 2019.3.0a4 removing
        x86 from the set of supported ABIs.
      
      Change-Id: I8a8f3fd91083b7c20fe66b48dc53c19eb5d73f0e
      v1.2.115
      7feb88da
    • Stewart Miles's avatar
      More gracefully handle removal of supported ABIs. · 8766298c
      Stewart Miles authored
      Unity 2019.3.0a4 removes support for x86_64 builds, removing the enum
      value UnityEditor.AndroidArchitecture.  This results in an exception
      being thrown during resolution.
      
      Bug: 134137796
      Fixes #224
      
      Change-Id: I210c05d1f4bc9aa521b9ed61ed13159e504dac42
      8766298c
  13. May 28, 2019
    • Stewart Miles's avatar
      Version 1.2.114 · 321017d0
      Stewart Miles authored
      * Android Resolver: Added support for ABI stripping when using
        mainTemplate.gradle. This only works with AARs stored in repos
        on the local filesystem.
      
      Change-Id: I2e1f00d09e365ab3204767010931530ac3ef985a
      v1.2.114
      321017d0
    • Stewart Miles's avatar
      Added support for ABI stripping in AARs pulled in from local repos. · 45202c58
      Stewart Miles authored
      This will does not support removing libraries for unused ABIs in
      AARs fetched from remote repos when using Android Gradle plugin
      2.x.x.
      
      Also, fixed handling moved maven repos in the project.
      
      Bug: 133528579
      Change-Id: I7a6fd807a03c0de7393fa6ce0f116817b9252794
      45202c58
  14. May 24, 2019
    • Ryan Meier's avatar
      Changing RunOnMainThread to public. · cea8035e
      Ryan Meier authored
      Change-Id: Ib83668dcec58429df602d0acc27d0a46283e9f10
      cea8035e
    • Stewart Miles's avatar
      Exposed RunOnMainThread from VersionHandlerImpl. · a7bd4a07
      Stewart Miles authored
      VersionHandlerImpl.RunOnMainThread() is pretty handy for editor
      plugins so this exposes it.
      
      Bug: 133495435
      Change-Id: I8c5f38bf5f53efb53bf4071fdcc264105d1fcccc
      a7bd4a07
    • Stewart Miles's avatar
      Version 1.2.113 · 7795294f
      Stewart Miles authored
      * Android Resolver: If local repos are moved, the plugin will search the
        project for matching directories in an attempt to correct the error.
      * Version Handler: Files can be now targeted to multiple build targets
        using multiple "gvh_" asset labels.
      * Android Resolver: "implementation" or "compile" are now added correctly
        to mainTemplate.gradle in Unity versions prior to 2019.
      
      Bug: 112525947
      Bug: 133243196
      Bug: 131903659
      Change-Id: I63de34783612d12cee4031033c0693ab3be289e5
      v1.2.113
      7795294f
    • Stewart Miles's avatar
      More gracefully handle Maven repos being moved in a project. · 2d167d85
      Stewart Miles authored
      Some developers move plugins around in the project breaking local
      maven repo paths.  This commit falls back to searching for local
      maven repos if the directory isn't found, warning the user of the
      file referencing the broken directory link along with the new
      path.
      
      Bug: 112525947
      Change-Id: Ibfc2bc231904ccf93919edd9b5c78d0814e3d28b
      2d167d85
    • Stewart Miles's avatar
      Added compatible way to get the AndroidPlayer directory. · 1001c153
      Stewart Miles authored
      BuildPipeline.GetPlaybackEngineDirectory() was added in Unity 2019
      to get the playback engine directory.  The Android playback engine
      directory is required to determine the version of Gradle shipped
      with the plugin so this does not work in Unity < 2019.
      
      This patch adds a compatible but slower way to retrieve the
      AndroidPlayer directory which also fixes the generation of Gradle
      dependency inclusion statements in Unity < 2019
      
      Fixes #213
      Bug: 133243196
      Change-Id: I455ec6de28900a31ea414bd1ff657404e611b0fb
      1001c153