Compare commits
2 Commits
android-1.
...
i2p-androi
Author | SHA1 | Date | |
---|---|---|---|
dc96c6251f | |||
c2bced68bb |
@ -7,8 +7,8 @@ repositories {
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
defaultConfig {
|
||||
versionCode 4745267
|
||||
versionName "$I2P_VERSION"
|
||||
versionCode 4745268
|
||||
versionName "$I2P_ANDROID_VERSION"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION as String)
|
||||
|
||||
|
@ -62,7 +62,6 @@ class InitActivities {
|
||||
void initialize() {
|
||||
Util.i("Initializing the I2P resources");
|
||||
|
||||
unzipResourceToDir(R.raw.certificates_zip, "certificates");
|
||||
List<Properties> lProps = Util.getPropertiesFromPreferences(ctx);
|
||||
Properties props = lProps.get(0);
|
||||
|
||||
@ -143,6 +142,7 @@ class InitActivities {
|
||||
File netDBDir = new File(myDir, "netDB");
|
||||
netDBDir.mkdir();
|
||||
//unzipResourceToDir(R.raw.netdb_zip, "netDB");
|
||||
unzipResourceToDir(R.raw.certificates_zip, "certificates");
|
||||
|
||||
// Set up the locations so settings can find them
|
||||
System.setProperty("i2p.dir.base", myDir);
|
||||
@ -227,6 +227,9 @@ class InitActivities {
|
||||
f.mkdir();
|
||||
} else {
|
||||
Util.i("Creating file " + myDir + "/" + folder +"/" + name + " from resource");
|
||||
//create all the leading directories
|
||||
File newFile = new File(myDir+"/"+folder+"/"+name);
|
||||
newFile.getParentFile().mkdirs();
|
||||
byte[] bytes = baos.toByteArray();
|
||||
out = new FileOutputStream(f);
|
||||
out.write(bytes);
|
||||
|
@ -17,4 +17,5 @@ POM_DEVELOPER_EMAIL=hankhill19580@gmail.com
|
||||
ANDROID_BUILD_TARGET_SDK_VERSION=30
|
||||
ANDROID_BUILD_SDK_VERSION=28
|
||||
|
||||
I2P_VERSION=1.8.0-1
|
||||
I2P_VERSION=1.8.0-2
|
||||
I2P_ANDROID_VERSION=1.8.1
|
Reference in New Issue
Block a user