Skip to content

Commit 7b9149d

Browse files
authored
fix: fixed issue with ProGuard/R8 and AttributionId (#861)
1 parent e34b50f commit 7b9149d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maps-compose/src/main/java/com/google/maps/android/compose/utils/attribution/AttributionIdInitializer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.maps.android.compose.utils.attribution
1818

1919
import android.content.Context
20+
import androidx.annotation.Keep
2021
import androidx.startup.Initializer
2122
import com.google.android.gms.maps.MapsApiSettings
2223
import com.google.maps.android.compose.utils.meta.AttributionId
@@ -26,6 +27,7 @@ import com.google.maps.android.compose.utils.meta.AttributionId
2627
* and samples are helpful to developers, such as usage of this library.
2728
* To opt out of sending the usage attribution ID, please remove this initializer from your manifest.
2829
*/
30+
@Keep
2931
internal class AttributionIdInitializer : Initializer<Unit> {
3032
override fun create(context: Context) {
3133
MapsApiSettings.addInternalUsageAttributionId(

0 commit comments

Comments
 (0)