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