Skip to content

Commit 3803f6a

Browse files
committed
Create build.gradle template
1 parent 22f35f8 commit 3803f6a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"prepare": "bob build && scripts/build-android.sh",
2929
"release": "release-it",
3030
"bootstrap": "yarn && cd example && yarn && cd ios && pod install",
31-
"prepublish": "rm -rf android-backup && mv android android-backup && mv android-npm android",
32-
"postpublish": "mv android android-npm && mv android-backup android"
31+
"prepack": "rm -rf android-backup && mv android android-backup && mv android-npm android",
32+
"postpack": "mv android android-npm && mv android-backup android"
3333
},
3434
"keywords": [
3535
"react-native",

scripts/build-android.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ mkdir ../android-npm
1919

2020
shopt -s dotglob nullglob
2121
mv -v build/outputs/aar/* ../android-npm
22+
23+
cd $CWD
24+
cd scripts
25+
cp template.build.gradle ../android-npm

scripts/template.build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
configurations.maybeCreate("default")
2+
artifacts.add("default", file('rnmultithreading-debug.aar')) // TODO: Use release variant here?

0 commit comments

Comments
 (0)