Commit Graph

182 Commits

Author SHA1 Message Date
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
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
Geoffrey Goh
31e1b8ca9d no-op if the pending update is already installed 2016-06-29 15:54:45 -07:00
Geoffrey Goh
8624904cd4 fix bug from merge conflict resolution 2016-06-28 14:53:42 -07:00
Geoffrey Goh
c7fa9ace2d remove old method 2016-06-28 14:52:48 -07:00
Geoffrey Goh
b9824b9254 merge with master 2016-06-28 14:52:04 -07:00
Geoffrey Goh
416b82be13 Update CodePush.java 2016-06-27 12:41:18 -07:00
Geoffrey Goh
38a52dc7a6 0.29 compat + refactoring android (#398)
0.29 compat
2016-06-27 09:27:31 -07:00
scottbommarito
a37c0b989e use promises and an async function to improve behavior 2016-06-23 15:44:05 -07:00
Jonathan Carter
d530babd3f Android implementation 2016-06-19 10:33:58 -07:00
scottbommarito
fdb3bd9df1 Merge branch 'master' into automated-testing 2016-06-13 10:37:02 -07:00
Geoffrey Goh
03e250f87c Prevent dialog from invoking callback twice 2016-06-10 14:04:30 -07:00
scottbommarito
e87f1977d0 tests work on android, mostly on iOS 2016-05-25 14:26:35 -07:00
Jonathan Carter
f10eb7ef67 Adding braces 2016-05-23 15:26:51 -07:00
Jonathan Carter
c0c32babc7 Metrics fix 2016-05-23 15:06:17 -07:00
Geoffrey Goh
16b2803742 Merge pull request #341 from Microsoft/remove-multiple-instance-message
Remove "More than one CodePush instance" message
2016-05-19 17:08:44 -07:00
Geoffrey Goh
66a36071e5 fix rollback status report 2016-05-19 15:28:41 -07:00