Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a Firebase project and register your app. Download google-services.json file and place it in android/app folder.

  • Add below line to your android/build.gradle file's both repositories sections. If you are going to do Huawei integration, add the agconnect-services.json file to the same location.

Code Block
mavenCentral()
maven {
    url 'http://developer.huawei.com/repo/'
    allowInsecureProtocol = true
}
  • Add below lines to your android/build.gradle file's dependencies section.

Code Block
classpath 'com.google.gms:google-services:4.3.310'
classpath 'com.huawei.agconnect:agcp:1.6.5.300'
  • Change your minSdkVersion to 19 to 21.

  • Change your compileSdkVersion and targetSdkVersion to 32.

  • Add below lines to your android/app/build.gradle file's bottom.

...