Skip to content

Commit

Permalink
SIANXSVC-1227: change firebase config
Browse files Browse the repository at this point in the history
  • Loading branch information
anx-bkelhar committed Mar 22, 2024
1 parent 8f83929 commit 4fd5495
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 10 deletions.
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ plugins {
alias(libs.plugins.kotlinParcelize)
alias(libs.plugins.kotlinKapt)
alias(libs.plugins.ksp)
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
}

android {
namespace = "com.twofasapp"
namespace = "at.anexia"

defaultConfig {
applicationId = "at.anexia.authenticator"
Expand Down
48 changes: 48 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"project_info": {
"project_number": "657102836550",
"firebase_url": "https://anexia-authenticator.firebaseio.com",
"project_id": "anexia-authenticator",
"storage_bucket": "anexia-authenticator.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:657102836550:android:c9cac23552969ace",
"android_client_info": {
"package_name": "at.anexia.authenticator"
}
},
"oauth_client": [
{
"client_id": "657102836550-o61kdidhndmkg6bq3g69hpt3eub75bjv.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "at.anexia.authenticator",
"certificate_hash": "1f38c2c5ac3245599fbe5e7c91dff0f1c69ce3b8"
}
},
{
"client_id": "657102836550-3lm99dicqd8d66ksrfom7i506v2dlvnf.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyD__lK86WTn4nzrv4NTwO2bAG2GxG5QVME"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "657102836550-3lm99dicqd8d66ksrfom7i506v2dlvnf.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
11 changes: 5 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.twofasapp">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down Expand Up @@ -52,7 +51,7 @@
</provider>

<service
android:name=".data.push.FcmMessagingService"
android:name="com.twofasapp.data.push.FcmMessagingService"
android:exported="false"
android:stopWithTask="false">
<intent-filter>
Expand All @@ -79,7 +78,7 @@
</service>

<receiver
android:name=".widgets.WidgetProvider"
android:name="com.twofasapp.widgets.WidgetProvider"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
Expand All @@ -95,7 +94,7 @@

<!-- ACTIVITIES -->
<activity
android:name=".ui.main.StartActivity"
android:name="com.twofasapp.ui.main.StartActivity"
android:exported="true"
android:launchMode="singleTask"
android:noHistory="false"
Expand Down Expand Up @@ -139,7 +138,7 @@
</activity>

<activity
android:name=".ui.main.MainActivity"
android:name="com.twofasapp.ui.main.MainActivity"
android:label="Add service by scanning QR Code"
android:launchMode="singleTask" />

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/twofasapp/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.app.Application
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
import at.anexia.BuildConfig
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.twofasapp.base.AuthTracker
import com.twofasapp.data.services.domain.CloudSyncTrigger
Expand Down Expand Up @@ -62,7 +63,7 @@ class App : Application() {

cloudSyncWorkDispatcher.tryDispatch(CloudSyncTrigger.AppStart)

// FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(sendCrashLogsPreference.get())
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(sendCrashLogsPreference.get())

try {
SQLiteDatabase.loadLibs(this)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.twofasapp.environment

import com.twofasapp.BuildConfig
import at.anexia.BuildConfig
import com.twofasapp.common.environment.AppBuild
import com.twofasapp.common.environment.BuildVariant
import com.twofasapp.common.environment.BuildVariant.Debug
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${libs.versions.kotlin.get()}")
classpath("com.google.gms:google-services:4.4.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal fun Project.applyBuildTypes(
isMinifyEnabled = false
isDebuggable = true
signingConfig = signingConfigs.getByName("debug")
applicationIdSuffix = ".debug"
// applicationIdSuffix = ".debug"
}
/*
create("releaseLocal") {
Expand Down

0 comments on commit 4fd5495

Please sign in to comment.