Commit Graph

1508 Commits

Author SHA1 Message Date
Ruslan Bikkinin
5e332bbe83 Implement code signing for client android SDK (#966)
* Add new optional way to create CodePush instance based on builder pattern
Add constructor with additional option PublicKeyFilePath

* Adapt changes from old code-signing branch

Add `com.auth0:java-jwt:3.2.0` to deps
Adapt changes from code-signing branch
Fix errors appeared due to jwt library update.

* Non-breaking change of CodePush constructor, downgrade jwt library

Replace publicKey by publicKeyResourceDescriptor in CodePush constructor
Downgrade jwt library to 2.2.2 due to issue with base64 decoding

* Make code signing optional

* Add small improvements

Replace CodePushUnknownException catch with
CodePushInvalidPublicKeyException in certain places
Make mPublicKey static
Add additional log for applying updates

* Rename method verifyJWT with verifyAndDecodeJWT

* Add minor fixes

Add additional checking for potential problems with code-signing
integration
Fix Public Key parsing from strings.xml

* Fix constructors

* Fix constructors bug

* Fix log messages
2017-09-13 12:08:17 +03:00
Ruslan Bikkinin
4ab0e5e9fe Implement code signing for client ios SDK (#974)
* Add JWT Library to ios project

* Add new option PublicKey to Info.plist

* Implement code signing mechanism

Update JWT library to 3.0.0-beta4
Implement signature verification mechanism

* Undo redundant changes

* Minor improvements

* Minor fixes

Add additional checking for specific update situations
Fix bugs
Refactor method names

* Add new dependencies to podspec

* Minor improvements

Fix log messages
2017-09-13 11:28:22 +03:00
Ruslan Bikkinin
dbb7f79a2b Update docs in terms of Code Signing feature (#988)
* Update setup-ios docs

* Update android docs

* Add minor fixes

* Add additional fixes

* Remove redundant lines

* Cleaning up verbiage

* Cleaned up verbiage.
2017-09-13 11:28:00 +03:00
Andrew Jack
d37ee85620 check if package metadata is null (#992) 2017-09-12 10:56:12 +03:00
Kevin Cooper
359ab9819c Update the debug message for missing bundles (#923)
* Update the debug message in CodePush.m for missing bundles

* Update text for updated RN PR

* Add a real example of what to add to the script
2017-09-07 17:03:10 +03:00
Kevin Cooper
d78956bc65 Restore compatibility with RN v0.46 (#980)
* Revert "Remove overriden createJSModules"

This reverts commit dff9f47a4b8b31e9ad4bfe36acf57fff8291163d.

* Remove @Override annotation to support RN v0.47
2017-09-05 10:19:43 -07:00
max-mironov
129e019350 verify rn code-push sdk with RN 0.48
update compatibility table
2017-09-04 01:00:42 -07:00
max-mironov
d855c703bb Merge branch 'master' of https://github.com/max-mironov/react-native-code-push
# Conflicts:
#	Examples/CodePushDemoApp/package.json
2017-09-04 00:57:10 -07:00
Zakeel M
a90416d917 Added create-react-native-app information to README (#979) 2017-08-29 09:47:01 +03:00
Alexander Bodalevsky
b79257f419 Fix WPF. Application crashes on startup (#973)
* Align windows examples with the latest react native  react native v: 0.47.1

* re-create corrupted json file
2017-08-24 12:51:44 +03:00
Sergey Akhalkov
de0c36f771 Update ISSUE_TEMPLATE.md 2017-08-10 13:40:50 +03:00
Sergey Akhalkov
6f6f145cbd implement script to generate CodePushified React Native apps (#958)
* implement fully automatic script to generate CodePushified React Native apps

* fix compatibility issues, remove generate-app.sh

* update docs, improve react-native version detection
2017-08-09 14:07:15 +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
Max
aa6a7acc05 Updated Android/ios parts for DemoApp with RN0.47.1 (#946) 2017-08-03 01:54:00 -07:00
max-mironov
b70465f9b6 Updated Android/ios parts for DemoApp with RN0.47.1 2017-08-03 11:48:11 +03:00
Sergey Akhalkov
2333ef86f9 verify code-push sdk with RN 0.47.x (#944)
update compatibility table
2017-08-02 15:19:19 +03:00
max-mironov
ed68a8ca19 reset back to development 2017-08-02 14:53:27 +03:00
max-mironov
0f4be23eb6 bump version for next release v5.0.0-beta 2017-08-02 14:44:02 +03:00
Tomas Roos
dfe154de5c Remove overriden createJSModules (#895)
Since of recently in master the unused createJSModules has been removed and ReactPackage's no longer contain the definition of createJSModules. There for it must be removed in order to not yield a compile error. This is breaking change.

ce6fb337a1
2017-08-02 12:46:28 +03:00
Lorenzo Sciandra
44e5c840e6 Clarify store rulings (#936)
* Clarify store rulings

Related to issue #927, my take on expanding the section that mentions Apple's ruling over OTA updates & update promts.

* Update README.md

Cleaned up verbiage and section header.
2017-07-24 09:51:45 -07:00
max-mironov
5b640b2c15 reset version for development 2017-07-20 13:44:17 +03:00
max-mironov
e904a2a79b Bump version for new release v4.1.0-beta 2017-07-20 13:42:13 +03:00
max-mironov
074d372352 Merge branch 'master' of https://github.com/Microsoft/react-native-code-push 2017-07-20 10:44:58 +03:00
Julien K
3808b5732b [tvOS] Add target (#824)
* [Podspec] Add tvOS plarform

* [Project] Add tvOS target
2017-07-19 17:12:54 +03:00
max-mironov
64a6f9ca9b Merge branch 'master' of https://github.com/JulienKode/react-native-code-push 2017-07-19 14:40:56 +03:00
Ruslan Bikkinin
448d05b23c docs update - added InstallMode.ON_NEXT_SUSPEND option description (#928) 2017-07-18 17:01:49 +03:00
Andrew Jack
e6936b3aa0 Prevent Rollback crash when binary was updated. (#924)
* Prevent Rollback crash when binary was updated.

* Self review
2017-07-17 17:29:56 +03:00
Ruslan Bikkinin
85e094f7e1 Handle TargetBinaryVersionMismatch #2 (#920)
* Handle TargetBinaryVersionMismatch

* fix readme, add binary version mismatch example to docs

* fix docs, typings
2017-07-17 17:19:52 +03:00
Andrew Goodale
26d84b5a81 Fix declaration of "_installMode" to remove warnings (#922) 2017-07-17 11:30:26 +03:00
Sergey Akhalkov
936681e7b5 [docs] update supported React Native platforms table (#917) 2017-07-12 14:57:30 +03:00
max-mironov
e5e635bf64 reset package json for development 2017-07-11 15:15:13 +03:00
max-mironov
17ed80cc4a Bump package json version for next release v4.0.0-beta 2017-07-11 15:13:45 +03:00
Sergey Akhalkov
9bc0770845 add support for RN 0.46.x (#905) 2017-07-07 13:05:40 +03:00
max-mironov
9a6b44b588 reset package.json back for development 2017-07-04 10:49:31 +03:00
max-mironov
0ab4ea6b41 Bump package.json for next release v3.0.1-beta 2017-07-04 10:47:48 +03:00
Sergey Akhalkov
8d63d81bf3 fix java.lang.NullPointerException: java.io.File.<init> (File.java:262) exception (#911)
relates to #906, #910
2017-07-03 17:13:16 +03:00
Sergey Akhalkov
3e34f1af44 update compatibiltity table (#908) 2017-06-28 15:34:47 +03:00
max-mironov
3ff75aa8fb reset package son version 2017-06-28 15:00:08 +03:00
max-mironov
319d2b148b Bump package json version v3.0.0-beta 2017-06-28 14:50:14 +03:00
max-mironov
0fa562f7aa Merge branch 'master' of https://github.com/max-mironov/react-native-code-push 2017-06-27 11:11:45 +03:00
Sergey Akhalkov
d62f3df4bf add support for RN 0.45.x (#901)
* add support for RN 0.45.x

* add support for RN 0.45.x

* to last

* remove additional calls

* remove support for RN 0.46.x that has been added due to as of now it is not compatibale with RN 0.45.x
2017-06-26 11:37:37 +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
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
max-mironov
0565b1c693 Merge branch 'master' of https://github.com/Microsoft/react-native-code-push 2017-06-23 04:59:10 -07:00
max-mironov
04cb0063fb Improved logic for searching plist path (case when package name is not equal to iOS ProductName) 2017-06-23 04:57:59 -07:00
Alexander Bodalevsky
fe9745237b [WPF] Fix application crash when storage file was deleted while app is being active. (#897)
* Create file if non exist on each call

* Added asyn operation
2017-06-22 14:53:23 +03:00
Max
ef5ab894b1 Fixed incorrect link reference (#900) 2017-06-22 11:45:10 +03:00
max-mironov
e8a160595d Fixed incorrect link reference 2017-06-22 01:29:55 -07:00
Gant Laborde
4a931063be [docs] remove @latest from npm install (#889) 2017-06-20 16:47:04 +03:00
Alexander Bodalevsky
d132593458 Windows: Implemented TelemetryManager (#812)
* Examples updated to RNW 0.43.0

* Initial implementation

* interim commit

* getUpdateReport - completed

* getBinaryUpdateReport - completed

* getRetryStatusReport - completed

* getRollbackReport - completed

* recordStatusReported - completed
saveStatusReportForRetry - completed

* Commented unused variables

* Fixed telemetry report

* Optimization: run telemetry in async mode

* neat fixes

* react-native-windows updated to 0.43.0-rc.0

* neat fix

* added async to some ReactMEthod calls
2017-06-16 13:58:52 +03:00