Commit 81a05d9b authored by mengcuiguang2's avatar mengcuiguang2

添加oaid

parent 66a43599
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.shortplay"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 3
versionName "1.0.2"
versionCode 4
versionName "1.0.3"
flavorDimensions "default"
// dex突破65535的限制
......@@ -117,6 +117,7 @@ android {
oppo {}
huawei {}
xiaomi {}
gdt_cz {}
store360 {}
}
......
......@@ -9,6 +9,7 @@ import androidx.multidex.MultiDexApplication;
import com.downloader.PRDownloader;
import com.downloader.PRDownloaderConfig;
import com.duben.oaid.MiitHelper;
import com.duben.shortplay.ad.TTAdManagerHolder;
import com.duben.shortplay.common.Constant;
import com.duben.shortplay.manager.TXCSDKService;
......@@ -167,16 +168,16 @@ public class MintsApplication extends MultiDexApplication {
*/
private void initMiitHelper() {
try {
// MiitHelper miitHelper = new MiitHelper(new MiitHelper.AppIdsUpdater() {
//
// @Override
// public void onIdsValid(String ids) {
// MintsApplication.OAID = ids;
//
// System.out.println("123123123 oaid=" + ids);
// }
// });
// miitHelper.getDeviceIds(MintsApplication.getContext(), true, true, true);
MiitHelper miitHelper = new MiitHelper(new MiitHelper.AppIdsUpdater() {
@Override
public void onIdsValid(String ids) {
MintsApplication.OAID = ids;
System.out.println("123123123 oaid=" + ids);
}
});
miitHelper.getDeviceIds(MintsApplication.getContext(), true, true, true);
} catch (Exception e) {
e.printStackTrace();
}
......
......@@ -542,12 +542,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
when (v.id) {
R.id.iv_dialog_vip_quit -> {
// if (isGuide) {
// readyGoThenKill(MainActivity::class.java)
// } else {
// finish()
// }
payYesDialog!!.dismiss()
if (isGuide) {
readyGoThenKill(MainActivity::class.java)
} else {
finish()
}
// payYesDialog!!.dismiss()
}
R.id.tv_dialog_vip_next -> {
cbVipAgreement.isChecked = true
......
......@@ -22,13 +22,22 @@ import java.lang.reflect.Method;
public class UIUtils {
public static int getScreenWidth(Context context) {
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.widthPixels;
try {
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.widthPixels;
}catch (Exception e){
return 0;
}
}
public static int getScreenHeight(Context context) {
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.heightPixels;
try {
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.heightPixels;
}catch (Exception e){
return 0;
}
}
......
-----BEGIN CERTIFICATE-----
MIIFkzCCA3ugAwIBAgICf6YwDQYJKoZIhvcNAQELBQAwgYAxCzAJBgNVBAYTAkNO
MRAwDgYDVQQIDAdCZWlqaW5nMQwwCgYDVQQKDANNU0ExETAPBgNVBAsMCE9BSURf
U0RLMR4wHAYDVQQDDBVjb20uYnVuLm1paXRtZGlkLnNpZ24xHjAcBgkqhkiG9w0B
CQEWD21zYUBjYWljdC5hYy5jbjAeFw0yMzExMDIxNzM1NDRaFw0yNDExMDIxNzM1
NDRaMIGFMQswCQYDVQQGEwJDTjEQMA4GA1UECAwHQmVpamluZzEQMA4GA1UEBwwH
QmVpamluZzESMBAGA1UECgwJYXBwX2R1YmVuMRwwGgYDVQQDDBNjb20uZHViZW4u
c2hvcnRwbGF5MSAwHgYJKoZIhvcNAQkBFhFhcHBfZHViZW5AMTYzLmNvbTCCAiIw
DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALIYL1PcZbgFKy+dU2pvz4eWeMkB
C9M93sfXebV/3jm5SxRhgxppm4gJiNvip59lTJCDLEFRNh8E5OkTtxx1w2hmAKnT
lFOeDfTO+RzimNrAkiQ14gLY0aU3tGq47gpr/TotK6rk35t8vvwTQzBkCKejFKzB
//I1jlHUsnZvcjsGdbutVJvspsHRDjPkqa4nTiE9WXsG1J19We+dFVMENGb9wyDK
6kSX4IIZbwdR6PM8d0d4dErWvHt+7BAj7mOAyYNhE1dkPgCYnS8KW6tBHlq83bE6
7EHwdu0H6VCK2w2dAK9hjVenizsW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fiRsJaa
unBf5sD9IxbvJcRRB+HRCsySKYEg8z7Xlh90fHimfUgT0Gt44/o+nzPh7Cq9Ay6d
WtMxYFx78Z1epapOJdUNpZWIET8wQHriJmbJ18TlidGRAW85kW2ka2cr4u6Ed68J
Qa+nN+kbS0dDeuvOBGOsiqqCy5aeA0oz88HRWWIga02PLTZbEs4PdYrNzHWCISjn
k34KpwwxYJUn6Zpy1wIDAQABoxAwDjAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEB
CwUAA4ICAQBBlkd8vhOrPPZdn8mfKgrzfIvymycqjWwh6p7R20e88o+y06FaCIjx
nPqlpftmyTQXGUStNplsValNUB6j5TnqqjSvRN9+8/eEwWhc0TpDxBV+2vylABWW
93bYydL45t97+fidTQ7N5qVQ4O839Obd+ojCbGKaZ+gkISdO60ubhp3MfEC1246W
wJCOohQQTvar6h2UwNT7DAMpEUNK+Vkwo9/bP0suwa90rS0fcy+iecRvqdffeSjU
dXDDOd42p9mypnAOVDdLGp6zMbDWsQrCpBvHNgWojK16zJz6LIDDRBJh2yC5odQA
U5Gd0lbizmUjEWZmTqOSrCqtjwbc0KHYg3askTby511Rs+jmfeKt1oDz4Ix0u7aI
M6/XuWgoi3HjBIvPm79aGADkrU7JGuW3+PdySN4X8xvddW0js3Rn07xn6XncpNdt
CgB204uCMnlPuWyqupb+kMPGgeqynPzhKCHhwhgOOBczJzcWXiIh3R+BN3X0p1XT
lzYBibkpDsHxnabslqshfbgeNAkaMOzP3WL1nKQGrl9LAYCusgE8ugt/Pti/pmfE
SqPjykcqcVO8PQW0HFFTbg2Cw/EgbRPJqZ6CWknYQndGuBM1d1g2fjWyus02/hLN
CGVQ4VYjTJnjEYZIj7tJ6LvTF68hdR0jLbBSmgd//eKXgotOkWAWsw==
-----END CERTIFICATE-----
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment