Skip to content

Commit

Permalink
Fix PurpleI2P#99. Untested
Browse files Browse the repository at this point in the history
  • Loading branch information
nonlin-lin-chaos-order-etc-etal committed Jan 20, 2025
1 parent 28b2036 commit 5601d86
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This repository contains Android application sources of i2pd

### Install g++, OpenJDK 11+, gradle 5.1+

* <i>Note:</i> openjdk 17 has also been tested okay.

```bash
sudo apt-get install g++ openjdk-11-jdk gradle
```
Expand Down Expand Up @@ -58,7 +60,7 @@ pushd binary/jni
./build.sh -d
popd

gradle clean assembleDebug
./gradlew clean assembleDebug
```

You will find APKs in `app/build/outputs/apk`
Expand Down
16 changes: 9 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ dependencies {
}

android {
lintOptions {
// Not so a good way
disable 'DuplicatePlatformClasses'
}

compileSdkVersion 33
// do not remove, it is deprecated & nevertheless required
compileSdkVersion 35

defaultConfig {
applicationId "org.purplei2p.i2pd"
targetSdkVersion 33
targetSdkVersion 35
// TODO: 24?
minSdkVersion 16
versionCode 2550000
Expand Down Expand Up @@ -89,6 +85,12 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
namespace 'org.purplei2p.i2pd'
lint {
disable 'DuplicatePlatformClasses'
}
buildFeatures {
buildConfig = true
}
}

ext.abiCodes = ['armeabi-v7a': 1, 'x86': 2, 'arm64-v8a': 3, 'x86_64': 4]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
public class I2PDPermsAskerActivity extends Activity {

private static final int PERMISSION_WRITE_EXTERNAL_STORAGE = 0;
private static final int PERMISSION_MANAGE_EXTERNAL_STORAGE = 0;

private Button button_request_write_ext_storage_perms;
private TextView textview_retry;

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.7.0'
}
}

Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m "-XX:MaxMetaspaceSize=1024m"
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=8cc27038d5dbd815759851ba53e70cf62e481b87494cc97cfd97982ada5ba634
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 5601d86

Please sign in to comment.