diff --git a/firebase-config/test-app/src/main/kotlin/com/google/firebase/testing/config/MainActivity.kt b/firebase-config/test-app/src/main/kotlin/com/google/firebase/testing/config/MainActivity.kt index ba3dda2975e..aa743b45566 100644 --- a/firebase-config/test-app/src/main/kotlin/com/google/firebase/testing/config/MainActivity.kt +++ b/firebase-config/test-app/src/main/kotlin/com/google/firebase/testing/config/MainActivity.kt @@ -18,13 +18,19 @@ package com.google.firebase.testing.config import android.os.Bundle import android.util.Log +import android.view.View import android.widget.Button +import android.widget.ScrollView import android.widget.TextView import androidx.appcompat.app.AppCompatActivity import com.google.android.gms.tasks.Task import com.google.firebase.crashlytics.FirebaseCrashlytics import com.google.firebase.crashlytics.recordFatalException +import com.google.firebase.remoteconfig.ConfigUpdate +import com.google.firebase.remoteconfig.ConfigUpdateListener import com.google.firebase.remoteconfig.FirebaseRemoteConfig +import com.google.firebase.remoteconfig.FirebaseRemoteConfigException + class MainActivity : AppCompatActivity() { @@ -34,17 +40,63 @@ class MainActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + remoteConfig = FirebaseRemoteConfig.getInstance() + findViewById(R.id.greeting_text).text = getText(R.string.firebase_greetings) + // Remote Config functionality + + findViewById