feat!: update Maps SDK to v20.0.0 and add internal usage attribution#830
Merged
feat!: update Maps SDK to v20.0.0 and add internal usage attribution#830
Conversation
Updates the Maps SDK dependencies and implements internal usage attribution using androidx.startup. Changes: - Replaced manual initialization with AttributionIdInitializer using androidx.startup. - Removed GoogleMapsInitializer and MapsComposeApplication (Breaking Change). - Updated README.md with attribution opt-out instructions. - Added installAndLaunch Gradle task for easier demo app testing. - Fixed ScaleBarTests density calculation. - Updated minSdk overrides for test dependencies. Breaking Changes: - GoogleMapsInitializer and MapsComposeApplication have been removed. Initialization is now handled automatically by androidx.startup. - minSdk is now 23.
Contributor
Code Coverage
|
Upgrades the Android Gradle Plugin to 9.0.0, the Gradle Wrapper to 9.2.1, and the Compose Screenshot plugin to 0.0.1-alpha13. This resolves configuration issues with the `GenerateTestConfig` task where `mergedManifest` was not properly configured. Also adds necessary AGP 9.0 compatibility flags to gradle.properties.
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip |
Check warning
Code scanning / Android Lint
Obsolete Android Gradle Plugin Version Warning
Upgrades the Android Gradle Plugin to 9.0.0, the Gradle Wrapper to 9.2.1, and the Compose Screenshot plugin to 0.0.1-alpha13. This resolves configuration issues with the 'GenerateTestConfig' task where 'mergedManifest' was not properly configured. Also: - Adopts AGP 9.0 compatibility flags in gradle.properties. - Removes obsolete 'testDebugScreenshotTest' and 'testReleaseScreenshotTest' exclusions from CI workflows.
Removes com.mxalbert.gradle.jacoco-android plugin which is incompatible with AGP 9.0. Removed related configuration from convention plugin and test workflow.
Upgrades AGP to 9.0.0 and Screenshot plugin to 0.0.1-alpha13 to resolve D8 Kotlin metadata errors with Kotlin 2.3.0. Restores Jacoco coverage reporting using the native Gradle Jacoco plugin (compatible with AGP 9.0), replacing the incompatible `jacoco-android` plugin. Switches coverage collection to the `debug` build type as `release` unit test tasks are not created by default for libraries.
Replaces deprecated -Xopt-in with -opt-in in build files to resolve Gradle warnings.
Required for instrumentation tests running on Android 9+ to avoid NoClassDefFoundError: org/apache/http/ProtocolVersion.
Required for runtime access on Android 9+ devices during instrumentation tests. Missed by useLibrary in build.gradle which only handles compile classpath.
Fixes ClassNotFoundException: io.mockk.proxy.android.AndroidMockKAgentFactory during ScaleBarUnitTest execution on Android devices.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat!: update Maps SDK to v20.0.0 and add internal usage attribution
Updates the Maps SDK dependencies and implements internal usage attribution using androidx.startup.
Changes:
Breaking Changes: