Skip to content

Commit

Permalink
add react-native-system-setting configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgovea committed Jun 17, 2019
1 parent ced3c75 commit a3a034b
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@
"react-native-sentry@0.41.1",
"react-native-admob@2.0.0-beta.5",
"realm@2.28.1",
"react-native-fast-image@5.4.2"
"react-native-fast-image@5.4.2",
"react-native-system-setting@1.7.2"
],
"targetJsDependencies": ["react@16.8.3"]
},
Expand Down Expand Up @@ -870,7 +871,8 @@
"react-native-sentry@0.41.1",
"react-native-admob@2.0.0-beta.5",
"realm@2.28.1",
"react-native-fast-image@5.4.2"
"react-native-fast-image@5.4.2",
"react-native-system-setting@1.7.2"
],
"targetJsDependencies": ["react@16.8.3"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.walmartlabs.ern.container.plugins;

import android.app.Application;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.facebook.react.ReactInstanceManagerBuilder;
import com.facebook.react.ReactPackage;
import com.ninty.system.setting.SystemSettingPackage;

public class SystemSettingPlugin implements ReactPlugin {

public ReactPackage hook(
@NonNull
Application application,
@Nullable
ReactPluginConfig config
) {
return new SystemSettingPackage();
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"android": {
"root": "",
"moduleName": "android"
},
"ios": {
"copy": [
{
"source": "ios/**",
"dest": "{{{projectName}}}/Libraries/RCTSystemSetting"
}
],
"pbxproj": {
"addProject": [
{
"path": "RCTSystemSetting/RCTSystemSetting.xcodeproj",
"group": "Libraries",
"staticLibs": [
{
"name": "libRCTSystemSetting.a",
"target": "RCTSystemSetting"
}
]
}
],
"addHeaderSearchPath": [
"\"$(SRCROOT)/{{{projectName}}}/Libraries/RCTSystemSetting/**\""
]
},
"setBuildSettings": [
{
"path": "{{{projectName}}}/Libraries/RCTSystemSetting/RCTSystemSetting.xcodeproj/project.pbxproj",
"buildSettings": {
"configurations": ["Debug", "Release"],
"settings": { "GCC_PREPROCESSOR_DEFINITIONS": "BLUETOOTH" }
}
}
]
}
}

0 comments on commit a3a034b

Please sign in to comment.