Skip to content

Commit

Permalink
update to 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminlinux committed Feb 23, 2017
1 parent ed270d1 commit c107442
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 40 deletions.
38 changes: 0 additions & 38 deletions JPushConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,6 @@ if (moduleName == undefined || moduleName == null) {
moduleName = "app";
};

function projectConfiguration(path){

if (isFile(path) == false) {
console.log("configuration JPush error!!");
return;
}

var rf = fs.readFileSync(path,"utf-8");
rf = rf.replace(/ OTHER_LDFLAGS = \(/g, " OTHER_LDFLAGS = \(\n\
\"-framework\",\n\
Adsupport,\n\
\"-framework\",\n\
Security,\n\
\"-framework\",\n\
UIKit,\n\
\"-framework\",\n\
Foundation,\n\
\"-framework\",\n\
CoreGraphics,\n\
\"-framework\",\n\
SystemConfiguration,\n\
\"-framework\",\n\
CoreTelephony,\n\
\"-framework\",\n\
CoreFoundation,\n\
\"-framework\",\n\
CFNetwork,\n\
\"-lresolv\",\n\
\"-lz\",");
fs.writeFileSync(path, rf, "utf-8");
}


function insertJpushCode(path){
// 这个是插入代码的脚本 install
Expand Down Expand Up @@ -195,12 +163,6 @@ getAllfiles("./ios",function (f, s) {
insertJpushCode(f);
}

// 找到 iOS 工程文件,插入需要链接的库文件
var isiOSProjectPbxprojFile = f.match(/[.]*\.pbxproj/);
if (isiOSProjectPbxprojFile != null) {
console.log("the file is iOS project file:"+f);
projectConfiguration(f);
}
});

getAndroidManifest("./android/" + moduleName, function(f, s) {
Expand Down
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jpush-react-native",
"version": "1.4.6",
"version": "1.5.0",
"description": "a jpush plugin for react native application",
"main": "index.js",
"scripts": {
Expand All @@ -22,7 +22,23 @@
},
"homepage": "https://github.com/jpush/jpush-react-native#readme",
"peerDependencies": {
"react-native": ">= 0.40.0",
"jcore-react-native": ">= 1.0.0"
},
"rnpm": {
"ios": {
"sharedLibraries": [
"libz",
"UserNotifications",
"CoreTelephony",
"Security",
"CFNetwork",
"CoreFoundation",
"SystemConfiguration",
"Foundation",
"UIKit",
"libresolv",
"CoreGraphics"
]
}
}
}

0 comments on commit c107442

Please sign in to comment.