fixed wrong post URL
This commit is contained in:
@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion '28.0.3'
|
||||
defaultConfig {
|
||||
applicationId "net.irext.ircontrol"
|
||||
minSdkVersion 19
|
||||
@@ -27,6 +26,7 @@ android {
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
namespace 'net.irext.ircontrol'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="net.irext.ircontrol">
|
||||
>
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
@@ -15,6 +15,7 @@
|
||||
android:icon="@mipmap/ir_logo"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:theme="@android:style/Theme.Holo.Light.DarkActionBar">
|
||||
|
||||
<activity
|
||||
|
||||
@@ -23,7 +23,7 @@ public class IRApplication extends com.activeandroid.app.Application {
|
||||
|
||||
private static final String TAG = IRApplication.class.getSimpleName();
|
||||
|
||||
private static final String ADDRESS = "https://irext.net";
|
||||
private static final String ADDRESS = "https://srv.irext.net";
|
||||
private static final String APP_NAME = "/irext-server";
|
||||
|
||||
public WebAPIs mWeAPIs = WebAPIs.getInstance(ADDRESS, APP_NAME);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">irext-debug.oss-cn-hangzhou.aliyuncs.com</domain>
|
||||
</domain-config>
|
||||
</network-security-config>
|
||||
@@ -6,7 +6,7 @@ buildscript {
|
||||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||
classpath 'com.android.tools.build:gradle:7.4.2'
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
|
||||
@@ -6,8 +6,6 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
@@ -15,6 +13,7 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
namespace 'net.irext.sdk'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
package="net.irext.sdk">
|
||||
>
|
||||
|
||||
<application android:allowBackup="true" android:label="@string/app_name"
|
||||
android:supportsRtl="true">
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#Wed Nov 18 18:37:19 CST 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -3,22 +3,20 @@ apply plugin: 'com.android.library'
|
||||
android {
|
||||
signingConfigs {
|
||||
}
|
||||
compileSdkVersion 28
|
||||
compileSdkVersion 33
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "0.1.2"
|
||||
targetSdkVersion 33
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
versionNameSuffix '0.1.2'
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
namespace 'net.irext.webapi'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
package="net.irext.webapi">
|
||||
>
|
||||
|
||||
<application android:allowBackup="true" android:supportsRtl="true">
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class WebAPIs {
|
||||
|
||||
private static WebAPIs mInstance = null;
|
||||
|
||||
private static final String DEFAULT_ADDRESS = "http://irext.net";
|
||||
private static final String DEFAULT_ADDRESS = "http://srv.irext.net";
|
||||
private static final String DEFAULT_APP = "/irext-server";
|
||||
private static String URL_PREFIX = DEFAULT_ADDRESS + DEFAULT_APP;
|
||||
|
||||
@@ -93,6 +93,7 @@ public class WebAPIs {
|
||||
= MediaType.parse("application/json; charset=utf-8");
|
||||
|
||||
RequestBody body = RequestBody.create(JSON, json);
|
||||
Log.d(TAG, "post URL = " + url);
|
||||
Request request = new Request.Builder()
|
||||
.url(url)
|
||||
.post(body)
|
||||
|
||||
Reference in New Issue
Block a user