version:1.3.4
fix:修复闪退 update:优化联系人添加
This commit is contained in:
@@ -37,6 +37,7 @@ import com.xxpatx.os.bean.RegionInfo;
|
||||
import com.xxpatx.os.bean.ServeBean;
|
||||
import com.xxpatx.os.bean.SnInfo;
|
||||
import com.xxpatx.os.bean.SystemSettings;
|
||||
import com.xxpatx.os.bean.TestAppInfo;
|
||||
import com.xxpatx.os.bean.UserAvatarInfo;
|
||||
import com.xxpatx.os.bean.UserId;
|
||||
import com.xxpatx.os.bean.WxpayBean;
|
||||
@@ -65,6 +66,7 @@ import com.xxpatx.os.network.api.uiui.RegionListApi;
|
||||
import com.xxpatx.os.network.api.uiui.RegionListCall;
|
||||
import com.xxpatx.os.network.api.uiui.ServeApi;
|
||||
import com.xxpatx.os.network.api.uiui.SnIsActivationApi;
|
||||
import com.xxpatx.os.network.api.uiui.TestAppApi;
|
||||
import com.xxpatx.os.network.api.uiui.UpdateAppIconApi;
|
||||
import com.xxpatx.os.network.api.uiui.UserInfoControl;
|
||||
import com.xxpatx.os.network.api.uiui.alarmclock.AlarmClockAddApi;
|
||||
@@ -600,6 +602,13 @@ public class NetInterfaceManager {
|
||||
.observeOn(AndroidSchedulers.mainThread());
|
||||
}
|
||||
|
||||
public Observable<BaseResponse<TestAppInfo>> getTestAppObservable() {
|
||||
return mRetrofit.create(TestAppApi.class)
|
||||
.getTestApp(Utils.getSerial(), BuildConfig.platform, BuildConfig.APPLICATION_ID)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread());
|
||||
}
|
||||
|
||||
public RegionListApi getRegionListApi() {
|
||||
return mRetrofit.create(RegionListApi.class);
|
||||
}
|
||||
@@ -1466,4 +1475,34 @@ public class NetInterfaceManager {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void getTestApp() {
|
||||
getTestAppObservable().subscribe(getTestAppObserver());
|
||||
}
|
||||
|
||||
public Observer<BaseResponse<TestAppInfo>> getTestAppObserver() {
|
||||
return new Observer<BaseResponse<TestAppInfo>>() {
|
||||
@Override
|
||||
public void onSubscribe(@NonNull Disposable d) {
|
||||
Log.e("getTestAppObserver", "onSubscribe: ");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull BaseResponse<TestAppInfo> testAppInfoBaseResponse) {
|
||||
Log.e("getTestAppObserver", "onNext: " + testAppInfoBaseResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(@NonNull Throwable e) {
|
||||
Log.e("getTestAppObserver", "onError: " + e.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
Log.e("getTestAppObserver", "onComplete: ");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@ public class UrlAddress {
|
||||
public static final String FAMILY_ADDRESS = "sn/family-address";
|
||||
/*根据包名获取更新*/
|
||||
public final static String GET_NEWESTAPPUPDATE = "app/newestAppUpdate";
|
||||
/*获取灰度测试应用*/
|
||||
public static final String GET_TEST_APP = "app/test-app";
|
||||
|
||||
/*获取抢购列表*/
|
||||
public static final String GET_GOODS_LIST = "getGoodsList";
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.xxpatx.os.network.api.uiui;
|
||||
|
||||
import com.xxpatx.os.bean.BaseResponse;
|
||||
import com.xxpatx.os.bean.TestAppInfo;
|
||||
import com.xxpatx.os.network.UrlAddress;
|
||||
|
||||
import io.reactivex.rxjava3.core.Observable;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface TestAppApi {
|
||||
@GET(UrlAddress.GET_TEST_APP)
|
||||
Observable<BaseResponse<TestAppInfo>> getTestApp(
|
||||
@Query("sn") String sn,
|
||||
@Query("model_name") String model_name,
|
||||
@Query("app_package") String app_package
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user