Skip to content

Commit

Permalink
Create build.gradle template
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 18, 2021
1 parent 22f35f8 commit 3803f6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"prepare": "bob build && scripts/build-android.sh",
"release": "release-it",
"bootstrap": "yarn && cd example && yarn && cd ios && pod install",
"prepublish": "rm -rf android-backup && mv android android-backup && mv android-npm android",
"postpublish": "mv android android-npm && mv android-backup android"
"prepack": "rm -rf android-backup && mv android android-backup && mv android-npm android",
"postpack": "mv android android-npm && mv android-backup android"
},
"keywords": [
"react-native",
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ mkdir ../android-npm

shopt -s dotglob nullglob
mv -v build/outputs/aar/* ../android-npm

cd $CWD
cd scripts
cp template.build.gradle ../android-npm
2 changes: 2 additions & 0 deletions scripts/template.build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('rnmultithreading-debug.aar')) // TODO: Use release variant here?

0 comments on commit 3803f6a

Please sign in to comment.