Commit Graph

1390 Commits

Author SHA1 Message Date
Tim Scott
4aee947294 Update README.md (#751)
* Update README.md

When I fail to supply a CODEPUSH_KEY variable for debug, the build fails. This pull fixes the example code. I also added a comment letting developers know to expect errors from CodePush in debug mode. (This behavior is surprising, but I believe is by design.)

* Tweak comment
2017-03-10 18:32:09 -08:00
Sergey Akhalkov
124d05721a Verify code-push service with RN 0.42 #742
Code push service runs well with RN 0.42
2017-03-09 00:41:52 +03: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
max-mironov
2bd2b93f81 Improved guide for creating different app keys more clear (#737)
* Modified Issue_Template to be more descriptive

* Some minor changes to Description field

* Improved messages to make intention of creating different apps for different platforms more clear

Due to multiple requests in discord chanel, https://github.com/Microsoft/react-native-code-push/issues/723, https://github.com/Microsoft/react-native-code-push/issues/717

* Minor additional tweak for readme
2017-03-07 10:18:07 +03:00
Alexander Bodalevsky
ea9496d3c0 Removed temporary certificate to follow recommendation not store secrets in code. (#741) 2017-03-06 14:19:11 -08:00
BO KANG
cf4c72cc4e revert back the android API bundle support from 25 to 23 2017-03-03 12:22:33 -08:00
ymusiychuk-lohika
72cb03df39 Ensure that unzipped folder does not exist before unzip on Windows (#732)
* Ensure that Unzipped folder does not exists before unzip

* Updated comment

* Renamed InitUnzippedFolderAsync -> CreateUnzippedFolderAsync, getFolder -> existingFolder
2017-03-02 12:12:07 -08:00
BO KANG
4bba4ce88f remove leading 'v' letter from version string, bump the version v1.17.2-beta 2017-03-02 10:51:35 -08:00
BO KANG
d2c3ea6350 remove leading 'v' letter from version string 2017-03-02 10:45:30 -08:00
max-mironov
3609799850 Modified Issue_Template to be more descriptive (#729)
* Modified Issue_Template to be more descriptive

* Some minor changes to Description field
2017-03-02 11:53:52 +03:00
Sergey Akhalkov
197d8e3490 podspec: remove leading 'v' letter from version string (#731)
[`v1.2.3` is not a semantic version](https://github.com/mojombo/semver/blob/master/semver.md#is-v123-a-semantic-version). However, prefixing a semantic version with a "v" is a common way (in English)
to indicate it is a version number. Abbreviating "version" as "v" is often seen with version control.

Relate https://github.com/Microsoft/react-native-code-push/issues/727
2017-03-02 10:51:26 +03:00
BO KANG
2dd0ca2f5f reset the package versioin 1000.0.0-beta 2017-02-27 18:14:18 -08:00
BO KANG
18e1c89ccf release version v1.17.1-beta v1.17.1-beta 2017-02-27 17:51:29 -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
BO KANG
6d878bcde2 Automate test (#704)
* test automation

* accept PR comments and update the script.

* upgrade the auto script

* update the script comment.

* tackle all comments.
2017-02-21 14:57:22 -08: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
BO KANG
beb514d66c Update the readme
For the internal website layout PR, change some headers from ## to ###.
2017-02-21 10:36:11 -08:00
BO KANG
a391a192b9 format the document to fit for auto-syn purpose. 2017-02-17 15:04:01 -08:00
BO KANG
d2fa91eb61 Revert "Test automation" (#700) 2017-02-13 16:28:05 -08:00
Alexander Bodalevsky
be96f07eda Added React Native Windows dotNet46 support (#684)
Added support react-native-windows dotNet
Added example for react-native-windows UWP based
Added example for react-native-windows dotNet based

Project structure:

CodePush.Shared - shared code between UWP and dotNet
CodePush - UWP specific code
CodePush.Net46 - dotNet specific code

For UWP solution it needs to be added the following projects:

CodePush.Shared
CodePush
For dotNet solution it needs to be added the following projects:

CodePush.Shared
CodePush.Net46
Examples:

Examples\CodePushDemoApp\windows\CodePushDemoApp.sln the solution contains both examples (UWP and dotNet).

Notes

Example for ARM configuration has not been tested. Since there is no changes in UWP part of implementation, there is low risk of failure.

In this implementation we tried to reuse UWP library as much as possible. The following issues are relevant for both platforms:

ZipFile.ExtractToDirectory is not reliable and throws exception if:
folder exists already
path is too long (> 250 chars)
Un-zipping is quite long operation. Does it make sense for async?
await UpdateUtils.UnzipBundleAsync(downloadFile.Path, unzippedFolder.Path);
2017-02-13 16:23:20 -08:00
BO KANG
fc7c109535 Test automation (#687)
* accept PR comments and update the script.
2017-02-13 15:09:41 -08:00
BO KANG
ffe95cb33c add API reference anchor so that website page can get the tab to show it. 2017-02-09 16:08:16 -08:00
BO KANG
59cc18b0a7 add the hidden tag in the read me file to support the documentation auto-sync function in the web site repo 2017-02-09 15:34:02 -08:00
Jeremi Stadler
bdf10eeba2 Split README.md into seperate setup and api docs (#681) 2017-02-09 14:48:25 -08:00
Sergey Akhalkov
04f618b1bf readme: improved “Multi-Deployment Testing” chapter for iOS (#690)
After RN 0.40 it is not possible to use other configurations than Debug and Release (https://github.com/facebook/react-native/issues/11813)
As workaround we could make Staging’s Build Products Path value the same as for Release configuration.

Fix https://github.com/Microsoft/react-native-code-push/issues/688
2017-02-09 13:59:40 +03: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
3da57cdd7d readme: improved “Releasing Updates” and “Multi-Deployment Testing” chapters (#694)
CodePush updates should be tested in modes other than Debug due to in Debug mode React Native app always downloads JS bundle generated by packager, so JS bundle downloaded by CodePush does not apply.

Relates https://github.com/Microsoft/react-native-code-push/issues/614 and https://github.com/Microsoft/react-native-code-push/issues/682
2017-02-07 09:55:14 -08:00
BO KANG
24f4d9e925 verify code-push working with RN 0.41 (#686) 2017-02-03 09:58:06 -08:00
BO KANG
adf2f76db7 Reset package.json version for development 2017-01-24 15:38:06 -08:00
BO KANG
6e8eb79a22 Bump package.json and update README.md (#680) v1.17.0-beta 2017-01-24 12:13:21 -08:00
BO KANG
e42485243d Upgrade RN 0.40 Finalization (#678)
* Header changes

* update the IOS header linker

* header swap
2017-01-24 10:14:49 -08:00
Vladimir Kotikov
5448892d57 Do not package android build artifacts (#652) 2017-01-24 10:09:49 -08:00
Christopher Dro
25851d24a1 Update header imports for RN 0.40 (#670)
This PR has been tested with the other two PRs for the RN 0.40.
2017-01-23 18:21:03 -08:00
Richard Hua
0a14e3590d Tidy README.md formatting 2017-01-23 18:10:06 -08:00
Vojtech Novak
c17fa24137 Update README.md for possible issue with ios configuration (#648) 2017-01-23 18:06:06 -08:00
Teodors Zeltiņš
24b9d07a87 Update README.md (#677)
Changed the end of line column to a comma and added a bit more context
2017-01-23 17:18:55 -08:00
BO KANG
118dc75284 Update read me
react native version support typo update
2017-01-20 16:01:07 -08:00
Vladimir Kotikov
ec5dba7386 Upgrade example app to react-native 0.40.0 (#638)
* Update sample to react-native@0.40

* Update compatibility with latest react-native

* Fixed Merge Issues with CodePushDemoApp.xcscheme
2017-01-20 09:54:44 -08: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
Vladimir Kotikov
7572ddca61 Fix BuildVersionConfigKey spelling (#659) 2016-12-28 09:58:01 +03:00
Nikita Matrosov
746b767d18 Improve post-linking process (#639) 2016-12-21 15:58:41 +03:00
Richard Hua
e39ade09f5 Bump package.json for 1.16.1-beta v1.16.1-beta 2016-12-02 18:05:54 -08:00
Richard Hua
6da5918b98 Upgrade example app to React Native 0.39 (#630)
* Upgrade example app to react-native@0.39.0

* Fix formatting

* Update README.md to reflect new compatibility
2016-12-02 18:04:10 -08:00
Richard Hua
32032f191a Fix compilation error when installed by CocoaPods in Swift projects (#627) 2016-12-02 16:37:01 -08:00
BO KANG
76b4f4d558 Upgrade to rn 0.38 (#624)
* upgrade to RN 0.38
2016-11-28 13:58:13 -08:00
Sota Yamashtia
2431cb8c19 Remove MoveIt! from example section (#622)
Remove Movelt! bacause it is 404 and not maintained anymore according to https://github.com/multunus/moveit-mobile.
2016-11-28 12:56:07 -08:00