Skip to content

Commit f0e67c5

Browse files
committed
more
1 parent 6c95fa4 commit f0e67c5

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

firebase-crashlytics/test-app/src/androidTest/kotlin/com/google/firebase/testing/crashlytics/FirebaseCrashlyticsIntegrationTest.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,19 @@ class FirebaseCrashlyticsIntegrationTest {
423423
)
424424
}
425425

426+
@Test
427+
fun interoperability_IID() {
428+
launchApp()
429+
clickButton("Interoperability_IID")
430+
431+
// The app crashes => relaunch
432+
launchApp()
433+
val userId = readDisplayedUserId()
434+
435+
Log.i("TestInfo", "Interoperability_IID. userId=$userId => ${getCrashlyticsSearchUrl(userId)}")
436+
}
437+
438+
426439
// ---------------------------------------------------------------------------
427440
// Navigation & UI Helpers
428441
// ---------------------------------------------------------------------------

firebase-crashlytics/test-app/src/main/kotlin/com/google/firebase/testing/crashlytics/FirstFragment.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import android.view.View
77
import android.view.ViewGroup
88
import androidx.fragment.app.Fragment
99
import com.google.firebase.crashlytics.FirebaseCrashlytics
10+
import com.google.firebase.installations.FirebaseInstallations
1011
import com.google.firebase.testing.crashlytics.databinding.FragmentFirstBinding
1112

1213

@@ -161,6 +162,16 @@ class FirstFragment : Fragment() {
161162

162163
throw RuntimeException("DataCollection_Crashlytics_Off_Then_Delete crash")
163164
}
165+
166+
binding.buttonInteroperabilityIid.setOnClickListener {
167+
val userId = "InteroperabilityIID_${System.currentTimeMillis()}"
168+
saveAndApplyUserId(userId)
169+
170+
FirebaseInstallations.getInstance().delete().addOnCompleteListener {
171+
throw RuntimeException("Interoperability_IID crash after ID reset")
172+
}
173+
}
174+
164175
}
165176

166177

firebase-crashlytics/test-app/src/main/res/layout/fragment_first.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@
124124
android:layout_height="wrap_content"
125125
android:text="DataCollection_Crashlytics_Off_Then_Delete" />
126126

127+
<Button
128+
android:id="@+id/button_interoperability_iid"
129+
android:layout_width="wrap_content"
130+
android:layout_height="wrap_content"
131+
android:text="Interoperability_IID" />
132+
127133
<TextView
128134
android:id="@+id/current_user_id_text"
129135
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)