Merge pull request #499 from realm/sk-adjust-deps
Remove rnpm postlink script
This commit is contained in:
commit
8f33b53f8e
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,3 +1,14 @@
|
||||||
|
x.x.x Release notes (yyyy-MM-dd)
|
||||||
|
=============================================================
|
||||||
|
### Breaking changes
|
||||||
|
* Please use `rnpm 1.9.0` or later to link your project. Older versions are no longer supported.
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
* None
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
* None
|
||||||
|
|
||||||
0.14.0 Release notes (2016-6-22)
|
0.14.0 Release notes (2016-6-22)
|
||||||
=============================================================
|
=============================================================
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
|
|
|
@ -48,23 +48,18 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bindings": "^1.2.1",
|
"bindings": "^1.2.1",
|
||||||
"mockery": "^1.6.2",
|
|
||||||
"nan": "^2.3.3",
|
"nan": "^2.3.3",
|
||||||
"node-gyp": "^3.3.1",
|
"node-gyp": "^3.3.1"
|
||||||
"rnpm": "1.6.5",
|
|
||||||
"xcode": "0.8.4"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^6.0.4",
|
"babel-eslint": "^6.0.4",
|
||||||
"eslint": "^2.10.2",
|
"eslint": "^2.10.2",
|
||||||
"eslint-plugin-react": "^5.1.1",
|
"eslint-plugin-react": "^5.1.1",
|
||||||
"jsdoc": "^3.4.0",
|
"jsdoc": "^3.4.0",
|
||||||
|
"mockery": "^1.7.0",
|
||||||
"semver": "^5.1.0"
|
"semver": "^5.1.0"
|
||||||
},
|
},
|
||||||
"rnpm": {
|
"rnpm": {
|
||||||
"commands": {
|
|
||||||
"postlink": "node_modules/realm/scripts/rnpm-postlink.js"
|
|
||||||
},
|
|
||||||
"ios": {
|
"ios": {
|
||||||
"project": "react-native/ios/RealmReact.xcodeproj",
|
"project": "react-native/ios/RealmReact.xcodeproj",
|
||||||
"sharedLibraries": [
|
"sharedLibraries": [
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var fs = require('fs');
|
|
||||||
var rnpm = require('rnpm/src/config');
|
|
||||||
var xcode = require('xcode');
|
|
||||||
|
|
||||||
// The current working directory should be project root of the app that is linking Realm.
|
|
||||||
var config = rnpm.getProjectConfig();
|
|
||||||
|
|
||||||
if (config.ios) {
|
|
||||||
var pbxproj = config.ios.pbxprojPath;
|
|
||||||
var project = xcode.project(pbxproj).parseSync();
|
|
||||||
var target = project.getFirstTarget().uuid;
|
|
||||||
|
|
||||||
// Create a Frameworks group if necessary.
|
|
||||||
if (!project.pbxGroupByName('Frameworks')) {
|
|
||||||
var group = project.pbxCreateGroup('Frameworks', '""');
|
|
||||||
var mainGroup = project.getFirstProject().firstProject.mainGroup;
|
|
||||||
|
|
||||||
project.getPBXGroupByKey(mainGroup).children.push({
|
|
||||||
value: group,
|
|
||||||
comment: 'Frameworks',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
['libc++', 'libz'].forEach(function(name) {
|
|
||||||
project.addFramework('usr/lib/' + name + '.tbd', {
|
|
||||||
lastKnownFileType: 'sourcecode.text-based-dylib-definition',
|
|
||||||
sourceTree: 'SDKROOT',
|
|
||||||
target: target,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
fs.writeFileSync(pbxproj, project.writeSync());
|
|
||||||
}
|
|
Loading…
Reference in New Issue