Commit Graph

200 Commits

Author SHA1 Message Date
Neo
300a8358e3 [android] RN0.43 capacity (#735)
Fixed android project build issues that have place due to the following breaking changes: 
facebook/react-native#12329
facebook/react-native#12396
2017-03-23 13:24:54 +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
Sergey Akhalkov
1c5f4a1a15 build.gradle: set Android SDK Build Tools version to 23.0.1 (#747)
`react-native-code-push@1.17.1-beta` release introduces Android SDK Build Tools inconsistency between React Native app and react-native-code-push Module.
It's convenient to have the same version of Android SDK Build Tools both for React Native app and react-native-code-push module, due to https://github.com/facebook/react-native/pull/11422#issuecomment-266814770
2017-03-08 00:53:11 +03:00
BO KANG
cf4c72cc4e revert back the android API bundle support from 25 to 23 2017-03-03 12:22:33 -08:00
Ray Vafa
4180f9cd6c Update Android SDK to 25.0.2 (#725) 2017-02-27 17:48:43 -08: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
Christian Meunier
73f0984689 Update Android SDK to 23.0.3 (#710)
Fixes #709
2017-02-21 18:06:11 -08:00
Sergey Akhalkov
341a205a1d codePushNativeModule: launch async tasks in parallel (#693)
AsyncTasks are executed on a single thread to avoid common application errors caused by parallel execution.
So to make it possible to use tools like AsyncStorage while CodePush downloading an update we should use
`asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);` code instead of `asyncTask.execute()`
2017-02-09 11:44:03 +03: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
Richard Hua
d9a85c87f3 Support React Native 0.36.0 and 0.37.0 (#602)
* Upgrade example app to react-native@0.37.0
* Fix crash on restart caused by loadBundle() being called twice
2016-11-14 22:40:36 -08:00
Martin Konicek
ae0d35244f [Android] Let npm take care of versioning (#589) 2016-11-11 17:52:10 -08:00
Swordsman-Inaction
5bcea7be35 Fix comparison method in setJSBundle (#587) 2016-10-31 22:30:11 -07:00
Richard Hua
27029c82f3 Remove the project name from settings.gradle (#567)
As mentioned in #558, this line may override the original app's own project name.
2016-10-17 16:46:04 -07:00
Richard Hua
3dce59f36e Ignore OSX metadata when hashing updates (#561)
On Android, prevent hash mismatches by ensuring the hashing algorithm ignores OS X metadata (.DS_Store and __MACOSX). This addresses #472, and mirrors #471, which is the iOS side of the fix.
2016-10-11 10:49:40 -07:00
Richard Hua
22d2a146d2 Support RN 0.34 (#557)
* Upgrade example app to RN 0.34.1
* Fix Android reflection logic to support RN 0.34 (as reported in #536), while maintaining backward compatibility
* Bump package.json and update supported RN versions in README
2016-10-06 16:18:07 -07:00
Connor McEwen
30b27337d3 Check that the previous package is not null 2016-09-28 13:41:20 +01:00
Felipe Lima
8c4c8046c6 Remove unnecessary config from AndroidManifest
This was causing some manifest merging issues for us, however it seems
like this stuff is completely unnecessary, especially for an android
library, so I'm removing it all.
2016-09-21 10:46:38 -07:00
Geoffrey Goh
f8a50d4482 allow node modules path to be overridden 2016-09-02 00:40:44 -07:00
Geoffrey Goh
1846018d26 fix android import regression 2016-08-31 17:24:46 -07:00
Geoffrey Goh
c376c301d5 Merge pull request #491 from igrayson/patch-1
[Android] Support React instances with no Activity
2016-08-30 13:05:54 -07:00
Ian Grayson
f6ea4ec00d [Android] Support React instances with no Activity
This change aims to support applications which run React Native's catalyst instance in the background, sometimes without an activity.

We're using this change today in an RN 0.27 application, which overrides `ReactActivity#createReactInstanceManager` to afford us control of the instance's lifecycle, so that we may run and launch without an `Activity` (i.e., in response to push notifications and other triggers).

If we agree with this approach, I'll update this PR with documentation/etc.
2016-08-29 13:52:28 -07:00
Geoffrey Goh
b743d07ecf fix 0.32 compat 2016-08-26 14:26:20 -07:00
Geoffrey Goh
c11560f697 fix 0.32 compat 2016-08-26 14:23:21 -07:00
Ian Grayson
167eabd289 Proguard rules 2016-08-25 15:50:23 -07:00
Geoffrey Goh
235450604f fix reflection not getting field from superclass 2016-08-17 18:08:40 -07:00
Geoffrey Goh
807f4cfc36 remove ReactActivity dependency 2016-08-17 13:00:58 -07:00
Geoffrey Goh
f006821bdb remove soloader 2016-08-09 10:56:31 -07:00
Richard Hua
07e270da9b Merge pull request #447 from Microsoft/override-app-version
Allow an app's binary version to be manually specified
2016-08-01 18:28:29 -07:00
Richard Hua
23e7b18f3f Refactor app version into single variable 2016-08-01 18:23:45 -07:00
Richard Hua
1a1004ee8b Allow the binary version to be specified independently of the app version 2016-08-01 17:02:12 -07:00
Richard Hua
9299748f2e Refactoring - remove deleteDirectory() function 2016-07-29 18:28:00 -07:00
Richard Hua
b20d56f8f2 Do not attempt to remove a directory before its children have been deleted 2016-07-29 18:07:11 -07:00
Geoffrey Goh
516f5cac64 Update CodePushDialog.java 2016-07-28 14:40:47 -07:00
Geoffrey Goh
20370fa3ca fix NPE when showing dialog while app is backgrounded 2016-07-28 10:52:29 -07:00
Geoffrey Goh
cdbb8dbd49 fix NPE when showing dialog while app is backgrounded 2016-07-28 10:48:15 -07:00
Geoffrey Goh
337a03e859 Merge pull request #424 from Microsoft/add-resume-listener-immediate
Add resume listener for immediate installs
2016-07-11 16:52:14 -07:00
Geoffrey Goh
3ce96e9433 ignore minimumBackgroundDuration for immediate installs 2016-07-11 16:51:27 -07:00
Geoffrey Goh
538db291ec Add resume listener for immediate installs, no-op loadBundle if currentActivity is null 2016-07-11 15:57:04 -07:00
Richard Hua
8ec8058092 Fix 'unchecked call' warnings on classes obtained through reflection 2016-07-08 19:11:11 -07:00
Jonathan Carter
b665afdeb5 Merge pull request #416 from Microsoft/getConfig
[Android] Guarding against NPEs in getConfiguration
2016-07-05 21:41:59 -07:00
Jonathan Carter
d26188fb12 Pre-computing binary hash 2016-07-05 21:40:10 -07:00
Jonathan Carter
71eea1771f Capture device ID 2016-07-05 18:19:57 -07:00
Jonathan Carter
3a351d4d05 Removing extra logging 2016-07-05 17:56:22 -07:00
Jonathan Carter
8ad33ebc2d Guarding against NPEs 2016-07-05 17:50:39 -07:00
Jonathan Carter
acb51b6206 Removing module reference 2016-07-05 17:31:55 -07:00
Jonathan Carter
3f77c66c4c Clean up gradle file 2016-07-05 08:46:17 -07:00
Jonathan Carter
a05b064df0 Rename argument 2016-07-01 14:58:59 -07:00
Jonathan Carter
99017f559a Improve restart legacy 2016-07-01 14:46:11 -07:00
Geoffrey Goh
11a0a9e288 Update build.gradle 2016-07-01 10:50:58 -07:00