Skip to content

Commit 0f7f3f7

Browse files
authored
chore: add @keep annotation to AttributionIdInitializer (#1661)
1 parent 58a0179 commit 0f7f3f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

library/src/main/java/com/google/maps/android/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.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.utils.meta.AttributionId
@@ -26,6 +27,7 @@ import com.google.maps.android.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
// See [AttributionIdInitializer]

0 commit comments

Comments
 (0)