AndroidStudio-importable react-native android plugin template
If Android SDK or build-tools-23.0.1 is not installed, run the following with elevated privileges:
# update this variable with the latest url from https://developer.android.com/studio/index.html#downloads
android_sdk_url=https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
# android sdk install path
install_prefix=/usr/local
android_sdk=android-sdk
# attempt android sdk installation if not present
[[ -d $install_prefix/$android_sdk ]] || {
curl --silent -L $android_sdk_url -o $android_sdk.tgz
tar xf $android_sdk.tgz
mv $android_sdk $install_prefix
rm $android_sdk.tgz
}
# attempt build tools installation
echo y | $install_prefix/$android_sdk/android update sdk --no-ui --all --filter build-tools-23.0.1
- Get a copy
git clone https://github.com/io-digital/react-native-android-plugin-template your_lib_name_here
- Start fresh
cd your_lib_name_here && rm -rf .git/ && git init
- Add a remote
git remote add origin git+ssh://your/remote/url/here
- Change the name of
your_lib_name_here/
and its counterpart insettings.gradle
- Update
AndroidManifest.xml
and the package directory structure to reflect your package-identifier - Import this directory into AndroidStudio as a Gradle-based project
- Update this readme
- Add a license
- Update
package.json
- Set release configuration parameters in
your_lib_name_here/build.gradle