Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add react-native-system-setting #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
"[email protected]",
"[email protected]"
],
"targetJsDependencies": ["[email protected]"]
},
Expand Down Expand Up @@ -870,7 +871,8 @@
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
"[email protected]",
"[email protected]"
],
"targetJsDependencies": ["[email protected]"]
}
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" }
}
}
]
}
}