添加fb sdk

This commit is contained in:
ocean 2024-06-24 17:58:03 +08:00
parent c184b7896e
commit 44f827ba21
3 changed files with 12 additions and 0 deletions

View File

@ -100,6 +100,8 @@ dependencies {
implementation("io.github.scwang90:refresh-footer-ball:2.1.0") implementation("io.github.scwang90:refresh-footer-ball:2.1.0")
implementation("com.google.code.gson:gson:2.10.1") implementation("com.google.code.gson:gson:2.10.1")
//fb
implementation("com.facebook.android:facebook-android-sdk:latest.release")
//google //google
implementation("com.google.android.gms:play-services-ads-identifier:18.1.0") implementation("com.google.android.gms:play-services-ads-identifier:18.1.0")

View File

@ -30,6 +30,14 @@
android:theme="@style/Theme.HiMelody" android:theme="@style/Theme.HiMelody"
tools:targetApi="31"> tools:targetApi="31">
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<meta-data
android:name="com.facebook.sdk.ClientToken"
android:value="@string/facebook_client_token" />
<meta-data <meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID" android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1371732277241593~7848475249" /> android:value="ca-app-pub-1371732277241593~7848475249" />

View File

@ -1,4 +1,6 @@
<resources> <resources>
<string name="facebook_app_id">806484508216215</string>
<string name="facebook_client_token">17178cbb9636b2ff8d71e47548788488</string>
<string name="app_name">HiMelody</string> <string name="app_name">HiMelody</string>
<string name="ready_to_sleep">Sleep Soundly Tonight</string> <string name="ready_to_sleep">Sleep Soundly Tonight</string>
<string name="home_top_desc">Experience the tranquility of our specially designed sleep sounds.</string> <string name="home_top_desc">Experience the tranquility of our specially designed sleep sounds.</string>