Commit Graph

10 Commits

Author SHA1 Message Date
Robert Paul
2a051e4fe3 Adding check for null ref before accessing array index (#1116)
* Adding check for null ref before accessing array index

* Adding log for missing jsCodeLocation setting
2017-12-26 09:59:28 +03:00
Ruslan Bikkinin
b4494415d9 Fix incorrect link behaviour introduced with promise addition in ios postlink script (#1003)
* Fix incorrect link behaviour introduced with promise addition in ios
postlink script

* simplify postlink/run.js
2017-09-19 10:03:38 +03:00
Max
3ee9319964 Improved logic for searching plist path (#903)
* Fixed incorrect link reference

* Improved logic for searching plist path (case when package name is not equal to iOS ProductName)
2017-06-23 18:34:34 +03:00
max-mironov
23808cae5e Fixed issue with error on parsing plist path
See https://github.com/Microsoft/react-native-code-push/issues/534#issuecomment-302069326 for details
2017-05-17 16:16:56 +03:00
max-mironov
0c2aa44f5f Improved logic for searching plist file path for iOS postlink.js (#666)
* Improved logic for searching plist file path for iOS postlink.js

Added Xcode package for parsing xcodeproj file and retrieving correct plist file related to the project. This should also fix issue described here: https://github.com/Microsoft/react-native-code-push/issues/661

* Improved logic for searching plist file path for iOS postlink.js

Added logic to narrow xcode 'getBuildProperty' function results to specified Product_Name property. This should help us to chsose correct project from pbxproj file when we have several projects defined.

* Added logic to try to get 'Release' build of ProductName matching the package name first and if it doesn't exist then try to get any other if existing
2017-02-21 23:38:19 +03:00
Sergey Akhalkov
90f0bb81d1 Resolve CodePush.h for new iOS apps created with RN 0.40 (#665)
Instead of `#import "CodePush.h"`, use `#import "<CodePush/CodePush.h>` and export CodePush.h from our module.


* [iOS][Build] Add `Headers` and `Copy Files` build phases

Due to changes in new release of `react-native@0.40.0`
there is `CodePush.h file not found` error occures.
To fix it I've added `CodePush.h` header file in `Headers`
and `Copy Files` build phases and changed
`codePushHeaderImportStatement` variable value from `#import "CodePush.h"`
to `#import <CodePush/CodePush.h>` in `postlink.js` file.
Fix https://github.com/Microsoft/react-native-code-push/issues/662

* readme: update iOS manual plugin installation/usage documentation

Due to changes in React Native v0.40.0 and changes in CodePush project Step 6. of iOS manual plugin installation (add “Header Search Paths”) is not needed anymore. Also changed path to `CodePush.h` file in `AppDelegate.m` to `#import <CodePush/CodePush.h>`
2017-01-19 16:50:20 -08:00
Nikita Matrosov
746b767d18 Improve post-linking process (#639) 2016-12-21 15:58:41 +03:00
Luca Pau
3ccfa67528 Fix failure in react-native link on Windows (#603)
Fix issue #530.
Every so often you run the command react-native link an exception is thrown because the \n in regex does not lead to the line.
2016-11-14 12:07:55 -08:00
Hilke Heremans
888684e817 Fix linking errors with multiple AppDelegate.m (#564)
In issue #477 there was an issue when the project has, for some reason, multiple AppDelegate.m files (eg project sample files) within the ios subdir of an RN project.

This fix will give priority to the AppDelegate.m found inside any path that has the application name (as defined in package.json) in it. If it cannot find that, it will revert to previous behavior (the first element in the path array).
2016-10-13 09:41:44 -07:00
Geoffrey Goh
22be520625 add postlink hooks 2016-08-02 15:54:31 -07:00