Skip to content

Commit

Permalink
fixing remote-config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Idrees committed Jul 19, 2022
1 parent afa68c1 commit 97574bf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 38 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ remoteConfig.getRemoteConfig {
if (remoteAdSettings.splashNative.value == "on") {
//Load Splash Native AD
}
if (remoteAdSettings.splashInter.value == "on") {
//Load Splash Interstitial AD
}
}
}
```
Expand Down
31 changes: 1 addition & 30 deletions app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,11 @@
"storage_bucket": "fir-e967c.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:744390342276:android:ac69594aa48e365aee34d1",
"android_client_info": {
"package_name": "ai.bom.firebase"
}
},
"oauth_client": [
{
"client_id": "744390342276-juc53gc7jmnb4tvnturfoh9mveh0oacl.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCIpEz4fDK_LI2FCj6eJvTY2jQme1dzzws"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "744390342276-juc53gc7jmnb4tvnturfoh9mveh0oacl.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:744390342276:android:d471528021ee286dee34d1",
"android_client_info": {
"package_name": "com.all.video.downloader.fast.downloading.video.saver.browser"
"package_name": "ai.bom.firebase"
}
},
"oauth_client": [
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/ai/bom/firebase/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.google.gson.Gson
class MainActivity : AppCompatActivity() {

private val fbAnalytics by lazy { FirebaseAnalytics(this) }
private val remoteConfig = RemoteConfigDate("topicName")
private val remoteConfig = RemoteConfigDate("demo")

private var remoteAdSettings = RemoteModel()

Expand Down
2 changes: 1 addition & 1 deletion firebaseLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.8.0'

//Firebase BOM
api platform('com.google.firebase:firebase-bom:30.1.0')
api platform('com.google.firebase:firebase-bom:30.2.0')
implementation 'com.google.firebase:firebase-config-ktx'
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-messaging-ktx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class RemoteConfigDate(private val remoteTopic: String) {
private val timeInMillis: Long = if (BuildConfig.DEBUG) 0L else 3600L

private fun getInstance(): FirebaseRemoteConfig? {
remoteConfig?.let {
return it
}
remoteConfig = FirebaseRemoteConfig.getInstance()
val configSetting = FirebaseRemoteConfigSettings.Builder()
.setMinimumFetchIntervalInSeconds(timeInMillis)
Expand Down

0 comments on commit 97574bf

Please sign in to comment.