chore: migrate build and remove legacy SDK dependencies
This commit is contained in:
@@ -9,27 +9,29 @@ import androidx.annotation.Nullable;
|
||||
import com.kyzy.bazi.AppConfig;
|
||||
import com.kyzy.bazi.EventMessage;
|
||||
import com.kyzy.bazi.utils.show.ToastUtil;
|
||||
import com.tencent.mm.opensdk.constants.ConstantsAPI;
|
||||
import com.tencent.mm.opensdk.modelbase.BaseReq;
|
||||
import com.tencent.mm.opensdk.modelbase.BaseResp;
|
||||
import com.tencent.mm.opensdk.openapi.IWXAPI;
|
||||
import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler;
|
||||
import com.tencent.mm.opensdk.openapi.WXAPIFactory;
|
||||
//import com.tencent.mm.opensdk.constants.ConstantsAPI;
|
||||
//import com.tencent.mm.opensdk.modelbase.BaseReq;
|
||||
//import com.tencent.mm.opensdk.modelbase.BaseResp;
|
||||
//import com.tencent.mm.opensdk.openapi.IWXAPI;
|
||||
//import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler;
|
||||
//import com.tencent.mm.opensdk.openapi.WXAPIFactory;
|
||||
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler {
|
||||
public class WXPayEntryActivity extends Activity {
|
||||
|
||||
private IWXAPI api;
|
||||
// private IWXAPI api;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
//注册API 没有这个不会执行onResp
|
||||
api = WXAPIFactory.createWXAPI(this, AppConfig.WX_APPID);
|
||||
api.handleIntent(getIntent(), this);
|
||||
// 微信 SDK 依赖已移除
|
||||
// api = WXAPIFactory.createWXAPI(this, AppConfig.WX_APPID);
|
||||
// api.handleIntent(getIntent(), this);
|
||||
finish();
|
||||
}
|
||||
|
||||
/* 微信 SDK 依赖已移除
|
||||
@Override
|
||||
public void onReq(BaseReq baseReq) {
|
||||
if(baseReq != null){
|
||||
@@ -56,11 +58,12 @@ public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
setIntent(intent);
|
||||
api.handleIntent(intent, this);
|
||||
// api.handleIntent(intent, this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user