-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from mrousavy/fix/android-aar
Fix Android npm package (aar)
- Loading branch information
Showing
6 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,5 @@ lib/ | |
.externalNativeBuild/ | ||
native_prebuilt | ||
ndk-deps | ||
|
||
android-npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Multithreading_compileSdkVersion=29 | ||
Multithreading_buildToolsVersion=29.0.2 | ||
Multithreading_targetSdkVersion=29 | ||
Multithreading_targetSdkVersion=29 | ||
android.useAndroidX=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
rootProject.name = 'rnmultithreading' | ||
|
||
include ':react-native-reanimated' | ||
project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android/') | ||
|
||
include ':rnmultithreading' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
CWD="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
|
||
cd $CWD | ||
cd .. | ||
|
||
echo 'Building Android in:' | ||
echo $PWD | ||
|
||
rm -rf android-npm/ | ||
|
||
cd android | ||
rm -rf build/ | ||
|
||
# Build .aar files | ||
./gradlew clean | ||
./gradlew assembleDebug assembleRelease | ||
|
||
rm -rf ../android-npm | ||
mkdir ../android-npm | ||
|
||
# Move over the .aar files | ||
shopt -s dotglob nullglob | ||
mv -v build/outputs/aar/* ../android-npm | ||
|
||
# Move over the build.gradle file | ||
cd $CWD | ||
cd .. | ||
cd scripts | ||
cp template.build.gradle ../android-npm/build.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |