From 0f795fa2831eef286364215403d6264efe702859 Mon Sep 17 00:00:00 2001 From: Chico Date: Sun, 27 Jan 2019 11:42:45 +0000 Subject: [PATCH] Fix app so it can be released to the play store To release the app to the Google play store, 'fastlane android beta_internal' needs to work. The following fixes were made: - Update build.gradle to not apply sentry.gradle as it's causing a bad sentry url error (note: it will be fixed later) - Remove references to react-native-audio and react-native-video - Remove references to com.tkporter.sendsms - Remove superfluous permissions --- android/app/build.gradle | 4 +--- android/app/src/main/AndroidManifest.xml | 7 ++----- .../app/src/main/java/com/codeandrobots/MainActivity.java | 2 -- .../src/main/java/com/codeandrobots/MainApplication.java | 4 ---- android/settings.gradle | 4 ---- 5 files changed, 3 insertions(+), 18 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 5275b51..b6a2ddd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -77,7 +77,7 @@ project.ext.react = [ ] apply from: "../../node_modules/react-native/react.gradle" -apply from: "../../node_modules/react-native-sentry/sentry.gradle" +// apply from: "../../node_modules/react-native-sentry/sentry.gradle" // TODO getting bad sentry url // See https://github.com/luggit/react-native-config#setup apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" @@ -173,8 +173,6 @@ dependencies { } implementation project(':react-native-version-number') implementation project(':react-native-splash-screen') - implementation project(':react-native-audio') - implementation project(':react-native-video') implementation project(':react-native-config') implementation project(':react-native-i18n') implementation project(':react-native-vector-icons') diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index ea7c899..4cad30f 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - @@ -9,10 +9,7 @@ - - - - + getPackages() { new RNFirebaseNotificationsPackage(), new RNVersionNumberPackage(), new SplashScreenReactPackage(), - new ReactNativeAudioPackage(), - new ReactVideoPackage(), new ReactNativeConfigPackage(), new ReactNativeI18n(), new VectorIconsPackage(), diff --git a/android/settings.gradle b/android/settings.gradle index 017699c..2cf665c 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -11,10 +11,6 @@ include ':react-native-version-number' project(':react-native-version-number').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-version-number/android') include ':react-native-splash-screen' project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android') -include ':react-native-audio' -project(':react-native-audio').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-audio/android') -include ':react-native-video' -project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') include ':react-native-config' project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') include ':react-native-i18n'