V1.0.2(4) 接入Fierbase
This commit is contained in:
parent
d75ef07e97
commit
bb7c2982df
@ -5,6 +5,8 @@ plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("kotlin-kapt")
|
||||
id ("com.google.gms.google-services")
|
||||
id ("com.google.firebase.crashlytics")
|
||||
}
|
||||
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
||||
android {
|
||||
@ -15,8 +17,8 @@ android {
|
||||
applicationId = "com.air.airhornprank"
|
||||
minSdk = 23
|
||||
targetSdk = 34
|
||||
versionCode = 3
|
||||
versionName = "1.0.1"
|
||||
versionCode = 4
|
||||
versionName = "1.0.2"
|
||||
setProperty(
|
||||
"archivesBaseName",
|
||||
"airhornprank_v" + versionName + "(${versionCode})_$timestamp"
|
||||
@ -61,6 +63,13 @@ dependencies {
|
||||
implementation("javax.annotation:javax.annotation-api:1.3.2")
|
||||
|
||||
|
||||
implementation(platform("com.google.firebase:firebase-bom:33.5.1"))
|
||||
// When using the BoM, you don't specify versions in Firebase library dependencies
|
||||
// Add the dependency for the Firebase SDK for Google Analytics
|
||||
implementation("com.google.firebase:firebase-analytics")
|
||||
implementation("com.google.firebase:firebase-crashlytics")
|
||||
implementation("com.google.firebase:firebase-config")
|
||||
|
||||
|
||||
//-----------------------------------------------TopOn(Mintegral、Pangle、UnitAds、Digital Turbine(Fyber)、Chartboost&Helium、Ironsource、Liftoff(Vungle)、Inmobi、Start.io、Appnext、Bigo)
|
||||
|
||||
|
||||
29
app/google-services.json
Normal file
29
app/google-services.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "942135093960",
|
||||
"project_id": "air-horn-prank-8eafd",
|
||||
"storage_bucket": "air-horn-prank-8eafd.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:942135093960:android:ffdea18eb15920d45dd3fd",
|
||||
"android_client_info": {
|
||||
"package_name": "com.air.airhornprank"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyDgStf-Xbz7kVNd9u1keDepIFlZs0aYa_4"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
||||
@ -11,9 +11,9 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 3,
|
||||
"versionName": "1.0.1",
|
||||
"outputFile": "airhornprank_v1.0.1(3)_10_28_11_28-release.apk"
|
||||
"versionCode": 4,
|
||||
"versionName": "1.0.2",
|
||||
"outputFile": "airhornprank_v1.0.2(4)_10_28_14_55-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File",
|
||||
@ -22,14 +22,14 @@
|
||||
"minApi": 28,
|
||||
"maxApi": 30,
|
||||
"baselineProfiles": [
|
||||
"baselineProfiles/1/airhornprank_v1.0.1(3)_10_28_11_28-release.dm"
|
||||
"baselineProfiles/1/airhornprank_v1.0.2(4)_10_28_14_55-release.dm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minApi": 31,
|
||||
"maxApi": 2147483647,
|
||||
"baselineProfiles": [
|
||||
"baselineProfiles/0/airhornprank_v1.0.1(3)_10_28_11_28-release.dm"
|
||||
"baselineProfiles/0/airhornprank_v1.0.2(4)_10_28_14_55-release.dm"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@ -11,6 +11,7 @@ import com.air.airhornprank.tool.Mytools;
|
||||
import com.air.airhornprank.topon.AdManager;
|
||||
import com.anythink.core.api.ATSDK;
|
||||
import com.anythink.core.api.NetTrafficeCallback;
|
||||
import com.google.firebase.FirebaseApp;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -42,6 +43,17 @@ public class PrankSkin extends Application {
|
||||
super.onCreate();
|
||||
app = this;
|
||||
|
||||
// // 确保Firebase初始化
|
||||
// FirebaseApp.initializeApp(this);
|
||||
//
|
||||
// // 输出日志以确认Firebase初始化
|
||||
// if (!FirebaseApp.getApps(this).isEmpty()) {
|
||||
// Log.d(TAG, "Firebase 初始化成功");
|
||||
// } else {
|
||||
// Log.e(TAG, "Firebase 初始化失败");
|
||||
// }
|
||||
|
||||
|
||||
initSDk();
|
||||
|
||||
initData();
|
||||
|
||||
@ -36,7 +36,7 @@ public class SettingActivity extends AppCompatActivity {
|
||||
|
||||
private void initEvent() {
|
||||
binding.settingBack.setOnClickListener(v -> finish());
|
||||
binding.versionText.setText("1.0.1");
|
||||
binding.versionText.setText("1.0.2");
|
||||
|
||||
binding.settingPrivacy.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
||||
@ -2,4 +2,6 @@
|
||||
plugins {
|
||||
id("com.android.application") version "8.5.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.0" 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user