From ebdf50519413bb907f025cc3e76ab8214b5e9589 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Fri, 17 Jun 2016 11:35:12 -0700 Subject: [PATCH 1/3] Move mockery to dev dependency and upgrade to 1.7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ebd113e..204fe7cc 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ }, "dependencies": { "bindings": "^1.2.1", - "mockery": "^1.6.2", "nan": "^2.3.3", "node-gyp": "^3.3.1", "rnpm": "1.6.5", @@ -59,6 +58,7 @@ "eslint": "^2.10.2", "eslint-plugin-react": "^5.1.1", "jsdoc": "^3.4.0", + "mockery": "^1.7.0", "semver": "^5.1.0" }, "rnpm": { From e0ff68059bf9b39091d1a0bff11fc7b9d03480f5 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Fri, 17 Jun 2016 11:27:59 -0700 Subject: [PATCH 2/3] Remove rnpm post install script This will mean we only support rnpm 1.9.0 and above. --- package.json | 7 +------ scripts/rnpm-postlink.js | 37 ------------------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100755 scripts/rnpm-postlink.js diff --git a/package.json b/package.json index 204fe7cc..ef04ae16 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,7 @@ "dependencies": { "bindings": "^1.2.1", "nan": "^2.3.3", - "node-gyp": "^3.3.1", - "rnpm": "1.6.5", - "xcode": "0.8.4" + "node-gyp": "^3.3.1" }, "devDependencies": { "babel-eslint": "^6.0.4", @@ -62,9 +60,6 @@ "semver": "^5.1.0" }, "rnpm": { - "commands": { - "postlink": "node_modules/realm/scripts/rnpm-postlink.js" - }, "ios": { "project": "react-native/ios/RealmReact.xcodeproj", "sharedLibraries": [ diff --git a/scripts/rnpm-postlink.js b/scripts/rnpm-postlink.js deleted file mode 100755 index cd5f7c5f..00000000 --- a/scripts/rnpm-postlink.js +++ /dev/null @@ -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()); -} From b6add3a77e5ab59c02069f9b9b9244818f94e884 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Wed, 22 Jun 2016 14:34:58 -0400 Subject: [PATCH 3/3] Add CHANGELOG item about rnpm 1.9.0+ support --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2ca0bab..13af66e3 100644 --- a/CHANGELOG.md +++ b/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) ============================================================= ### Breaking changes