Skip to content

Commit

Permalink
Removed requirement of Android hooks (which was failing at the time o…
Browse files Browse the repository at this point in the history
…f plugin uninstallation) fixes #63
  • Loading branch information
sagrawal31 committed Jul 26, 2019
1 parent a7ae1dd commit 531bfe5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 139 deletions.
3 changes: 0 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
</engines>

<platform name="android">
<hook type="after_plugin_install" src="scripts/android/after_plugin_install.js" />
<hook type="before_plugin_uninstall" src="scripts/android/before_plugin_uninstall.js" />

<js-module name="FirebasePlugin" src="www/firebase.js">
<clobbers target="FirebasePlugin" />
</js-module>
Expand Down
9 changes: 0 additions & 9 deletions scripts/android/after_plugin_install.js

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/android/before_plugin_uninstall.js

This file was deleted.

118 changes: 0 additions & 118 deletions scripts/android/helper.js

This file was deleted.

9 changes: 7 additions & 2 deletions src/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
buildscript {
repositories {
google()
maven {
url "https://maven.fabric.io/public"
}
mavenCentral()
jcenter()
}
dependencies {
classpath "io.fabric.tools:gradle:1.30.0"
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.gms:google-services:4.2.0'
}
Expand All @@ -17,8 +21,9 @@ repositories {
}

cdvPluginPostBuildExtras.add({
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
// Use class instead of id (string) to be able to apply plugin from non-root gradle file
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
apply plugin: com.crashlytics.tools.gradle.CrashlyticsPlugin

// Enable Crashlytics NDK reporting
crashlytics {
Expand Down

0 comments on commit 531bfe5

Please sign in to comment.