接入tradplus
This commit is contained in:
parent
6720c7a136
commit
e56dbdedb4
3
.idea/gradle.xml
generated
3
.idea/gradle.xml
generated
@ -5,7 +5,9 @@
|
|||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
||||||
|
<option name="distributionType" value="LOCAL" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="gradleHome" value="D:\gradle\gradle-8.11.1-bin\gradle-8.11.1" />
|
||||||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
@ -13,7 +15,6 @@
|
|||||||
<option value="$PROJECT_DIR$/app" />
|
<option value="$PROJECT_DIR$/app" />
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveExternalAnnotations" value="false" />
|
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@ -6,6 +6,8 @@ plugins {
|
|||||||
id("org.jetbrains.kotlin.android")
|
id("org.jetbrains.kotlin.android")
|
||||||
id("io.objectbox")
|
id("io.objectbox")
|
||||||
kotlin("kapt")
|
kotlin("kapt")
|
||||||
|
id("com.google.gms.google-services")
|
||||||
|
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 {
|
||||||
@ -16,8 +18,8 @@ android {
|
|||||||
applicationId = "com.proshot.wallpapers.wallpapers"
|
applicationId = "com.proshot.wallpapers.wallpapers"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 1
|
versionCode = 2
|
||||||
versionName = "1.0"
|
versionName = "2.0"
|
||||||
|
|
||||||
project.setProperty("archivesBaseName", "proshotwallpapers" + versionName + "(${versionCode})_$timestamp")
|
project.setProperty("archivesBaseName", "proshotwallpapers" + versionName + "(${versionCode})_$timestamp")
|
||||||
|
|
||||||
@ -58,4 +60,93 @@ dependencies {
|
|||||||
implementation("com.github.bumptech.glide:glide:5.0.5")
|
implementation("com.github.bumptech.glide:glide:5.0.5")
|
||||||
implementation("jp.wasabeef:glide-transformations:4.3.0")
|
implementation("jp.wasabeef:glide-transformations:4.3.0")
|
||||||
implementation("com.squareup.okhttp3:okhttp:5.3.1")
|
implementation("com.squareup.okhttp3:okhttp:5.3.1")
|
||||||
|
|
||||||
|
implementation(files("libs/TradPlusLibrary_11_25_15_02-release.aar"))
|
||||||
|
implementation(files("libs/UpLoadLibrary_12_03_15_13-release.aar"))
|
||||||
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||||||
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
||||||
|
|
||||||
|
implementation ("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||||
|
|
||||||
|
// TradPlus
|
||||||
|
implementation("com.tradplusad:tradplus:14.5.0.1")
|
||||||
|
//noinspection GradleCompatible
|
||||||
|
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
||||||
|
implementation("androidx.appcompat:appcompat:1.3.0-alpha02")
|
||||||
|
// Meta
|
||||||
|
implementation("com.facebook.android:audience-network-sdk:6.20.0")
|
||||||
|
implementation("com.tradplusad:tradplus-facebook:1.14.5.0.1")
|
||||||
|
// Applovin
|
||||||
|
implementation("com.applovin:applovin-sdk:13.3.1")
|
||||||
|
implementation("com.tradplusad:tradplus-applovin:9.14.5.0.1")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:18.2.0")
|
||||||
|
// Ironsource
|
||||||
|
implementation("com.ironsource.sdk:mediationsdk:8.10.0")
|
||||||
|
implementation("com.tradplusad:tradplus-ironsource:10.14.5.0.1")
|
||||||
|
implementation("com.google.android.gms:play-services-appset:16.0.0")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:17.0.0")
|
||||||
|
implementation("com.google.android.gms:play-services-basement:17.5.0")
|
||||||
|
// Adcolony
|
||||||
|
implementation("com.adcolony:sdk:4.8.0")
|
||||||
|
implementation("com.tradplusad:tradplus-adcolony:4.14.5.0.1")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:17.0.0")
|
||||||
|
// Pangle
|
||||||
|
implementation("com.tradplusad:tradplus-pangle:19.14.5.0.1")
|
||||||
|
implementation("com.pangle.global:pag-sdk:7.3.0.3")
|
||||||
|
// UnityAds
|
||||||
|
implementation("com.tradplusad:tradplus-unity:5.14.5.0.1")
|
||||||
|
implementation("com.unity3d.ads:unity-ads:4.15.1")
|
||||||
|
// Chartboost
|
||||||
|
implementation("com.tradplusad:tradplus-chartboostx:15.14.5.0.1")
|
||||||
|
implementation("com.chartboost:chartboost-sdk:9.8.3")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:17.0.0")
|
||||||
|
implementation("com.google.android.gms:play-services-base:17.4.0")
|
||||||
|
// Inmobi
|
||||||
|
implementation("com.tradplusad:tradplus-inmobix:23.14.5.0.1")
|
||||||
|
implementation("com.inmobi.monetization:inmobi-ads-kotlin:10.8.3")
|
||||||
|
implementation("androidx.core:core-ktx:1.5.0")
|
||||||
|
implementation("com.inmobi.omsdk:inmobi-omsdk:1.5.2.0")
|
||||||
|
// Fyber
|
||||||
|
implementation("com.fyber:marketplace-sdk:8.3.7")
|
||||||
|
implementation("com.tradplusad:tradplus-fyber:24.14.5.0.1")
|
||||||
|
implementation("com.google.android.gms:play-services-ads-identifier:17.0.0")
|
||||||
|
implementation("com.google.android.gms:play-services-base:17.4.0")
|
||||||
|
// Start.io
|
||||||
|
implementation("com.startapp:inapp-sdk:5.2.3")
|
||||||
|
implementation("com.tradplusad:tradplus-startapp:28.14.5.0.1")
|
||||||
|
// Mintegral
|
||||||
|
implementation("com.tradplusad:tradplus-mintegralx_overseas:18.14.5.0.1")
|
||||||
|
implementation("androidx.recyclerview:recyclerview:1.1.0")
|
||||||
|
implementation("com.mbridge.msdk.oversea:mbridge_android_sdk:16.9.71")
|
||||||
|
// Liftoff
|
||||||
|
implementation("com.tradplusad:tradplus-vunglex:7.14.5.0.1")
|
||||||
|
implementation("com.vungle:vungle-ads:7.5.0")
|
||||||
|
// Yandex
|
||||||
|
implementation("com.yandex.android:mobileads:7.13.0") {
|
||||||
|
exclude(group = "com.caverock", module = "androidsvg-aar")
|
||||||
|
}
|
||||||
|
implementation("com.tradplusad:tradplus-yandex:50.14.6.10.1")
|
||||||
|
// Bigo
|
||||||
|
implementation("com.bigossp:bigo-ads:5.4.0")
|
||||||
|
implementation("com.tradplusad:tradplus-bigo:57.14.5.0.1")
|
||||||
|
// Cross Promotion
|
||||||
|
implementation("com.tradplusad:tradplus-crosspromotion:27.14.5.0.1")
|
||||||
|
// TP Exchange
|
||||||
|
// 请注意保持与主包版本同步更新
|
||||||
|
implementation("com.google.code.gson:gson:2.8.6")
|
||||||
|
implementation("com.tradplusad:tp_exchange:40.14.5.0.1")
|
||||||
|
|
||||||
|
// Google UMP
|
||||||
|
implementation ("com.google.android.ump:user-messaging-platform:3.2.0")
|
||||||
|
|
||||||
|
// TradPlus Tools
|
||||||
|
// implementation 'com.tradplusad:tradplus-tool:1.1.4'
|
||||||
|
// TradPlus Tools
|
||||||
|
// implementation 'com.tradplusad:tradplus-tool:1.1.4'
|
||||||
|
|
||||||
|
//firebase
|
||||||
|
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")
|
||||||
}
|
}
|
||||||
29
app/google-services.json
Normal file
29
app/google-services.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"project_info": {
|
||||||
|
"project_number": "1015698709622",
|
||||||
|
"project_id": "proshotwallpapers",
|
||||||
|
"storage_bucket": "proshotwallpapers.firebasestorage.app"
|
||||||
|
},
|
||||||
|
"client": [
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:1015698709622:android:e67aec4c0cf6f0791a1357",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.proshot.wallpapers.wallpapers"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyBr2UFVsDhbVlOuU34GELJnWBSU_Yjp850"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configuration_version": "1"
|
||||||
|
}
|
||||||
BIN
app/libs/TradPlusLibrary_11_25_15_02-release.aar
Normal file
BIN
app/libs/TradPlusLibrary_11_25_15_02-release.aar
Normal file
Binary file not shown.
BIN
app/libs/UpLoadLibrary_12_03_15_13-release.aar
Normal file
BIN
app/libs/UpLoadLibrary_12_03_15_13-release.aar
Normal file
Binary file not shown.
@ -11,9 +11,9 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 1,
|
"versionCode": 2,
|
||||||
"versionName": "1.0",
|
"versionName": "2.0",
|
||||||
"outputFile": "proshotwallpapers1.0(1)_12_04_14_03-release.apk"
|
"outputFile": "proshotwallpapers2.0(2)_12_18_18_26-release.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"elementType": "File"
|
"elementType": "File"
|
||||||
|
|||||||
@ -16,6 +16,8 @@
|
|||||||
android:icon="@mipmap/logo7"
|
android:icon="@mipmap/logo7"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:roundIcon="@mipmap/logo7"
|
android:roundIcon="@mipmap/logo7"
|
||||||
|
android:networkSecurityConfig="@xml/net"
|
||||||
|
tools:replace="android:networkSecurityConfig"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.Wallpaper"
|
android:theme="@style/Theme.Wallpaper"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
@ -44,6 +46,9 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name="com.wall.proshot.wallpapers.myacctivity.MySettingActivity"
|
android:name="com.wall.proshot.wallpapers.myacctivity.MySettingActivity"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
|
<meta-data
|
||||||
|
android:name="com.startapp.sdk.MIXED_AUDIENCE"
|
||||||
|
android:value="true"/>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@ -5,6 +5,7 @@ import android.content.Context;
|
|||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.up.uploadlibrary.UpLoadManager;
|
||||||
import com.wall.proshot.wallpapers.bean.Data;
|
import com.wall.proshot.wallpapers.bean.Data;
|
||||||
import com.wall.proshot.wallpapers.mytool.MyComUtils;
|
import com.wall.proshot.wallpapers.mytool.MyComUtils;
|
||||||
import com.wall.proshot.wallpapers.mytool.MyObectBoxManager;
|
import com.wall.proshot.wallpapers.mytool.MyObectBoxManager;
|
||||||
@ -18,6 +19,9 @@ import java.util.List;
|
|||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
|
import kotlin.Unit;
|
||||||
|
import kotlin.jvm.functions.Function2;
|
||||||
|
|
||||||
public class FreeWallPaper extends Application {
|
public class FreeWallPaper extends Application {
|
||||||
public static Context mAppContext;
|
public static Context mAppContext;
|
||||||
|
|
||||||
@ -41,6 +45,13 @@ public class FreeWallPaper extends Application {
|
|||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
mAppContext = this;
|
mAppContext = this;
|
||||||
|
UpLoadManager.INSTANCE.init(this, TAG, new Function2<String, String, Unit>() {
|
||||||
|
@Override
|
||||||
|
public Unit invoke(String s, String s2) {
|
||||||
|
Log.d(TAG, "upload success");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
defaultFont = Typeface.createFromAsset(getAssets(), "custfont.ttf");
|
defaultFont = Typeface.createFromAsset(getAssets(), "custfont.ttf");
|
||||||
|
|
||||||
MyObectBoxManager.init(this);
|
MyObectBoxManager.init(this);
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.ad.tradpluslibrary.TPAdManager;
|
||||||
import com.wall.proshot.wallpapers.R;
|
import com.wall.proshot.wallpapers.R;
|
||||||
import com.wall.proshot.wallpapers.databinding.ActivityMyListBinding;
|
import com.wall.proshot.wallpapers.databinding.ActivityMyListBinding;
|
||||||
import com.wall.proshot.wallpapers.myconnector.OnItemClick;
|
import com.wall.proshot.wallpapers.myconnector.OnItemClick;
|
||||||
@ -38,7 +39,9 @@ public class ListActivity extends AppCompatActivity implements OnItemClick {
|
|||||||
vb.name.setText(categoryName);
|
vb.name.setText(categoryName);
|
||||||
|
|
||||||
vb.imageviewBack.setOnClickListener(v -> finish());
|
vb.imageviewBack.setOnClickListener(v -> finish());
|
||||||
|
TPAdManager.INSTANCE.showTPAD(this,()-> {
|
||||||
|
return null;
|
||||||
|
});
|
||||||
initList();
|
initList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7,15 +7,20 @@ import android.os.CountDownTimer;
|
|||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import com.ad.tradpluslibrary.TPAdManager;
|
||||||
|
import com.wall.proshot.wallpapers.FreeWallPaper;
|
||||||
import com.wall.proshot.wallpapers.mytool.MyComUtils;
|
import com.wall.proshot.wallpapers.mytool.MyComUtils;
|
||||||
import com.wall.proshot.wallpapers.databinding.ActivityMySplashBinding;
|
import com.wall.proshot.wallpapers.databinding.ActivityMySplashBinding;
|
||||||
|
|
||||||
|
import kotlin.Unit;
|
||||||
|
import kotlin.jvm.functions.Function0;
|
||||||
|
|
||||||
public class MySplashActivity extends AppCompatActivity {
|
public class MySplashActivity extends AppCompatActivity {
|
||||||
|
|
||||||
private CountDownTimer countDownTimer;
|
private CountDownTimer countDownTimer;
|
||||||
private ActivityMySplashBinding vb;
|
private ActivityMySplashBinding vb;
|
||||||
|
|
||||||
private long totalTime = 2000;
|
private long totalTime = 13000;
|
||||||
|
|
||||||
@SuppressLint("MissingInflatedId")
|
@SuppressLint("MissingInflatedId")
|
||||||
@Override
|
@Override
|
||||||
@ -24,27 +29,37 @@ public class MySplashActivity extends AppCompatActivity {
|
|||||||
vb = ActivityMySplashBinding.inflate(getLayoutInflater());
|
vb = ActivityMySplashBinding.inflate(getLayoutInflater());
|
||||||
MyComUtils.initFull(this,true);
|
MyComUtils.initFull(this,true);
|
||||||
setContentView(vb.getRoot());
|
setContentView(vb.getRoot());
|
||||||
|
TPAdManager.INSTANCE.init(
|
||||||
|
this,
|
||||||
countDownTimer = new CountDownTimer(totalTime,100) {
|
FreeWallPaper.TAG,
|
||||||
|
"8FF8E22D24BEB0DE224F17294A597911",
|
||||||
|
"924797DD315F746D3F71CE1AC2509E12",
|
||||||
|
"DB3E3DEBB56FC66BAFEE16D1B9DA7812",
|
||||||
|
"9A509CBEE50B1DA147658BBC4B0F8C12",
|
||||||
|
new Function0<Unit>() {
|
||||||
|
@Override
|
||||||
|
public Unit invoke() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
) ;
|
||||||
|
countDownTimer = TPAdManager.INSTANCE.showWelcomeAd(this, totalTime, aLong -> {
|
||||||
|
Long progressPercentage = (100 * aLong) / totalTime;
|
||||||
|
Long percentage = 100 - progressPercentage;
|
||||||
|
vb.progressbar.setProgress(Integer.parseInt(percentage.toString()));
|
||||||
|
return null;
|
||||||
|
}, new Function0<Unit>() {
|
||||||
@Override
|
@Override
|
||||||
public void onTick(long millisUntilFinished) {
|
public Unit invoke() {
|
||||||
int progressPercentage = (int) ((100 * millisUntilFinished) / totalTime);
|
// 倒计时结束,设置进度条为100
|
||||||
|
|
||||||
int countdownPercentage = 100 - progressPercentage;
|
|
||||||
|
|
||||||
vb.progressbar.setProgress(countdownPercentage);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onFinish() {
|
|
||||||
vb.progressbar.setProgress(100);
|
vb.progressbar.setProgress(100);
|
||||||
|
// 跳转到MainActivity2
|
||||||
Intent intent = new Intent(MySplashActivity.this, MyMainActivity.class);
|
Intent intent = new Intent(MySplashActivity.this, MyMainActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
finish();
|
finish(); // 关闭启动页,避免返回键回到此页面
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
};
|
}) ;
|
||||||
|
|
||||||
countDownTimer.start();
|
countDownTimer.start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,10 +9,11 @@ import android.widget.TextView.OnEditorActionListener
|
|||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
|
import com.ad.tradpluslibrary.TPAdManager
|
||||||
import com.wall.proshot.wallpapers.R
|
import com.wall.proshot.wallpapers.R
|
||||||
import com.wall.proshot.wallpapers.bean.Data
|
import com.wall.proshot.wallpapers.bean.Data
|
||||||
import com.wall.proshot.wallpapers.myconnector.OnItemClick
|
|
||||||
import com.wall.proshot.wallpapers.databinding.ActivityMySearchBinding
|
import com.wall.proshot.wallpapers.databinding.ActivityMySearchBinding
|
||||||
|
import com.wall.proshot.wallpapers.myconnector.OnItemClick
|
||||||
import com.wall.proshot.wallpapers.myitem.MyItemList
|
import com.wall.proshot.wallpapers.myitem.MyItemList
|
||||||
import com.wall.proshot.wallpapers.mytool.MyComUtils
|
import com.wall.proshot.wallpapers.mytool.MyComUtils
|
||||||
import com.wall.proshot.wallpapers.mytool.MyItemHelper
|
import com.wall.proshot.wallpapers.mytool.MyItemHelper
|
||||||
@ -27,6 +28,7 @@ class SearchActivity : AppCompatActivity() ,
|
|||||||
binding = ActivityMySearchBinding.inflate(layoutInflater)
|
binding = ActivityMySearchBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
MyComUtils.initFull(this, false)
|
MyComUtils.initFull(this, false)
|
||||||
|
TPAdManager.showTPAD(this) {}
|
||||||
initList()
|
initList()
|
||||||
binding.imageviewBack.setOnClickListener {
|
binding.imageviewBack.setOnClickListener {
|
||||||
finish()
|
finish()
|
||||||
@ -49,12 +51,12 @@ class SearchActivity : AppCompatActivity() ,
|
|||||||
|
|
||||||
binding.et.setOnEditorActionListener(OnEditorActionListener { v, actionId, event ->
|
binding.et.setOnEditorActionListener(OnEditorActionListener { v, actionId, event ->
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
||||||
startSearch()
|
TPAdManager.showTPAD(this) {startSearch()}
|
||||||
return@OnEditorActionListener true
|
return@OnEditorActionListener true
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
})
|
})
|
||||||
binding.btnSearch.setOnClickListener { startSearch() }
|
binding.btnSearch.setOnClickListener { TPAdManager.showTPAD(this) {startSearch() }}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun closeKeyboard() {
|
private fun closeKeyboard() {
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import androidx.annotation.NonNull;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import com.ad.tradpluslibrary.TPAdManager;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.load.DataSource;
|
import com.bumptech.glide.load.DataSource;
|
||||||
import com.bumptech.glide.load.DecodeFormat;
|
import com.bumptech.glide.load.DecodeFormat;
|
||||||
@ -63,6 +64,9 @@ public class WallPaperActivity extends AppCompatActivity implements OnSelectType
|
|||||||
vb = ActivityMyWallapperBinding.inflate(getLayoutInflater());
|
vb = ActivityMyWallapperBinding.inflate(getLayoutInflater());
|
||||||
MyComUtils.initFull(this, true);
|
MyComUtils.initFull(this, true);
|
||||||
setContentView(vb.getRoot());
|
setContentView(vb.getRoot());
|
||||||
|
TPAdManager.INSTANCE.showTPAD(this,()-> {
|
||||||
|
return null;
|
||||||
|
});
|
||||||
weakReference = new WeakReference<>(this);
|
weakReference = new WeakReference<>(this);
|
||||||
data = (Data) getIntent().getSerializableExtra(MyComUtils.key_info);
|
data = (Data) getIntent().getSerializableExtra(MyComUtils.key_info);
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
@ -147,7 +151,10 @@ public class WallPaperActivity extends AppCompatActivity implements OnSelectType
|
|||||||
vb.imageviewBack.setOnClickListener(new View.OnClickListener() {
|
vb.imageviewBack.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
finish();
|
TPAdManager.INSTANCE.showTPAD(WallPaperActivity.this,()-> {
|
||||||
|
finish();
|
||||||
|
return null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -165,12 +172,14 @@ public class WallPaperActivity extends AppCompatActivity implements OnSelectType
|
|||||||
vb.imageFavorite.setOnClickListener(new View.OnClickListener() {
|
vb.imageFavorite.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
boolean selected = vb.imageFavorite.isSelected();
|
TPAdManager.INSTANCE.showTPAD(WallPaperActivity.this,()-> {
|
||||||
vb.imageFavorite.setSelected(!selected);
|
boolean selected = vb.imageFavorite.isSelected();
|
||||||
boolean selectedNew = vb.imageFavorite.isSelected();
|
vb.imageFavorite.setSelected(!selected);
|
||||||
data.setLike(selectedNew);
|
boolean selectedNew = vb.imageFavorite.isSelected();
|
||||||
MyObectBoxManager.updateLike(data);
|
data.setLike(selectedNew);
|
||||||
|
MyObectBoxManager.updateLike(data);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
vb.layoutDownload.setOnClickListener(new View.OnClickListener() {
|
vb.layoutDownload.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|||||||
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,7 +3,8 @@ plugins {
|
|||||||
id("com.android.application") version "8.1.4" apply false
|
id("com.android.application") version "8.1.4" apply false
|
||||||
id("org.jetbrains.kotlin.android") version "2.2.21" apply false
|
id("org.jetbrains.kotlin.android") version "2.2.21" apply false
|
||||||
kotlin("kapt") version "1.9.0"
|
kotlin("kapt") version "1.9.0"
|
||||||
|
id("com.google.gms.google-services") version "4.4.2" apply false
|
||||||
|
id ("com.google.firebase.crashlytics") version "3.0.2" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=U
|
||||||
# When configured, Gradle will run in incubating parallel mode.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
|||||||
@ -10,7 +10,26 @@ dependencyResolutionManagement {
|
|||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
//------------------------- TradPlus
|
||||||
|
// Ironsource
|
||||||
|
maven { url = uri("https://android-sdk.is.com/") }
|
||||||
|
// Pangle
|
||||||
|
maven {
|
||||||
|
url = uri("https://artifact.bytedance.com/repository/pangle")
|
||||||
|
}
|
||||||
|
// Chartboost
|
||||||
|
maven { url = uri("https://cboost.jfrog.io/artifactory/chartboost-ads/") }
|
||||||
|
maven {
|
||||||
|
name = "Chartboost Mediation’s maven repo"
|
||||||
|
url = uri("https://cboost.jfrog.io/artifactory/chartboost-mediation")
|
||||||
|
}
|
||||||
|
// Mintegral
|
||||||
|
//Launch GP market application, Android X Version
|
||||||
|
//If you fail to pull the code using gradle, add the maven warehouse configuration to the project root build.gradle file
|
||||||
|
maven {
|
||||||
|
url =
|
||||||
|
uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user