Skip to content

Commit

Permalink
fix bug????
Browse files Browse the repository at this point in the history
  • Loading branch information
xj committed Dec 25, 2020
1 parent 9986b7a commit aabedf3
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 156 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ if (file('google-services.json').exists()) {
}

android {
compileSdkVersion 30
compileSdkVersion 28
buildToolsVersion "30.0.2"
ndkVersion '22.0.6917172 rc1'

defaultConfig {
applicationId "com.xjs.ehviewer"
minSdkVersion 23
targetSdkVersion 30
targetSdkVersion 28
versionCode 107
versionName "1.7.7.0"
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -51,8 +53,7 @@ android {
java.srcDirs += 'src/main/java-gen'
}
}
ndkVersion '22.0.6917172 rc1'
buildToolsVersion '30.0.3'

}

task copyNotice(type: Copy) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/hippo/ehviewer/EhDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private static void upgradeDB(SQLiteDatabase db, int oldVersion) {
private static class OldDBHelper extends SQLiteOpenHelper {

private static final String DB_NAME = "data";
private static final int VERSION = 4;
private static final int VERSION = 5;

private static final String TABLE_GALLERY = "gallery";
private static final String TABLE_LOCAL_FAVOURITE = "local_favourite";
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/java/com/hippo/ehviewer/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1186,4 +1186,16 @@ public static boolean getDF() {
public static void putDF(boolean value) {
putBoolean(KEY_DOMAIN_FRONTING, value);
}


private static final String KEY_DOWNLOAD_DELAY = "download_delay";
private static final int DEFAULT_DOWNLOAD_DELAY = 0;

public static int getDownloadDelay() {
return getIntFromStr(KEY_DOWNLOAD_DELAY, DEFAULT_DOWNLOAD_DELAY);
}
public static void putDownloadDelay(int value) {
putIntToStr(KEY_DOWNLOAD_DELAY, value);
}

}
1 change: 1 addition & 0 deletions app/src/main/java/com/hippo/ehviewer/client/EhDns.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class EhDns implements Dns {
put(map, "repo.e-hentai.org", "94.100.28.57");
put(map, "forums.e-hentai.org", "94.100.18.243");
put(map, "ehgt.org", "37.48.89.44+178.162.139.24+178.162.140.212+81.171.10.48");
// put(map, "ehgt.org", "178.162.139.24");
put(map, "ul.ehgt.org", "94.100.24.82+94.100.24.72");
builtInHosts = map;
}
Expand Down
Loading

0 comments on commit aabedf3

Please sign in to comment.