Skip to content

Commit

Permalink
manifest file add configuration android:usesCleartextTraffic="true"
Browse files Browse the repository at this point in the history
  • Loading branch information
xtc committed Sep 8, 2022
1 parent 9474044 commit 493d276
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">
<activity android:name=".AuthActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void initView() {

private void uploadGatewayDetail(DeviceInfo deviceInfo, int gatewayId) {
ApiService apiService = RetrofitAPIManager.provideClientApi();
Call<String> call = apiService.uploadGatewayDetail(ApiService.CLIENT_ID, MyApplication.getmInstance().getAccountInfo().getAccess_token(), gatewayId, deviceInfo.getModelNum(), deviceInfo.hardwareRevision, deviceInfo.getFirmwareRevision(), binding.wifiName.getText().toString(), System.currentTimeMillis());
Call<String> call = apiService.uploadGatewayDetail(ApiService.CLIENT_ID, MyApplication.getmInstance().getAccountInfo().getAccess_token(), gatewayId, deviceInfo.getModelNum(), deviceInfo.hardwareRevision, "1.0.0", binding.wifiName.getText().toString(), System.currentTimeMillis());
LogUtil.d("call server isSuccess api");
call.enqueue(new Callback<String>() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:4.1.2'

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
Expand Down

0 comments on commit 493d276

Please sign in to comment.