From 0dd65ab450bc02e2cd43a15cf71b51498959657e Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 24 Dec 2016 14:18:10 -0700 Subject: remove react-native-config --- android/app/build.gradle | 1 - .../main/java/com/stronglifters/MainActivity.java | 15 ------- .../java/com/stronglifters/MainApplication.java | 48 ---------------------- .../java/com/stronglifters/app/MainActivity.java | 15 +++++++ .../com/stronglifters/app/MainApplication.java | 46 +++++++++++++++++++++ android/settings.gradle | 2 - ios/StrongLifters.xcodeproj/project.pbxproj | 39 ------------------ package.json | 1 - yarn.lock | 4 -- 9 files changed, 61 insertions(+), 110 deletions(-) delete mode 100644 android/app/src/main/java/com/stronglifters/MainActivity.java delete mode 100644 android/app/src/main/java/com/stronglifters/MainApplication.java create mode 100644 android/app/src/main/java/com/stronglifters/app/MainActivity.java create mode 100644 android/app/src/main/java/com/stronglifters/app/MainApplication.java diff --git a/android/app/build.gradle b/android/app/build.gradle index 44d9f9a..cca687f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -137,7 +137,6 @@ android { dependencies { compile project(':react-native-svg') compile project(':react-native-vector-icons') - compile project(':react-native-config') compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:+" // From node_modules diff --git a/android/app/src/main/java/com/stronglifters/MainActivity.java b/android/app/src/main/java/com/stronglifters/MainActivity.java deleted file mode 100644 index 5fe8e04..0000000 --- a/android/app/src/main/java/com/stronglifters/MainActivity.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.stronglifters.app; - -import com.facebook.react.ReactActivity; - -public class MainActivity extends ReactActivity { - - /** - * Returns the name of the main component registered from JavaScript. - * This is used to schedule rendering of the component. - */ - @Override - protected String getMainComponentName() { - return "StrongLifters"; - } -} diff --git a/android/app/src/main/java/com/stronglifters/MainApplication.java b/android/app/src/main/java/com/stronglifters/MainApplication.java deleted file mode 100644 index 781c515..0000000 --- a/android/app/src/main/java/com/stronglifters/MainApplication.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.stronglifters.app; - -import android.app.Application; -import android.util.Log; - -import com.facebook.react.ReactApplication; -import com.horcrux.svg.RNSvgPackage; -import com.oblador.vectoricons.VectorIconsPackage; -import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; -import com.facebook.react.ReactInstanceManager; -import com.facebook.react.ReactNativeHost; -import com.facebook.react.ReactPackage; -import com.facebook.react.shell.MainReactPackage; -import com.facebook.soloader.SoLoader; - -import java.util.Arrays; -import java.util.List; - -public class MainApplication extends Application implements ReactApplication { - - private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { - @Override - protected boolean getUseDeveloperSupport() { - return BuildConfig.DEBUG; - } - - @Override - protected List getPackages() { - return Arrays.asList( - new MainReactPackage(), - new RNSvgPackage(), - new VectorIconsPackage(), - new ReactNativeConfigPackage() - ); - } - }; - - @Override - public ReactNativeHost getReactNativeHost() { - return mReactNativeHost; - } - - @Override - public void onCreate() { - super.onCreate(); - SoLoader.init(this, /* native exopackage */ false); - } -} diff --git a/android/app/src/main/java/com/stronglifters/app/MainActivity.java b/android/app/src/main/java/com/stronglifters/app/MainActivity.java new file mode 100644 index 0000000..5fe8e04 --- /dev/null +++ b/android/app/src/main/java/com/stronglifters/app/MainActivity.java @@ -0,0 +1,15 @@ +package com.stronglifters.app; + +import com.facebook.react.ReactActivity; + +public class MainActivity extends ReactActivity { + + /** + * Returns the name of the main component registered from JavaScript. + * This is used to schedule rendering of the component. + */ + @Override + protected String getMainComponentName() { + return "StrongLifters"; + } +} diff --git a/android/app/src/main/java/com/stronglifters/app/MainApplication.java b/android/app/src/main/java/com/stronglifters/app/MainApplication.java new file mode 100644 index 0000000..c002bf1 --- /dev/null +++ b/android/app/src/main/java/com/stronglifters/app/MainApplication.java @@ -0,0 +1,46 @@ +package com.stronglifters.app; + +import android.app.Application; +import android.util.Log; + +import com.facebook.react.ReactApplication; +import com.horcrux.svg.RNSvgPackage; +import com.oblador.vectoricons.VectorIconsPackage; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.ReactNativeHost; +import com.facebook.react.ReactPackage; +import com.facebook.react.shell.MainReactPackage; +import com.facebook.soloader.SoLoader; + +import java.util.Arrays; +import java.util.List; + +public class MainApplication extends Application implements ReactApplication { + + private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { + @Override + protected boolean getUseDeveloperSupport() { + return BuildConfig.DEBUG; + } + + @Override + protected List getPackages() { + return Arrays.asList( + new MainReactPackage(), + new RNSvgPackage(), + new VectorIconsPackage() + ); + } + }; + + @Override + public ReactNativeHost getReactNativeHost() { + return mReactNativeHost; + } + + @Override + public void onCreate() { + super.onCreate(); + SoLoader.init(this, /* native exopackage */ false); + } +} diff --git a/android/settings.gradle b/android/settings.gradle index d959c94..d014e41 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -3,7 +3,5 @@ include ':react-native-svg' project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') -include ':react-native-config' -project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') include ':app' diff --git a/ios/StrongLifters.xcodeproj/project.pbxproj b/ios/StrongLifters.xcodeproj/project.pbxproj index f6dd868..19cc38e 100644 --- a/ios/StrongLifters.xcodeproj/project.pbxproj +++ b/ios/StrongLifters.xcodeproj/project.pbxproj @@ -42,7 +42,6 @@ D9CBF8C090C34CE1AD9AD6F8 /* Roboto_medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 42737D9219EE450DB5031E8D /* Roboto_medium.ttf */; }; DDA48035171D4BA0995B5E5D /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BD9EA57CA92B4C67A7F63BED /* Foundation.ttf */; }; E48347B5F63D4440ABBD39A3 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B7AB0D1B6591425F9B21644C /* MaterialIcons.ttf */; }; - F8C54714CB1A4CCDAF106977 /* libReactNativeConfig.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A0A6BDF02DFF4E92A99FB2EF /* libReactNativeConfig.a */; }; F9E393B1F9C047FC8153CB9D /* SF-UI-Text-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 358410884F0E4DB8B879E468 /* SF-UI-Text-Regular.otf */; }; FABE0133F92140FE96A1F47F /* Skia.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B8CD6B4D47874A9894059E6B /* Skia.ttf */; }; 34BA117E2E994401A87F2CC1 /* libRNSVG.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 47C347E482694D8FACED6EDC /* libRNSVG.a */; }; @@ -189,13 +188,6 @@ remoteGlobalIDString = 2D2A28131D9B038B00D4039D; remoteInfo = "React-tvOS"; }; - CDA5F3491E0DC2B30063D289 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1ABE40419C334291B1632D80 /* ReactNativeConfig.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = EB2648DF1C7BE17A00B8F155; - remoteInfo = ReactNativeConfig; - }; CDA5F34C1E0DC2B30063D289 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 2CDB2DED7A5A456B9FCC2746 /* RNVectorIcons.xcodeproj */; @@ -226,7 +218,6 @@ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = StrongLifters/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = StrongLifters/main.m; sourceTree = ""; }; 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; - 1ABE40419C334291B1632D80 /* ReactNativeConfig.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = ReactNativeConfig.xcodeproj; path = "../node_modules/react-native-config/ios/ReactNativeConfig.xcodeproj"; sourceTree = ""; }; 1FBDCAFF6D014CC29E7A273D /* Microsoft Sans Serif.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Microsoft Sans Serif.ttf"; path = "../node_modules/native-base/Fonts/Microsoft Sans Serif.ttf"; sourceTree = ""; }; 2CDB2DED7A5A456B9FCC2746 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 358410884F0E4DB8B879E468 /* SF-UI-Text-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "SF-UI-Text-Regular.otf"; path = "../node_modules/native-base/Fonts/SF-UI-Text-Regular.otf"; sourceTree = ""; }; @@ -239,7 +230,6 @@ 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 9B5E5FB2B4C94FA39A8E9EB5 /* Andale Mono.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Andale Mono.ttf"; path = "../node_modules/native-base/Fonts/Andale Mono.ttf"; sourceTree = ""; }; - A0A6BDF02DFF4E92A99FB2EF /* libReactNativeConfig.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libReactNativeConfig.a; sourceTree = ""; }; A3BE86B68436497A9E5C32E4 /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; }; AD66EEAC4EC140C8AB9C344D /* Georgia.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Georgia.ttf; path = "../node_modules/native-base/Fonts/Georgia.ttf"; sourceTree = ""; }; AE4DD0111C30434E9EB957E1 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; @@ -280,7 +270,6 @@ 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, - F8C54714CB1A4CCDAF106977 /* libReactNativeConfig.a in Frameworks */, 8943FE0C9BF6410985082DD6 /* libRNVectorIcons.a in Frameworks */, 34BA117E2E994401A87F2CC1 /* libRNSVG.a in Frameworks */, ); @@ -448,7 +437,6 @@ 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, - 1ABE40419C334291B1632D80 /* ReactNativeConfig.xcodeproj */, 2CDB2DED7A5A456B9FCC2746 /* RNVectorIcons.xcodeproj */, 8F0D22FDA9E84B4E9458E2A9 /* RNSVG.xcodeproj */, ); @@ -486,14 +474,6 @@ name = Products; sourceTree = ""; }; - CDA5F3231E0DC2B20063D289 /* Products */ = { - isa = PBXGroup; - children = ( - CDA5F34A1E0DC2B30063D289 /* libReactNativeConfig.a */, - ); - name = Products; - sourceTree = ""; - }; CDA5F3251E0DC2B20063D289 /* Products */ = { isa = PBXGroup; children = ( @@ -612,10 +592,6 @@ ProductGroup = 146834001AC3E56700842450 /* Products */; ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; }, - { - ProductGroup = CDA5F3231E0DC2B20063D289 /* Products */; - ProjectRef = 1ABE40419C334291B1632D80 /* ReactNativeConfig.xcodeproj */; - }, { ProductGroup = CDA5F3251E0DC2B20063D289 /* Products */; ProjectRef = 2CDB2DED7A5A456B9FCC2746 /* RNVectorIcons.xcodeproj */; @@ -763,13 +739,6 @@ remoteRef = CDA5F3461E0DC2B30063D289 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - CDA5F34A1E0DC2B30063D289 /* libReactNativeConfig.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libReactNativeConfig.a; - remoteRef = CDA5F3491E0DC2B30063D289 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; CDA5F34D1E0DC2B30063D289 /* libRNVectorIcons.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; @@ -889,9 +858,6 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "\"$(SRCROOT)/$(TARGET_NAME)\"", - "\"$(SRCROOT)/$(TARGET_NAME)\"", - "\"$(SRCROOT)/$(TARGET_NAME)\"", ); PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StrongLifters.app/StrongLifters"; @@ -908,9 +874,6 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "\"$(SRCROOT)/$(TARGET_NAME)\"", - "\"$(SRCROOT)/$(TARGET_NAME)\"", - "\"$(SRCROOT)/$(TARGET_NAME)\"", ); PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StrongLifters.app/StrongLifters"; @@ -990,7 +953,6 @@ "$(inherited)", "$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/ReactCommon/**", - "$(SRCROOT)/../node_modules/react-native-config/ios/ReactNativeConfig", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-svg/ios/**", ); @@ -1033,7 +995,6 @@ "$(inherited)", "$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/ReactCommon/**", - "$(SRCROOT)/../node_modules/react-native-config/ios/ReactNativeConfig", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-svg/ios/**", ); diff --git a/package.json b/package.json index 28ef18c..d1b6f55 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "native-base": "^0.5.18", "react": "15.4.1", "react-native": "0.39.2", - "react-native-config": "^0.2.1", "react-native-svg": "^4.4.1", "tcomb-form-native": "^0.6.3" }, diff --git a/yarn.lock b/yarn.lock index 49dac90..f6b4f36 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3035,10 +3035,6 @@ react-native-checkbox@~1.0.8: version "1.0.17" resolved "https://registry.yarnpkg.com/react-native-checkbox/-/react-native-checkbox-1.0.17.tgz#94c61f190ef728c38763f48cd7ab91a6ad9fd4e2" -react-native-config@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-0.2.1.tgz#8331c050b8f487019b1baed93451f06ae5848926" - react-native-easy-grid@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/react-native-easy-grid/-/react-native-easy-grid-0.1.7.tgz#44205cc39adff32a8a20efa8451d76a4499f0a3f" -- cgit v1.2.3