diff --git a/build.gradle b/build.gradle index 8811f3d7..8426ce34 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.jfrog.bintray' apply plugin: 'com.github.dcendents.android-maven' def libName = 'KotlinInside' -def libVersion = '1.2.2' +def libVersion = '1.2.3' def libDesc = 'Unofficial DCInside API written in Kotlin' group = 'be.zvz' @@ -30,10 +30,8 @@ repositories { jcenter() } -ext { - sourceCompatibility = JavaVersion.VERSION_1_7 - targetCompatibility = JavaVersion.VERSION_1_7 -} +sourceCompatibility = JavaVersion.VERSION_1_7 +targetCompatibility = JavaVersion.VERSION_1_7 dependencies { implementation group: 'commons-codec', name: 'commons-codec', version: '1.13' diff --git a/src/main/java/be/zvz/kotlininside/http/HttpRequest.java b/src/main/java/be/zvz/kotlininside/http/HttpRequest.java index 1bea5fef..39e0143e 100644 --- a/src/main/java/be/zvz/kotlininside/http/HttpRequest.java +++ b/src/main/java/be/zvz/kotlininside/http/HttpRequest.java @@ -1421,14 +1421,14 @@ public static void nonProxyHosts(final String... hosts) { private static String setProperty(final String name, final String value) { final PrivilegedAction action; if (value != null) - action = new PrivilegedAction<>() { + action = new PrivilegedAction() { public String run() { return System.setProperty(name, value); } }; else - action = new PrivilegedAction<>() { + action = new PrivilegedAction() { public String run() { return System.clearProperty(name); @@ -3263,4 +3263,4 @@ public HttpRequest followRedirects(final boolean followRedirects) { getConnection().setInstanceFollowRedirects(followRedirects); return this; } -} \ No newline at end of file +} diff --git a/src/main/java/be/zvz/kotlininside/value/ApiUrl.java b/src/main/java/be/zvz/kotlininside/value/ApiUrl.java index f5def04f..5d08931f 100644 --- a/src/main/java/be/zvz/kotlininside/value/ApiUrl.java +++ b/src/main/java/be/zvz/kotlininside/value/ApiUrl.java @@ -9,7 +9,7 @@ public final class ApiUrl { public static final class Article { public static final String LIST = APP_API + "gall_list_new.php"; public static final String READ = APP_API + "gall_view_new.php"; - public static final String WRITE = "http://upload.dcinside.com/_app_write_api.php"; + public static final String WRITE = "https://upload.dcinside.com/_app_write_api.php"; public static final String DELETE = APP_API + "gall_del.php"; public static final String UPVOTE = APP_API + "_recommend_up.php";