Skip to content

Commit

Permalink
feat: remove google ads example. (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
didiergarcia authored Oct 29, 2024
1 parent 1ef79ea commit 12a1b88
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 170 deletions.
2 changes: 0 additions & 2 deletions samples/kotlin-android-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-process:2.4.0'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.4.0'

implementation 'com.google.android.gms:play-services-ads:20.5.0'

implementation platform('com.google.firebase:firebase-bom:29.0.0')
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-analytics-ktx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.google.android.gms.tasks.OnCompleteListener
import com.google.firebase.messaging.FirebaseMessaging
import com.segment.analytics.kotlin.android.Analytics
import com.segment.analytics.kotlin.core.*
import com.segment.analytics.next.plugins.AndroidAdvertisingIdPlugin
import com.segment.analytics.next.plugins.AndroidRecordScreenPlugin
import com.segment.analytics.next.plugins.PushNotificationTracking
import com.segment.analytics.kotlin.core.platform.Plugin
Expand Down Expand Up @@ -60,16 +59,14 @@ class MainApplication : Application() {
})
analytics.add(PushNotificationTracking)

analytics.add(AndroidAdvertisingIdPlugin(this))

FirebaseMessaging.getInstance().token.addOnCompleteListener(OnCompleteListener { task ->
if (!task.isSuccessful) {
Log.w("SegmentSample", "Fetching FCM registration token failed", task.exception)
return@OnCompleteListener
}

// Get new FCM registration token
val token = task.result
val token = task.result ?: ""

// Log and toast
Log.d("SegmentSample", token)
Expand Down

This file was deleted.

0 comments on commit 12a1b88

Please sign in to comment.