...
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 theagconnect-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
andtargetSdkVersion
to 32.Add below lines to your
android/app/build.gradle
file's bottom.
...