Skip to content

Commit 80982e8

Browse files
committed
chore: initial commit
0 parents  commit 80982e8

49 files changed

Lines changed: 7843 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// @generated by expo-module-scripts
2+
module.exports = require('expo-module-scripts/eslintrc.base.js');

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### @config-plugins/react-native-codepush 1.0.0
2+
3+
- Expo SDK 49 support
4+
5+
### @config-plugins/react-native-codepush 1.0.2
6+
7+
- Update interim README

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# react-native-code-push-plugin
2+
3+
Config plugin to auto-configure [`react-native-code-push`][lib] when the native code is generated (`npx expo prebuild`).
4+
5+
### Add the package to your npm dependencies
6+
7+
> Tested against Expo SDK 49
8+
9+
```
10+
yarn add react-native-code-push react-native-code-push-plugin
11+
```
12+
13+
After installing this npm package, add the [config plugin](https://docs.expo.io/guides/config-plugins/) to the [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`:
14+
15+
```json
16+
{
17+
"expo": {
18+
"plugins": [
19+
[
20+
"react-native-code-push-plugin",
21+
{
22+
"android": {
23+
"CodePushDeploymentKey": "YOUR_ANDROID_CODE_PUSH_KEY"
24+
},
25+
"ios": {
26+
"CodePushDeploymentKey": "YOUR_IOS_CODE_PUSH_KEY"
27+
}
28+
}
29+
]
30+
]
31+
}
32+
}
33+
```
34+
35+
Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide.
36+
37+
[lib]: https://www.npmjs.com/package/react-native-code-push
38+
39+
### Disclaimer
40+
41+
This was published interim while this PR isn't merged and the plugin isn't published under @config-plugins:
42+
https://github.com/expo/config-plugins/pull/204

app.plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("./build");
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { ConfigPlugin } from "expo/config-plugins";
2+
import { PluginConfigType } from "../pluginConfig";
3+
/**
4+
* Update `<project>/build.gradle` by adding the codepush.gradle file
5+
* as an additional build task definition underneath react.gradle
6+
* https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-installation-and-configuration-for-react-nactive-060-version-and-above-android
7+
*/
8+
export declare const withAndroidBuildscriptDependency: ConfigPlugin<PluginConfigType>;

build/android/buildscriptDependency.js

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/android/buildscriptDependency.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { ConfigPlugin } from "expo/config-plugins";
2+
import { PluginConfigType } from "../pluginConfig";
3+
/**
4+
* Updates the `MainApplication.java` by adding the CodePush runtime initialization code
5+
* https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-installation-and-configuration-for-react-native-060-version-and-above-android
6+
*/
7+
export declare const withAndroidMainApplicationDependency: ConfigPlugin<PluginConfigType>;

build/android/mainApplicationDependency.js

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)