V1.0.4(13) 接入Firebase

This commit is contained in:
lihongwei 2024-10-18 18:07:25 +08:00
parent 13c464b854
commit e4864a6adc
7 changed files with 57 additions and 5 deletions

View File

@ -8,6 +8,9 @@ daaea35726ab7cd457ab61d4538fb822
1be9e72506f3307ce6a9e78d26d65bd0
7eac188d3286b05ccbba774f63a2c049
4df96d3bc9afd17b812e65e6c6add1ef
becf75b2cc99e82716da2e6697879509
7eec7b9476b99b3ce94533da4f2eb987
974322f19d813702ea048d95288d2b8c
29015bbfcc182d80e7f75bd2c38e4521
dd2971b0681141d57b221687791ad1bd
86a0d598cde251321e21a0da4ab94065

View File

@ -1,2 +1,2 @@
#Thu Oct 17 13:56:53 CST 2024
json=-858388629
#Fri Oct 18 17:36:45 CST 2024
json=1556480289

View File

@ -1,5 +1,5 @@
#
#Thu Oct 17 13:56:53 CST 2024
#Fri Oct 18 17:36:45 CST 2024
C8XiiEAUrUDh6nWnlsJz8iEhrTyNLUctJ_xGloqZJHwJINes1b_Md0rTpgbdETXAq9eH5RVsJqqNTILCA2qnbA=i4k2zRVkJrBdZ2AlcVyiG2B1feL1OvMldT2ea5279uyuoGXtC_5uGTbx7Up_JehNT_K0TmZK42hpEAFFwlHLEb
sdk_analysis_plugin_version=5.5.0
set_multidex=true

View File

@ -7,6 +7,8 @@ plugins {
id("applovin-quality-service")
id("org.jetbrains.kotlin.android")
id ("kotlin-kapt")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
}
applovin{
apiKey = "C8XiiEAUrUDh6nWnlsJz8iEhrTyNLUctJ_xGloqZJHwJINes1b_Md0rTpgbdETXAq9eH5RVsJqqNTILCA2qnbA"
@ -26,8 +28,8 @@ android {
applicationId = "com.sound.prankparty"
minSdk = 23
targetSdk = 34
versionCode = 12
versionName = "1.0.3"
versionCode = 13
versionName = "1.0.4"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@ -70,6 +72,10 @@ dependencies {
kapt("androidx.room:room-compiler:2.6.1")
implementation(platform("com.google.firebase:firebase-bom:33.4.0"))
implementation("com.google.firebase:firebase-analytics-ktx")
implementation("com.google.firebase:firebase-crashlytics-ktx")
//--------------------------MAXLiftoff Monetizevungle、Mintegral、Pangle、Unity Ads、inmobi
implementation("com.applovin:applovin-sdk:+")

29
app/google-services.json Normal file
View File

@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "996249361139",
"project_id": "air-horn-prank-3453e",
"storage_bucket": "air-horn-prank-3453e.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:996249361139:android:cf08548e7bcd5fe734f586",
"android_client_info": {
"package_name": "com.sound.prankparty"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDAJoKU__0Owt0JfRZR8fgSL-3T08QfuFQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}

View File

@ -3,6 +3,7 @@ package com.sound;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
@ -10,6 +11,7 @@ import com.applovin.sdk.AppLovinMediationProvider;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkConfiguration;
import com.applovin.sdk.AppLovinSdkInitializationConfiguration;
import com.google.firebase.FirebaseApp;
public class MainApplication extends Application {
/**
@ -29,6 +31,16 @@ public class MainApplication extends Application {
//获取应用的上下文并赋值给 mContext
mContext = getApplicationContext();
// // 确保Firebase初始化
// FirebaseApp.initializeApp(this);
//
// // 输出日志以确认Firebase初始化
// if (!FirebaseApp.getApps(this).isEmpty()) {
// Log.d(TAG, "Firebase 初始化成功");
// } else {
// Log.e(TAG, "Firebase 初始化失败");
// }
initSdk();
}

View File

@ -2,6 +2,8 @@
plugins {
alias(libs.plugins.android.application) 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
}
buildscript {
dependencies {