Commit Graph

21 Commits

Author SHA1 Message Date
Tomas Maly
6b4354ad8e Update postlink.js (#1262)
Fixing bug where CocoaPods files (ios/Pods/Pods.xcodeproj) causes error "Could not determine correct xcode proj path to retrieve related plist file, there are multiple xcodeproj under the solution"
2018-05-08 14:14:47 +03:00
Artem Egorov
9c5c0c3706 Fixed bug with run-android on windows (#1229) 2018-03-14 16:56:37 +03:00
Artem Egorov
be3633ae24 Android Gradle Plugin 3.x integration (#1219)
* AAPT2-compatible Android build process integration

* enhancement

* enhancement

* fix assembleDebug
2018-03-12 18:14:45 +03:00
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
oliversommer
55749ab622 improved gradle temp file naming strategy to allow concurrent android builds (#857) 2017-05-24 10:10:59 +03:00
Max
447708385e Fixed issue with error on parsing plist path (#842)
See https://github.com/Microsoft/react-native-code-push/issues/534#issuecomment-302069326 for details
2017-05-23 11:36:50 +03:00
Sergey Akhalkov
2b02ce90ef Flow type checking fix: use "CodePushHash" file name instead of "CodePushHash.json" (#763)
`CodePushHash.json` file name breaks flow type checking.
To fix the issue we need to delete `CodePushHash.json` file and
use `CodePushHash` file name instead to store the hash value.
Relates to https://github.com/Microsoft/react-native-code-push/issues/577
2017-03-22 13:27:37 -07: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
Sergey Akhalkov
294b46cb0f Support build for 'Android Plugin for Gradle' versions lower than 1.3.0 (#651)
In case version of 'Android Plugin for Gradle'' is lower than 1.3.0
'$buildDir' has slightly different structure - 'merged' folder
does not exists so '${targetPath}' folder contains directly in 'res' folder.

Fix issue https://github.com/Microsoft/react-native-code-push/issues/584
2017-01-18 17:10:30 -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
Geoffrey Goh
6532c4aee4 Update generateBundledResourcesHash.js 2016-06-27 14:01:03 -07:00
Geoffrey Goh
eb510663e5 Binary Hashing (Android) (#401)
binary hashing android
2016-06-24 19:40:32 -07:00
Geoffrey Goh
3ab1fa0a10 feedback 2016-02-26 17:50:32 -08:00
Geoffrey Goh
eb827d6d32 generate binary resources hash 2016-02-24 17:15:58 -08:00
Will Anderson
c72167162e Update build scripts to run more robustly using xctool 2015-06-10 16:21:29 -07:00