-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add task to build experimental engine in android
- Loading branch information
Showing
5 changed files
with
46 additions
and
1 deletion.
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
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 +1,2 @@ | ||
/oonimkall.aar | ||
/oonimkall-sources.jar |
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,2 +1,12 @@ | ||
configurations.maybeCreate("default") | ||
artifacts.add("default", file('oonimkall.aar')) | ||
|
||
task clean(type: Delete) { | ||
delete 'oonimkall.aar' | ||
delete 'oonimkall-sources.jar' | ||
} | ||
|
||
task buildExperimentalArchive(type: Exec) { | ||
commandLine 'sh', 'mkdir' , '-p' , rootProject.buildDir | ||
commandLine 'sh', "../scripts/build_experimental_archive.sh" , project.property('ooni.experimental.target') , rootProject.buildDir | ||
} |
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 @@ | ||
ooni.experimental.target=master |
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,29 @@ | ||
#!/bin/sh | ||
|
||
# Define build and output directories | ||
gitTarget=${1:-"master"} | ||
buildDir=${2:-"./build"} | ||
|
||
# Create build directory and navigate into it | ||
mkdir -p "${buildDir}" && cd "${buildDir}" | ||
|
||
# Clone the repository | ||
git clone -v https://github.com/ooni/probe-cli.git | ||
|
||
# Navigate into the repository | ||
cd probe-cli | ||
|
||
git checkout master | ||
|
||
git pull origin | ||
# Checkout the target branch | ||
git checkout -c "${gitTarget}" | ||
|
||
# Build the probe-cli | ||
make android | ||
|
||
cp -v ./MOBILE/android/oonimkall.aar ../../engine-experimental/ | ||
cp -v ./MOBILE/android/oonimkall-sources.jar ../../engine-experimental/ | ||
|
||
|
||
echo "* Fetching geoip databases" |