Skip to content

Commit

Permalink
Refactor shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
loopedresolve committed Aug 1, 2024
1 parent 4a7716d commit f1b0099
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
4 changes: 0 additions & 4 deletions .scripts/0.1.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ post_build::create_distribution_directory
post_build::copy_abi_libraries_to_project

post_build::success

docker::build
docker::run
docker::success
18 changes: 1 addition & 17 deletions .scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,9 @@ post_build::copy_abi_libraries_to_project() {
}

post_build::success() {
log::success "▸ BUILD SUCCESSFUL!"
log::success ''
if [ $BUILD_CONFIG = "release" ]; then
log::success "Built artifacts can be found at $DISTRIBUTION_DIRECTORY"
fi
}

docker::build() {
log::message "Build Docker container"
cd $ROOT_DIRECTORY
docker build -t "finsig:Dockerfile" .
}

docker::run() {
log::message "Build smoldotkotlin library"
docker run --rm -v `pwd`:/project finsig:Dockerfile bash -c 'cd /project; ./gradlew smoldotkotlin:bundleReleaseAar'
}

docker::success() {
log::success "▸ BUILD SUCCESSFUL!"
log::success ''
log::success "AAR can be found at $ROOT_DIRECTORY/smoldotkotlin/build/outputs/aar"
}
File renamed without changes.

0 comments on commit f1b0099

Please sign in to comment.