Browse Source

trunk build, ndk r23c, target 32

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/49/head
R4SAS 1 year ago
parent
commit
57fef00c48
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 22
      .github/workflows/android.yml
  2. 6
      app/build.gradle
  3. 2
      app/jni/boost
  4. 6
      app/jni/build_boost.sh
  5. 2
      app/jni/build_miniupnpc.sh
  6. 2
      app/jni/i2pd
  7. 6
      app/src/main/AndroidManifest.xml

22
.github/workflows/android.yml

@ -21,15 +21,15 @@ jobs: @@ -21,15 +21,15 @@ jobs:
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
build-tools;31.0.0
platforms;android-31
ndk;21.4.7075529
cmake;3.18.1
build-tools;32.0.0
platforms;android-32
ndk;23.2.8568313
cmake;3.22.1
cache: true
- name: Build required modules
run: |
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.4.7075529
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.2.8568313
pushd app/jni
./build_boost.sh
./build_openssl.sh
@ -40,7 +40,7 @@ jobs: @@ -40,7 +40,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: android-apks.zip
name: android-apks
path: app/build/outputs/apk/debug/*.apk
build-binary:
@ -61,13 +61,13 @@ jobs: @@ -61,13 +61,13 @@ jobs:
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
ndk;21.4.7075529
cmake;3.18.1
ndk;23.2.8568313
cmake;3.22.1
cache: true
- name: Build required modules
run: |
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.4.7075529
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.2.8568313
pushd binary/jni
./build_boost.sh
./build_openssl.sh
@ -86,10 +86,10 @@ jobs: @@ -86,10 +86,10 @@ jobs:
- name: Upload binaries archive
uses: actions/upload-artifact@v2
with:
name: android-binaries.zip
name: android-binaries
path: binary/libs/*
- name: Upload binaries package
uses: actions/upload-artifact@v2
with:
name: android-binaries-pack.zip
name: android-binaries-pack
path: contrib/binary_pack/i2pd_*_android_binary.zip

6
app/build.gradle

@ -8,16 +8,16 @@ dependencies { @@ -8,16 +8,16 @@ dependencies {
}
android {
compileSdkVersion 29
compileSdkVersion 32
defaultConfig {
applicationId "org.purplei2p.i2pd"
targetSdkVersion 29
targetSdkVersion 32
minSdkVersion 16
versionCode 2440000
versionName "2.44.0"
archivesBaseName += "-$versionName"
ndkVersion "21.4.7075529"
ndkVersion "23.2.8568313"
ndk {
abiFilters "armeabi-v7a"

2
app/jni/boost

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 0e12fbd30cb70b668a117c0913a303acfdaae04f
Subproject commit 53e6c16ea80c7dcb2683fd548e0c7a09ddffbfc1

6
app/jni/build_boost.sh

@ -2,12 +2,10 @@ @@ -2,12 +2,10 @@
set -e
BOOST_VERSION=1.74.0
BOOST_VERSION=1.78.0
BOOST_LIBS=date_time,filesystem,program_options,system
function build_one {
mkdir out
echo "Configuring and building..."
CXXFLAGS="-std=c++14" \
NCPU=$(nproc) \
@ -70,10 +68,10 @@ function build { @@ -70,10 +68,10 @@ function build {
checkPreRequisites
cd boost
rm -rf out
# disable verbose output
sed -i -e 's/d+2/d+0/' build-android.sh
sed -i -e 's/\"23\.1\"\|\"25\.0\"/\"23\.1\"\|\"23\.2\"\|\"25\.0\"/' build-android.sh
if (( $# == 0 )); then
build all

2
app/jni/build_miniupnpc.sh

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
set -e
CMAKE_VERSION=3.18.1
CMAKE_VERSION=3.22.1
function build_one {
mkdir -p build out/$CPU

2
app/jni/i2pd

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit ba3cee1cf1724a74c6f6d6d60e83d324e5af04cd
Subproject commit c210553a3902ba7155033661f73865c6c37cd569

6
app/src/main/AndroidManifest.xml

@ -38,14 +38,16 @@ @@ -38,14 +38,16 @@
<receiver
android:name=".NetworkStateChangeReceiver"
android:label="NetworkChangeReceiver" >
android:label="NetworkChangeReceiver"
android:exported="true" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<activity
android:name=".I2PDPermsAskerActivity">
android:name=".I2PDPermsAskerActivity"
android:exported="false" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />

Loading…
Cancel
Save