Guest User

Untitled

a guest
Dec 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. apply plugin: 'com.google.gms.google-services'
  2.  
  3. implementation 'com.google.firebase:firebase-core:XX.X.X'
  4. implementation 'com.google.firebase:firebase-messaging:XX.X.X'
  5.  
  6. <string name="google_app_id" translatable="false">X:XXXXXXXXXX:android:XXXXXXXXXXXXX</string>
  7.  
  8. public static void start(Context context){
  9. FirebaseOptions options = new FirebaseOptions.Builder()
  10. .setApplicationId("X:XXXXXXXXXX:android:XXXXXXXXXXXXX") // Required for Analytics.
  11. .setApiKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") // Required for Auth.
  12. .build();
  13. FirebaseApp.initializeApp(context, options);
  14. }
  15.  
  16. LibName.start(getApplicationContext());
Add Comment
Please, Sign In to add comment