Skip to content

Commit

Permalink
Merge pull request #230 from zerotier/brenton/fix-no-such-file-or-dir…
Browse files Browse the repository at this point in the history
…ectory-error

fix 'No such file or directory' error
  • Loading branch information
joseph-henry committed Jul 20, 2023
2 parents e0200fb + fd00026 commit ca83e94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ android-aar()
CMAKE_FLAGS="-D${CMAKE_SWITCH}=1 -D${CMAKE_SWITCH}=ON"
cd $ANDROID_PKG_PROJ_DIR
./gradlew $GRADLE_ARGS assemble$UPPERCASE_BUILD_TYPE # assembleRelease / assembleDebug
cp $ANDROID_PKG_PROJ_DIR/app/build/outputs/aar/*.aar \
cp $ANDROID_PKG_PROJ_DIR/app/build/outputs/aar/libzt-$BUILD_TYPE.aar \
$PKG_OUTPUT_DIR/libzt-$BUILD_TYPE.aar
cd -
echo -e "\n - Build cache : $CACHE_DIR\n - Build output : $BUILD_OUTPUT_DIR\n"
Expand Down
6 changes: 6 additions & 0 deletions pkg/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ android {
}
}
}

android.libraryVariants.all { variant ->
variant.outputs.all { file ->
file.outputFileName = "libzt-${variant.buildType.name}.aar"
}
}
}

dependencies {
Expand Down

0 comments on commit ca83e94

Please sign in to comment.