diff --git a/app/build.gradle b/app/build.gradle index 5dfce29..16a359a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -133,4 +133,8 @@ dependencies { implementation "com.firebaseui:firebase-ui-auth:7.2.0" implementation 'com.google.firebase:firebase-storage-ktx:20.0.1' + //retorfit + implementation 'com.squareup.retrofit2:retrofit:2.4.0' + implementation 'com.squareup.retrofit2:converter-gson:2.1.0' + } diff --git a/app/src/main/java/com/example/nexus/activities/MainActivity.kt b/app/src/main/java/com/example/nexus/activities/MainActivity.kt index da23c34..9d0c39a 100644 --- a/app/src/main/java/com/example/nexus/activities/MainActivity.kt +++ b/app/src/main/java/com/example/nexus/activities/MainActivity.kt @@ -15,14 +15,15 @@ import dagger.hilt.android.AndroidEntryPoint class MainActivity : ComponentActivity() { private val TAG = MainActivity::class.java.name -// private val userState by viewModels() companion object { val TAG : String = MainActivity::class.java.simpleName } override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + IGDBWrapper.setCredentials("trt599r053jhg3fmjnhehpyzs3xh4w", "thxgflb6lueztb6aehzm0rcaqgocmb") + setContent { MyApplicationTheme { ApplicationSwitcher(vM = hiltViewModel()) @@ -31,7 +32,6 @@ class MainActivity : ComponentActivity() { } } - override fun onStart() { super.onStart() Log.i(TAG, "onStart function")