Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 230106c

Browse files
Some automations for Android #198
Automate enabling iOS 10 keychain sharing #216
1 parent da55c2a commit 230106c

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

README.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,11 @@ You can reconfigure the plugin by going to the `node_modules/nativescript-plugin
4848

4949
You can also change the configuration by deleting the `firebase.nativescript.json` and reinstalling the plugin.
5050

51-
### iOS
52-
[Looking to automate this step](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/136), but for now, to build with Xcode 8 (iOS 10 SDK), you need to open the Xcode project via the platforms/ios/appname.__xcworkspace__/ file - then select your app's target, capabilities, enable 'Keychain sharing'.
53-
5451
### Android
55-
Install packages 'Google Play Services' and 'Google Repository' in your [Android SDK Manager](http://stackoverflow.com/a/37310513)
56-
57-
#### Open `platforms/android/build.gradle`
58-
We're trying to automate these steps, but for now:
59-
60-
- Near the top there's a dependencies section, add `classpath "com.google.gms:google-services:3.0.0"` so it becomes something like:
61-
```
62-
dependencies {
63-
classpath "com.android.tools.build:gradle:X.X.X"
64-
classpath "com.google.gms:google-services:3.0.0"
65-
}
66-
```
67-
68-
#### google-services.json
69-
Firebase configures the native Android project using a *google-services.json* file.
70-
You can place it at `app/App_Resources/Android/google-services.json`.
71-
72-
This plugin adds an after-prepare NativeScript CLI hook that will copy it to the native android project at `platforms/android/google-services.json`.
52+
Install the latest packages 'Google Play Services' and 'Google Repository' in your [Android SDK Manager](http://stackoverflow.com/a/37310513)
7353

7454
#### Google Play Services Version
75-
The plugin will default to version 9.6.0+ of the Android `play-services-base` SDK.
55+
The plugin will default to version 9.8.0+ of the Android `play-services-base` SDK.
7656
If you need to change the version (to for instance the latest version), you can add a project ext property `googlePlayServicesVersion` like so:
7757

7858
```
@@ -215,7 +195,7 @@ Also, an error like "Could not find com.google.firebase:firebase-core:9.0.0" can
215195
more than one version of the Android SDK installed. Make sure ANDROID_HOME is set to the Android SDK directory
216196
that is being updated otherwise it will seem as though your updates have no effect.
217197

218-
#### Found play-services:9.0.0, but version 9.0.2 is needed..
198+
#### Found play-services:9.0.0, but version 9.X.Y is needed..
219199
Update your Android bits like the issue above and reinstall the android platform in your project.
220200

221201
## Credits

0 commit comments

Comments
 (0)