V1.2(3)
This commit is contained in:
parent
313a005e38
commit
2b11f67a87
@ -4,8 +4,8 @@ plugins {
|
|||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("org.jetbrains.kotlin.android")
|
id("org.jetbrains.kotlin.android")
|
||||||
id("io.objectbox")
|
id("io.objectbox")
|
||||||
// id("com.google.gms.google-services")
|
id("com.google.gms.google-services")
|
||||||
// id("com.google.firebase.crashlytics")
|
id("com.google.firebase.crashlytics")
|
||||||
}
|
}
|
||||||
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
||||||
android {
|
android {
|
||||||
@ -17,8 +17,8 @@ android {
|
|||||||
applicationId = "com.video.livewallpapers"
|
applicationId = "com.video.livewallpapers"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = 2
|
versionCode = 3
|
||||||
versionName = "1.1"
|
versionName = "1.2"
|
||||||
setProperty(
|
setProperty(
|
||||||
"archivesBaseName",
|
"archivesBaseName",
|
||||||
"Live Wallpapers_V" + versionName + "(${versionCode})_$timestamp"
|
"Live Wallpapers_V" + versionName + "(${versionCode})_$timestamp"
|
||||||
@ -75,5 +75,90 @@ dependencies {
|
|||||||
implementation ("androidx.media3:media3-ui:1.4.1")
|
implementation ("androidx.media3:media3-ui:1.4.1")
|
||||||
implementation ("androidx.media3:media3-exoplayer-dash:1.4.1")
|
implementation ("androidx.media3:media3-exoplayer-dash:1.4.1")
|
||||||
|
|
||||||
|
implementation(platform("com.google.firebase:firebase-bom:33.7.0"))
|
||||||
|
implementation("com.google.firebase:firebase-crashlytics")
|
||||||
|
implementation("com.google.firebase:firebase-analytics")
|
||||||
|
implementation("com.google.firebase:firebase-config")
|
||||||
|
|
||||||
|
implementation(files("libs/TopOnLibrary_06_27_16_00-release.aar"))
|
||||||
|
implementation(files("libs/UpLoadLibrary_07_03_11_54-release.aar"))
|
||||||
|
|
||||||
|
//-----------------------------------------------TopOn(Mintegral、Pangle、UnitAds、Digital Turbine(Fyber)、Chartboost&Helium、Ironsource、Liftoff(Vungle)、Inmobi、Start.io、Bigo)
|
||||||
|
//TU (Necessary)
|
||||||
|
implementation("com.thinkup.sdk:core-tpn:6.4.90")
|
||||||
|
implementation("com.thinkup.sdk:nativead-tpn:6.4.90")
|
||||||
|
implementation("com.thinkup.sdk:banner-tpn:6.4.90")
|
||||||
|
implementation("com.thinkup.sdk:interstitial-tpn:6.4.90")
|
||||||
|
implementation("com.thinkup.sdk:rewardedvideo-tpn:6.4.90")
|
||||||
|
implementation("com.thinkup.sdk:splash-tpn:6.4.90")
|
||||||
|
|
||||||
|
//Androidx (Necessary)
|
||||||
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||||
|
implementation("androidx.browser:browser:1.4.0")
|
||||||
|
|
||||||
|
//StartApp
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-startapp:6.4.90")
|
||||||
|
implementation("com.startapp:inapp-sdk:5.0.2")
|
||||||
|
|
||||||
|
//Vungle
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-vungle:6.4.90")
|
||||||
|
implementation("com.vungle:vungle-ads:7.5.0")
|
||||||
|
implementation("com.google.android.gms:play-services-basement:18.1.0")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||||
|
|
||||||
|
//UnityAds
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-unityads:6.4.90")
|
||||||
|
implementation("com.unity3d.ads:unity-ads:4.14.0")
|
||||||
|
|
||||||
|
//Ironsource
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-ironsource:6.4.90")
|
||||||
|
implementation("com.ironsource.sdk:mediationsdk:8.7.0")
|
||||||
|
implementation("com.google.android.gms:play-services-appset:16.0.2")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||||
|
implementation("com.google.android.gms:play-services-basement:18.1.0")
|
||||||
|
|
||||||
|
//Bigo
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-bigo:6.4.90")
|
||||||
|
implementation("com.bigossp:bigo-ads:5.3.0")
|
||||||
|
|
||||||
|
//Pangle
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-pangle:6.4.90.1")
|
||||||
|
implementation("com.pangle.global:pag-sdk:7.2.0.6")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:18.2.0")
|
||||||
|
|
||||||
|
//Inmobi
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-inmobi:6.4.90")
|
||||||
|
implementation("com.inmobi.monetization:inmobi-ads-kotlin:10.8.2")
|
||||||
|
|
||||||
|
//Mintegral
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-mintegral:6.4.90")
|
||||||
|
implementation("com.mbridge.msdk.oversea:mbridge_android_sdk:16.9.71")
|
||||||
|
implementation("androidx.recyclerview:recyclerview:1.1.0")
|
||||||
|
|
||||||
|
//Chartboost
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-chartboost:6.4.90")
|
||||||
|
implementation("com.chartboost:chartboost-sdk:9.8.3")
|
||||||
|
implementation("com.chartboost:chartboost-mediation-sdk:4.9.2")
|
||||||
|
implementation("com.chartboost:chartboost-mediation-adapter-chartboost:4.9.8.1.0")
|
||||||
|
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
|
||||||
|
implementation("com.squareup.okhttp3:logging-interceptor:4.10.0")
|
||||||
|
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
||||||
|
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
|
||||||
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
||||||
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
|
||||||
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
||||||
|
|
||||||
|
//Fyber
|
||||||
|
implementation("com.thinkup.sdk:adapter-tpn-fyber:6.4.90")
|
||||||
|
implementation("com.fyber:marketplace-sdk:8.3.7")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||||
|
|
||||||
|
//Tramini
|
||||||
|
implementation("com.thinkup.sdk:tramini-plugin-tpn:6.4.90")
|
||||||
|
|
||||||
|
// Debugger UI Tools
|
||||||
|
implementation("com.anythink.sdk:debugger-ui:1.1.0")
|
||||||
|
|
||||||
|
//----------------------------------------------TopOn
|
||||||
|
|
||||||
}
|
}
|
||||||
48
app/google-services.json
Normal file
48
app/google-services.json
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"project_info": {
|
||||||
|
"project_number": "901433983115",
|
||||||
|
"project_id": "keyboard-journey-98af6",
|
||||||
|
"storage_bucket": "keyboard-journey-98af6.firebasestorage.app"
|
||||||
|
},
|
||||||
|
"client": [
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:901433983115:android:7ce2fd0c5bbba8cb0f148e",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.key.board.journey.inputmethod"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyBqsuaO9ii0vg1g4qah9n8QUt4uI67PE8E"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:901433983115:android:39725ea56475b5ee0f148e",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.video.livewallpapers"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyBqsuaO9ii0vg1g4qah9n8QUt4uI67PE8E"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configuration_version": "1"
|
||||||
|
}
|
||||||
BIN
app/libs/TopOnLibrary_06_27_16_00-release.aar
Normal file
BIN
app/libs/TopOnLibrary_06_27_16_00-release.aar
Normal file
Binary file not shown.
BIN
app/libs/UpLoadLibrary_07_03_11_54-release.aar
Normal file
BIN
app/libs/UpLoadLibrary_07_03_11_54-release.aar
Normal file
Binary file not shown.
@ -17,6 +17,7 @@
|
|||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:roundIcon="@mipmap/logo"
|
android:roundIcon="@mipmap/logo"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
|
android:networkSecurityConfig="@xml/net"
|
||||||
android:theme="@style/Theme.MyLiveWallpaper"
|
android:theme="@style/Theme.MyLiveWallpaper"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
<activity
|
<activity
|
||||||
|
|||||||
@ -3,12 +3,14 @@ package com.hd.live.wall.wallpapers;
|
|||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
|
|
||||||
|
import com.ad.toponlibrary.AdManager;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
import com.hd.live.wall.wallpapers.dbData.WallData;
|
import com.hd.live.wall.wallpapers.dbData.WallData;
|
||||||
import com.hd.live.wall.wallpapers.utils.helper;
|
import com.hd.live.wall.wallpapers.utils.helper;
|
||||||
import com.hd.live.wall.wallpapers.utils.dbManager;
|
import com.hd.live.wall.wallpapers.utils.dbManager;
|
||||||
import com.hd.live.wall.wallpapers.utils.Store;
|
import com.hd.live.wall.wallpapers.utils.Store;
|
||||||
|
import com.up.uploadlibrary.UpLoadManager;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@ -35,7 +37,13 @@ public class LiveApp extends Application {
|
|||||||
super.onCreate();
|
super.onCreate();
|
||||||
mApplication = this;
|
mApplication = this;
|
||||||
defaultFont = Typeface.createFromAsset(getAssets(), "font.ttf");
|
defaultFont = Typeface.createFromAsset(getAssets(), "font.ttf");
|
||||||
// initSDk();
|
AdManager.INSTANCE.init(TAG,this,"h689af270407f0","a4346235307c4088aa524b4de82d6d5d9",
|
||||||
|
"9788519403e27aa6420a9b9ad49bc0fc76166bea",
|
||||||
|
"n689af2ae7b6d2",
|
||||||
|
"n689af2ae2ee3b",
|
||||||
|
"n689af2ade4f28",false);
|
||||||
|
|
||||||
|
UpLoadManager.INSTANCE.init(this,TAG);
|
||||||
dbManager.init(this);
|
dbManager.init(this);
|
||||||
String dbinit = Store.INSTANCE.getDbinit();
|
String dbinit = Store.INSTANCE.getDbinit();
|
||||||
if(dbinit.equals("0")){
|
if(dbinit.equals("0")){
|
||||||
@ -80,28 +88,5 @@ public class LiveApp extends Application {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void initSDk(){
|
|
||||||
// String APPId ="h6776591bc967e";
|
|
||||||
//
|
|
||||||
// String AppKey ="a359707dba4dcae7ac8bc66d0d163295c";
|
|
||||||
// String debugKey = "d2f08ee302fdd0741819983376817c0bf71bfe67";
|
|
||||||
// ATSDK.checkIsEuTraffic(this, new NetTrafficeCallback() {
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public void onResultCallback(boolean isEU) {
|
|
||||||
// if (isEU && ATSDK.getGDPRDataLevel(App.this) == ATSDK.UNKNOWN) {
|
|
||||||
// ATSDK.showGdprAuth(App.this);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public void onErrorCallback(String errorMsg) {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// ATSDK.init( this, APPId, AppKey);
|
|
||||||
//// ATDebuggerUITest.showDebuggerUI(this,debugKey);
|
|
||||||
// AdManager.loadAllAd();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,8 @@ package com.hd.live.wall.wallpapers.act
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.ad.toponlibrary.AdManager
|
||||||
|
|
||||||
import com.hd.live.wall.wallpapers.adapter.AdaLike
|
import com.hd.live.wall.wallpapers.adapter.AdaLike
|
||||||
import com.hd.live.wall.wallpapers.base.BasisActivity
|
import com.hd.live.wall.wallpapers.base.BasisActivity
|
||||||
import com.hd.live.wall.wallpapers.databinding.ActivityCollectionBinding
|
import com.hd.live.wall.wallpapers.databinding.ActivityCollectionBinding
|
||||||
@ -19,18 +21,23 @@ class ActivityCollection : BasisActivity<ActivityCollectionBinding>() {
|
|||||||
override fun onClick(v: View?) {
|
override fun onClick(v: View?) {
|
||||||
|
|
||||||
v?.let {
|
v?.let {
|
||||||
if(v == vb.ivBack){
|
if (v == vb.ivBack) {
|
||||||
finish()
|
|
||||||
|
AdManager.showTopOn(this@ActivityCollection) {
|
||||||
|
finish()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getViewBinding(): ActivityCollectionBinding = ActivityCollectionBinding.inflate(layoutInflater)
|
override fun getViewBinding(): ActivityCollectionBinding =
|
||||||
|
ActivityCollectionBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
override fun onCreateInit() {
|
override fun onCreateInit() {
|
||||||
|
AdManager.loadAllAd()
|
||||||
val adaLike = AdaLike(this)
|
val adaLike = AdaLike(this)
|
||||||
vb.recycler.run {
|
vb.recycler.run {
|
||||||
adapter = adaLike
|
adapter = adaLike
|
||||||
@ -52,7 +59,8 @@ class ActivityCollection : BasisActivity<ActivityCollectionBinding>() {
|
|||||||
|
|
||||||
|
|
||||||
vmCollction = getActivityScopeViewModel<VmCollction>(
|
vmCollction = getActivityScopeViewModel<VmCollction>(
|
||||||
VmCollction::class.java)
|
VmCollction::class.java
|
||||||
|
)
|
||||||
|
|
||||||
vmCollction!!.likeLiveData.observe(
|
vmCollction!!.likeLiveData.observe(
|
||||||
this@ActivityCollection
|
this@ActivityCollection
|
||||||
@ -68,6 +76,8 @@ class ActivityCollection : BasisActivity<ActivityCollectionBinding>() {
|
|||||||
vmCollction!!.update(data)
|
vmCollction!!.update(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AdManager.showTopOn(this) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onInitClick() {
|
override fun onInitClick() {
|
||||||
|
|||||||
@ -17,6 +17,8 @@ import androidx.media3.datasource.DefaultDataSourceFactory;
|
|||||||
import androidx.media3.exoplayer.ExoPlayer;
|
import androidx.media3.exoplayer.ExoPlayer;
|
||||||
import androidx.media3.exoplayer.source.ProgressiveMediaSource;
|
import androidx.media3.exoplayer.source.ProgressiveMediaSource;
|
||||||
|
|
||||||
|
import com.ad.toponlibrary.AdManager;
|
||||||
|
import com.ad.toponlibrary.onActionListener;
|
||||||
import com.hd.live.wall.wallpapers.R;
|
import com.hd.live.wall.wallpapers.R;
|
||||||
import com.hd.live.wall.wallpapers.base.BasisActivity;
|
import com.hd.live.wall.wallpapers.base.BasisActivity;
|
||||||
import com.hd.live.wall.wallpapers.databinding.ActivitySetWallpapersBinding;
|
import com.hd.live.wall.wallpapers.databinding.ActivitySetWallpapersBinding;
|
||||||
@ -61,10 +63,11 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
public static String KEY_thumb = "thumb";
|
public static String KEY_thumb = "thumb";
|
||||||
|
|
||||||
// private boolean loadingui = false;
|
// private boolean loadingui = false;
|
||||||
private AtomicBoolean loadingui ;
|
private AtomicBoolean loadingui;
|
||||||
|
|
||||||
private Disposable disposable;
|
private Disposable disposable;
|
||||||
private String netFail, fileFail;
|
private String netFail, fileFail;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ActivitySetWallpapersBinding getViewBinding() {
|
protected ActivitySetWallpapersBinding getViewBinding() {
|
||||||
return ActivitySetWallpapersBinding.inflate(getLayoutInflater());
|
return ActivitySetWallpapersBinding.inflate(getLayoutInflater());
|
||||||
@ -85,7 +88,8 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
initExoPlay();
|
initExoPlay();
|
||||||
initFavorite();
|
initFavorite();
|
||||||
fileFail = getString(R.string.loading_fail);
|
fileFail = getString(R.string.loading_fail);
|
||||||
netFail = getString(R.string.check_connection);
|
netFail = getString(R.string.check_connection);
|
||||||
|
AdManager.loadAllAd();
|
||||||
if (mFile.exists()) {
|
if (mFile.exists()) {
|
||||||
helper.logMsg("------checkPlay-");
|
helper.logMsg("------checkPlay-");
|
||||||
checkPlay();
|
checkPlay();
|
||||||
@ -94,14 +98,19 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
loadingui = new AtomicBoolean(false);
|
loadingui = new AtomicBoolean(false);
|
||||||
requestVideo();
|
requestVideo();
|
||||||
|
|
||||||
|
AdManager.showTopOn(this, new onActionListener() {
|
||||||
|
@Override
|
||||||
|
public void onAction() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void requestVideo() {
|
private void requestVideo() {
|
||||||
|
|
||||||
if (wallpaperType == 2) {
|
if (wallpaperType == 2) {
|
||||||
//shift
|
//shift
|
||||||
disposable = DataRequest.getInstance().getShiftMp4(id, image, filePath,this, new ListenerResult() {
|
disposable = DataRequest.getInstance().getShiftMp4(id, image, filePath, this, new ListenerResult() {
|
||||||
@Override
|
@Override
|
||||||
public void onVideoResult(boolean success, String path) {
|
public void onVideoResult(boolean success, String path) {
|
||||||
helper.logMsg("-------------success =" + success + "--path=" + path);
|
helper.logMsg("-------------success =" + success + "--path=" + path);
|
||||||
@ -120,7 +129,7 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
disposable = DataRequest.getInstance().getMp4(id, image, filePath,this, new ListenerResult() {
|
disposable = DataRequest.getInstance().getMp4(id, image, filePath, this, new ListenerResult() {
|
||||||
@Override
|
@Override
|
||||||
public void onVideoResult(boolean success, String path) {
|
public void onVideoResult(boolean success, String path) {
|
||||||
helper.logMsg("-------------success =" + success + "--path=" + path);
|
helper.logMsg("-------------success =" + success + "--path=" + path);
|
||||||
@ -225,7 +234,13 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
dbManager.deleteLike(id);
|
dbManager.deleteLike(id);
|
||||||
}
|
}
|
||||||
} else if (v.equals(vb.layoutSet)) {
|
} else if (v.equals(vb.layoutSet)) {
|
||||||
setLiveWallpaper();
|
AdManager.showTopOn(ActivitySetWallpaper.this, new onActionListener() {
|
||||||
|
@Override
|
||||||
|
public void onAction() {
|
||||||
|
setLiveWallpaper();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
} else if (v.equals(vb.layoutBack)) {
|
} else if (v.equals(vb.layoutBack)) {
|
||||||
finish();
|
finish();
|
||||||
} else if (v.equals(vb.tvRetry)) {
|
} else if (v.equals(vb.tvRetry)) {
|
||||||
@ -328,10 +343,10 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if(vb.horizontalLayout.getVisibility() != View.VISIBLE){
|
if (vb.horizontalLayout.getVisibility() != View.VISIBLE) {
|
||||||
showLoading(true, true);
|
showLoading(true, true);
|
||||||
helper.logMsg("------------showLoading------11-----");
|
helper.logMsg("------------showLoading------11-----");
|
||||||
}else {
|
} else {
|
||||||
helper.logMsg("------------showLoading------22-----");
|
helper.logMsg("------------showLoading------22-----");
|
||||||
}
|
}
|
||||||
vb.horizontalProgress.setProgress(progress);
|
vb.horizontalProgress.setProgress(progress);
|
||||||
@ -345,7 +360,5 @@ public class ActivitySetWallpaper extends BasisActivity<ActivitySetWallpapersBin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4,12 +4,17 @@ import android.content.Intent;
|
|||||||
import android.os.CountDownTimer;
|
import android.os.CountDownTimer;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
import com.ad.toponlibrary.AdManager;
|
||||||
import com.hd.live.wall.wallpapers.base.BasisActivity;
|
import com.hd.live.wall.wallpapers.base.BasisActivity;
|
||||||
import com.hd.live.wall.wallpapers.databinding.ActivityWelBinding;
|
import com.hd.live.wall.wallpapers.databinding.ActivityWelBinding;
|
||||||
|
|
||||||
|
import kotlin.Unit;
|
||||||
|
import kotlin.jvm.functions.Function0;
|
||||||
|
import kotlin.jvm.functions.Function1;
|
||||||
|
|
||||||
public class ActivityWel extends BasisActivity<ActivityWelBinding> {
|
public class ActivityWel extends BasisActivity<ActivityWelBinding> {
|
||||||
|
|
||||||
private static final long SPLASH_TIME_OUT = 2000L;
|
private static final long SPLASH_TIME_OUT = 12000L;
|
||||||
private CountDownTimer countDownTimer;
|
private CountDownTimer countDownTimer;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -19,22 +24,25 @@ public class ActivityWel extends BasisActivity<ActivityWelBinding> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreateInit() {
|
protected void onCreateInit() {
|
||||||
countDownTimer = new CountDownTimer(SPLASH_TIME_OUT,100) {
|
|
||||||
|
countDownTimer = AdManager.showWelcomeAd(this, SPLASH_TIME_OUT, new Function1<Long, Unit>() {
|
||||||
@Override
|
@Override
|
||||||
public void onTick(long millisUntilFinished) {
|
public Unit invoke(Long aLong) {
|
||||||
float v = 100 - (float) millisUntilFinished / SPLASH_TIME_OUT * 100;
|
float v = 100 - (float) aLong / SPLASH_TIME_OUT * 100;
|
||||||
int v1 = (int) v;
|
int v1 = (int) v;
|
||||||
vb.progressBar.setProgress(v1);
|
vb.progressBar.setProgress(v1);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
}, new Function0<Unit>() {
|
||||||
@Override
|
@Override
|
||||||
public void onFinish() {
|
public Unit invoke() {
|
||||||
vb.progressBar.setProgress(100);
|
vb.progressBar.setProgress(100);
|
||||||
Intent intent = new Intent(ActivityWel.this, ActivityMain.class);
|
Intent intent = new Intent(ActivityWel.this, ActivityMain.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
finish();
|
finish();
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
countDownTimer.start();
|
countDownTimer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
6
app/src/main/res/xml/net.xml
Normal file
6
app/src/main/res/xml/net.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
<domain tools:ignore="NetworkSecurityConfig">mobile-server.lux-ad.com</domain>
|
||||||
|
</domain-config>
|
||||||
|
</network-security-config>
|
||||||
@ -3,8 +3,8 @@ plugins {
|
|||||||
id("com.android.application") version "8.6.0" apply false
|
id("com.android.application") version "8.6.0" apply false
|
||||||
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
|
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
|
||||||
|
|
||||||
// id("com.google.gms.google-services") version "4.4.2" apply false
|
id("com.google.gms.google-services") version "4.4.2" apply false
|
||||||
// id ("com.google.firebase.crashlytics") version "3.0.2" apply false
|
id ("com.google.firebase.crashlytics") version "3.0.2" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
|
|||||||
@ -11,7 +11,24 @@ dependencyResolutionManagement {
|
|||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
|
//TU(Core)
|
||||||
|
maven ( "https://jfrog.anythinktech.com/artifactory/overseas_sdk")
|
||||||
|
|
||||||
|
//Ironsource
|
||||||
|
maven ( "https://android-sdk.is.com/")
|
||||||
|
|
||||||
|
//Pangle
|
||||||
|
maven ("https://artifact.bytedance.com/repository/pangle")
|
||||||
|
|
||||||
|
//Mintegral
|
||||||
|
maven ("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea")
|
||||||
|
|
||||||
|
//Chartboost
|
||||||
|
maven ( "https://cboost.jfrog.io/artifactory/chartboost-ads")
|
||||||
|
maven ("https://cboost.jfrog.io/artifactory/chartboost-mediation")
|
||||||
|
|
||||||
|
//TopOn集成测试工具
|
||||||
|
maven ( "https://jfrog.anythinktech.com/artifactory/debugger")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user