14 Commits

Author SHA1 Message Date
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
Ruslan Bikkinin
416af9b738 Fix incorrect long value restoration from strings.xml (#956)
Fix potencial incorrect long value restoration from strings.xml (please,
see https://github.com/Microsoft/cordova-plugin-code-push/issues/264)
2017-08-08 16:22:55 +03:00
Mike Lambert
658e81add1 Fix dependency issue (#902)
Fix this crash I see when building for android:
```
:app:generateBundledResourcesHashDebug
module.js:471
    throw err;
    ^

Error: Cannot find module '/var/folders/94/wngs1jw91_n2_jjjrfljtqrc0000gn/T/CodePushResourcesMap-1b95774b.json'
```

Looks like these two tasks (`recordFileBeforeBundleCommand` and `generateBundledResourcesHash`) run in parallel, which create problems because one depends on a file generated by the other. Not sure why others don't have this issue, though, but I suspect this is exactly the issue reported in https://github.com/Microsoft/react-native-code-push/issues/836
2017-06-26 11:10:19 +03:00
Sergey Akhalkov
66cf73fe06 Fix typo while configuring resourcesDirConfigName path in codepush.gradle (#876) 2017-06-16 13:47:58 +03:00
Sergey Akhalkov
088503d970 Use project.ext.react root prop to specify node_modules path (#869) 2017-06-02 17:14:13 +03:00
Iacopo Pazzaglia
3761d9ece0 Allow custom node path(#773) (#860) 2017-05-26 11:50:10 +03:00
oliversommer
55749ab622 improved gradle temp file naming strategy to allow concurrent android builds (#857) 2017-05-24 10:10:59 +03:00
Igor Borges
c794c36dfd Allow output directory of CodePushHash.json to be customized (#712)
Remove `assetsDir` variable, as `generateBundledResourcesHash.js` should output `CodePushHash.json` to `jsBundleDir${targetName}` folder, and not the hardcoded `$buildDir/intermediates/assets/${targetPath}` one.
2017-02-24 18:46:41 -08:00
Sergey Akhalkov
4df7235dd4 CodePush: changed implementation of getBinaryResourcesModifiedTime method (#683)
Due to “the last modified date on all files in an apk now have the time stamp of 'Fri, Nov 30 1979 00:00:00'”
(https://code.google.com/p/android/issues/detail?id=220039) we have to store apk build time value in
`app/src/main/res/values/strings.xml` file and use it further in `getBinaryResourcesModifiedTime` method

Fix https://github.com/Microsoft/react-native-code-push/issues/650
2017-02-09 11:40:31 +03: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
Geoffrey Goh
f8a50d4482 allow node modules path to be overridden 2016-09-02 00:40:44 -07:00
Geoffrey Goh
eae4dd47a5 Update codepush.gradle 2016-03-10 12:08:30 -08: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