File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/main/java/com/google/firebase/example/appcheck Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ dependencies {
3535
3636 implementation ' com.google.firebase:firebase-appcheck:16.1.0'
3737 implementation ' com.google.firebase:firebase-appcheck-debug:16.1.0'
38- implementation ' com.google.firebase:firebase-appcheck-safetynet :16.1.0'
38+ implementation ' com.google.firebase:firebase-appcheck-playintegrity :16.1.0'
3939
4040 implementation ' com.squareup.retrofit2:retrofit:2.9.0'
4141
Original file line number Diff line number Diff line change 77import com .google .firebase .FirebaseApp ;
88import com .google .firebase .appcheck .FirebaseAppCheck ;
99import com .google .firebase .appcheck .debug .DebugAppCheckProviderFactory ;
10- import com .google .firebase .appcheck .safetynet . SafetyNetAppCheckProviderFactory ;
10+ import com .google .firebase .appcheck .playintegrity . PlayIntegrityAppCheckProviderFactory ;
1111
1212public class MainActivity extends AppCompatActivity {
1313
@@ -22,7 +22,7 @@ private void init() {
2222 FirebaseApp .initializeApp (/*context=*/ this );
2323 FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck .getInstance ();
2424 firebaseAppCheck .installAppCheckProviderFactory (
25- SafetyNetAppCheckProviderFactory .getInstance ());
25+ PlayIntegrityAppCheckProviderFactory .getInstance ());
2626 // [END appcheck_initialize]
2727 }
2828
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import androidx.appcompat.app.AppCompatActivity
55import com.google.firebase.FirebaseApp
66import com.google.firebase.appcheck.FirebaseAppCheck
77import com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory
8- import com.google.firebase.appcheck.safetynet.SafetyNetAppCheckProviderFactory
8+ import com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory
99import com.google.firebase.example.appcheck.R
1010
1111
@@ -20,7 +20,7 @@ class MainActivity : AppCompatActivity() {
2020 FirebaseApp .initializeApp(/* context=*/ this )
2121 val firebaseAppCheck = FirebaseAppCheck .getInstance()
2222 firebaseAppCheck.installAppCheckProviderFactory(
23- SafetyNetAppCheckProviderFactory .getInstance()
23+ PlayIntegrityAppCheckProviderFactory .getInstance()
2424 )
2525 // [END appcheck_initialize]
2626 }
You can’t perform that action at this time.
0 commit comments