Skip to content

Commit aae3de3

Browse files
Update titles for Android docs (microsoft#1739)
* Update titles for Android docs * Fix broken links
1 parent 0dfad8d commit aae3de3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/setup-android.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* [Plugin Installation for React Native lower than 0.60 (Android)](#plugin-installation-for-react-native-lower-than-060-android)
55
* [Plugin Installation (Android - RNPM)](#plugin-installation-android---rnpm)
66
* [Plugin Installation (Android - Manual)](#plugin-installation-android---manual)
7-
* [Plugin Configuration (Android)](#plugin-configuration-android)
8-
* [For React Native >= v0.29](#for-react-native--v029)
7+
* [Plugin Configuration for React Native lower than 0.60 (Android)](#plugin-configuration-for-react-native-lower-than-060-android)
8+
* [For React Native v0.29 - v0.59](#for-react-native-v029---v059)
99
* [For newly created React Native application](#for-newly-created-react-native-application)
1010
* [For existing native application](#for-existing-native-application)
1111
* [For React Native v0.19 - v0.28](#for-react-native-v019---v028)
@@ -95,7 +95,7 @@ In order to accommodate as many developer preferences as possible, the CodePush
9595
9696
2. If you're using RNPM >=1.6.0, you will be prompted for the deployment key you'd like to use. If you don't already have it, you can retrieve this value by running `code-push deployment ls <appName> -k`, or you can choose to ignore it (by simply hitting `<ENTER>`) and add it in later. To get started, we would recommend just using your `Staging` deployment key, so that you can test out the CodePush end-to-end.
9797
98-
And that's it for installation using RNPM! Continue below to the [Plugin Configuration](#plugin-configuration-android) section to complete the setup.
98+
And that's it for installation using RNPM! Continue below to the [Plugin Configuration](#plugin-configuration-for-react-native-lower-than-060-android) section to complete the setup.
9999
100100
#### Plugin Installation (Android - Manual)
101101
@@ -125,13 +125,13 @@ And that's it for installation using RNPM! Continue below to the [Plugin Configu
125125
...
126126
```
127127
128-
### Plugin Configuration (Android)
128+
### Plugin Configuration for React Native lower than 0.60 (Android)
129129
130130
*NOTE: If you used RNPM or `react-native link` to automatically link the plugin, these steps have already been done for you so you may skip this section.*
131131
132132
After installing the plugin and syncing your Android Studio project with Gradle, you need to configure your app to consult CodePush for the location of your JS bundle, since it will "take control" of managing the current and all future versions. To do this:
133133
134-
#### For React Native >= v0.29
134+
#### For React Native v0.29 - v0.59
135135
136136
##### For newly created React Native application
137137

scripts/postlink/android/postlink.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ module.exports = () => {
3737
} else {
3838
return Promise.reject(`Couldn't find Android application entry point. You might need to update it manually. \
3939
Please refer to plugin configuration section for Android at \
40-
https://github.com/microsoft/react-native-code-push#plugin-configuration-android for more details`);
40+
https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-configuration-for-react-native-lower-than-060-android for more details`);
4141
}
4242
}
4343

4444
if (!fs.existsSync(buildGradlePath)) {
4545
return Promise.reject(`Couldn't find build.gradle file. You might need to update it manually. \
4646
Please refer to plugin installation section for Android at \
47-
https://github.com/microsoft/react-native-code-push#plugin-installation-android---manual`);
47+
https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-installation-android---manual`);
4848
}
4949

5050
// 2. Add the codepush.gradle build task definitions

scripts/postunlink/android/postunlink.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = () => {
3131
} else {
3232
console.log(`Couldn't find Android application entry point. You might need to update it manually. \
3333
Please refer to plugin configuration section for Android at \
34-
https://github.com/microsoft/react-native-code-push#plugin-configuration-android for more details`);
34+
https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-configuration-for-react-native-lower-than-060-android for more details`);
3535
}
3636
}
3737

@@ -41,7 +41,7 @@ module.exports = () => {
4141
if (!fs.existsSync(buildGradlePath)) {
4242
console.log(`Couldn't find build.gradle file. You might need to update it manually. \
4343
Please refer to plugin installation section for Android at \
44-
https://github.com/microsoft/react-native-code-push#plugin-installation-android---manual`);
44+
https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-installation-android---manual`);
4545
} else {
4646
var buildGradleContents = fs.readFileSync(buildGradlePath, "utf8");
4747
var codePushGradleLink = linkTools.codePushGradleLink;

0 commit comments

Comments
 (0)