Skip to content

Commit

Permalink
remove firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
yenda committed Oct 29, 2019
1 parent 0856ae1 commit 1940ac5
Show file tree
Hide file tree
Showing 85 changed files with 417 additions and 5,855 deletions.
8 changes: 0 additions & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,6 @@ dependencies {
implementation project(':react-native-status')
implementation project(':react-native-webview-bridge')
implementation project(':react-native-status-keycard')
implementation "com.google.android.gms:play-services-base:${rootProject.ext.googlePlayServicesVersion}"
implementation 'com.google.firebase:firebase-core:16.0.9' //this decides your firebase SDK version
implementation 'com.google.firebase:firebase-messaging:18.0.0'

implementation 'com.github.status-im:function:0.0.1'
implementation 'com.facebook.fresco:animated-gif:1.10.0'
}
Expand All @@ -342,8 +338,4 @@ task hemroidBuild(type: Exec) {

preBuild.dependsOn hemroidBuild

// Must be at bottom to avoid dependency collision
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
42 changes: 0 additions & 42 deletions android/app/google-services.json

This file was deleted.

4 changes: 0 additions & 4 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,3 @@
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**

# Firebase
-keep class io.invertase.firebase.** { *; }
-dontwarn io.invertase.firebase.**
42 changes: 0 additions & 42 deletions android/app/src/debug/google-services.json

This file was deleted.

16 changes: 0 additions & 16 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@
android:name=".MainApplication"
android:largeHeap="true"
android:usesCleartextTraffic="true">
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_status_notification" />

<meta-data
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="@string/notification_channel_id" />


<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down Expand Up @@ -78,12 +68,6 @@
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
<service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import im.status.ethereum.keycard.RNStatusKeycardPackage;
import im.status.ethereum.module.StatusPackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage;

public class MainApplication extends MultiDexApplication implements ReactApplication {

Expand All @@ -33,8 +31,6 @@ protected List<ReactPackage> getPackages() {
StatusPackage statusPackage = new StatusPackage(RootUtil.isDeviceRooted());
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(statusPackage);
packages.add(new RNFirebaseMessagingPackage());
packages.add(new RNFirebaseNotificationsPackage());
packages.add(new ReactNativeDialogsPackage());
packages.add(new RNStatusKeycardPackage());
packages.add(new WebViewBridgePackage(BuildConfig.DEBUG_WEBVIEW == "1"));
Expand Down
42 changes: 0 additions & 42 deletions android/app/src/pr/google-services.json

This file was deleted.

42 changes: 0 additions & 42 deletions android/app/src/release/google-services.json

This file was deleted.

3 changes: 0 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ ext {
targetSdkVersion = Integer.valueOf(project.targetSdkVersion)
supportLibVersion = project.supportLibVersion
gradlePluginVersion = project.gradlePluginVersion
googlePlayServicesVersion = project.googlePlayServicesVersion
googlePlayServicesVisionVersion = project.googlePlayServicesVisionVersion
}

buildscript {
Expand All @@ -22,7 +20,6 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:${project.ext.gradlePluginVersion}"
classpath 'com.google.gms:google-services:4.2.0'
classpath 'de.undercouch:gradle-download-task:3.1.2'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 0 additions & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ targetSdkVersion=28
buildToolsVersion=28.0.3
supportLibVersion=28.0.0
gradlePluginVersion=3.4.1
googlePlayServicesVersion=16.0.1
googlePlayServicesVisionVersion=17.0.2

android.useAndroidX=true
android.enableJetifier=true
Expand Down
1 change: 0 additions & 1 deletion clj-rn.conf.edn
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"react-native-image-crop-picker"
"react-native-svg"
"react-native-webview-bridge"
"react-native-firebase"
"react-native-touch-id"
"web3-utils"
"chance"
Expand Down
2 changes: 0 additions & 2 deletions externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ var TopLevel = {
"generateAlias": function() {},
"fallbacks" : function () {},
"fetch" : function () {},
"firebase" : function () {},
"floor" : function () {},
"focus" : function () {},
"format" : function () {},
Expand Down Expand Up @@ -428,7 +427,6 @@ var TopLevel = {
"scrollToIndex" : function () {},
"section" : function () {},
"selection" : function () {},
"sendDataNotification" : function () {},
"sendDirectMessage" : function () {},
"sendLogs" : function () {},
"sendPairingMessage" : function () {},
Expand Down
15 changes: 7 additions & 8 deletions fiddle/src/fiddle/views/screens.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
[status-im.ui.screens.wallet.add-new.views :as add-new]
[fiddle.frame :as frame]))

;:generate-key
;:choose-key
;:select-key-storage
;:create-code
;:confirm-code
;:enable-fingerprint
;:enable-notifications
;;:generate-key
;;:choose-key
;;:select-key-storage
;;:create-code
;;:confirm-code
;;:enable-fingerprint
(re-frame/reg-sub :intro-wizard (fn [_] {:step :generate-key :generating-keys? false}))

(defn screens []
Expand All @@ -21,4 +20,4 @@
[frame/frame
[intro/wizard]]
[frame/frame
[add-new/add-account]]])
[add-new/add-account]]])
3 changes: 0 additions & 3 deletions fiddle/src/status_im/react_native/js_dependencies.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
(def svg (fn [] #js {:default #js {}}))
(def status-keycard (fn [] #js {:default #js {}}))

(defrecord Notification [])
(def react-native-firebase (fn [] #js {:default #js {:notifications #js {:Notification Notification}}}))

(def desktop-linking #js {:addEventListener (fn [])})
(def desktop-shortcuts #js {:addEventListener (fn [])})

Expand Down
Binary file removed ios/FirebaseCore.framework/FirebaseCore
Binary file not shown.
54 changes: 0 additions & 54 deletions ios/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h

This file was deleted.

Loading

0 comments on commit 1940ac5

Please sign in to comment.