Skip to content

Commit

Permalink
Add Firebase crashlytics & remote_config
Browse files Browse the repository at this point in the history
  • Loading branch information
theachoem committed Jan 25, 2025
1 parent 470941d commit 8386501
Show file tree
Hide file tree
Showing 23 changed files with 409 additions and 169 deletions.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "com.android.application"
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
// END: FlutterFire Configuration
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
Expand Down
114 changes: 7 additions & 107 deletions android/app/src/community/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,6 @@
"storage_bucket": "juniorise-spooky-community.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:892248434003:android:07ab4b2c947355a263eda6",
"android_client_info": {
"package_name": "com.juniorise.spooky"
}
},
"oauth_client": [
{
"client_id": "892248434003-7p06aqe80m3s6b6b1iui6llda2m9qcbl.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBn4IK7ySHqwlpYqWjg9BPvHdXuB4HJcy4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "892248434003-60388oarratalns41v2059obt27kk6kt.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "892248434003-34uc2e5inp4l3fmcvd0bh12ao1sq4pv2.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.juniorise.spooky"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:892248434003:android:5e6ee709875438aa63eda6",
Expand All @@ -50,77 +14,13 @@
},
"oauth_client": [
{
"client_id": "892248434003-7p06aqe80m3s6b6b1iui6llda2m9qcbl.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBn4IK7ySHqwlpYqWjg9BPvHdXuB4HJcy4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "892248434003-60388oarratalns41v2059obt27kk6kt.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "892248434003-34uc2e5inp4l3fmcvd0bh12ao1sq4pv2.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.juniorise.spooky"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:892248434003:android:5bb82d5f9885bd2d63eda6",
"android_client_info": {
"package_name": "com.juniorise.spooky.dev"
}
},
"oauth_client": [
{
"client_id": "892248434003-7p06aqe80m3s6b6b1iui6llda2m9qcbl.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBn4IK7ySHqwlpYqWjg9BPvHdXuB4HJcy4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "892248434003-60388oarratalns41v2059obt27kk6kt.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "892248434003-34uc2e5inp4l3fmcvd0bh12ao1sq4pv2.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.juniorise.spooky"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:892248434003:android:0eddb11c9209f06463eda6",
"android_client_info": {
"package_name": "com.juniorise.spooky.staging"
}
},
"oauth_client": [
"client_id": "892248434003-uts1shngipmc01farbghi5dpmnm9idti.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.juniorise.spooky.community",
"certificate_hash": "04a27735cbbc9e8bf1ccf2b734fe834ad54d4840"
}
},
{
"client_id": "892248434003-7p06aqe80m3s6b6b1iui6llda2m9qcbl.apps.googleusercontent.com",
"client_type": 3
Expand Down
1 change: 1 addition & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ plugins {
id "com.android.application" version "8.1.0" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
id "com.google.firebase.crashlytics" version "2.8.1" apply false
// END: FlutterFire Configuration
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
Expand Down
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"flutter":{"platforms":{"android":{"default":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:android:07ab4b2c947355a263eda6","fileOutput":"android/app/google-services.json"},"buildConfigurations":{"src/spooky":{"projectId":"juniorise-spooky","appId":"1:845318918007:android:8d9f8265b46011fd349b72","fileOutput":"android/app/src/spooky/google-services.json"},"src/storypad":{"projectId":"tc-write-story","appId":"1:315543702519:android:4e9cf4c1923c1dab74fcf2","fileOutput":"android/app/src/storypad/google-services.json"},"src/community":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:android:5e6ee709875438aa63eda6","fileOutput":"android/app/src/community/google-services.json"}}},"ios":{"default":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:ios:c1c7f010daf9631363eda6","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"},"buildConfigurations":{"Release":{"projectId":"tc-write-story","appId":"1:315543702519:ios:b341e734dc53180c74fcf2","uploadDebugSymbols":false,"fileOutput":"ios/Firebase/storypad/GoogleService-Info.plist"},"Release-storypad":{"projectId":"tc-write-story","appId":"1:315543702519:ios:b341e734dc53180c74fcf2","uploadDebugSymbols":false,"fileOutput":"ios/Firebase/storypad/GoogleService-Info.plist"}}},"dart":{"lib/firebase_options.dart":{"projectId":"juniorise-spooky-community","configurations":{"android":"1:892248434003:android:07ab4b2c947355a263eda6","ios":"1:892248434003:ios:c1c7f010daf9631363eda6"}},"lib/firebase_options/spooky.dart":{"projectId":"juniorise-spooky","configurations":{"android":"1:845318918007:android:8d9f8265b46011fd349b72","ios":"1:845318918007:ios:6815c46033e54568349b72"}},"lib/firebase_options/storypad.dart":{"projectId":"tc-write-story","configurations":{"android":"1:315543702519:android:4e9cf4c1923c1dab74fcf2","ios":"1:315543702519:ios:b341e734dc53180c74fcf2"}},"lib/firebase_options/community.dart":{"projectId":"juniorise-spooky-community","configurations":{"android":"1:892248434003:android:5e6ee709875438aa63eda6","ios":"1:892248434003:ios:83be1e9203a1be7e63eda6"}}}}}}
{"flutter":{"platforms":{"android":{"default":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:android:07ab4b2c947355a263eda6","fileOutput":"android/app/google-services.json"},"buildConfigurations":{"src/spooky":{"projectId":"juniorise-spooky","appId":"1:845318918007:android:8d9f8265b46011fd349b72","fileOutput":"android/app/src/spooky/google-services.json"},"src/storypad":{"projectId":"tc-write-story","appId":"1:315543702519:android:4e9cf4c1923c1dab74fcf2","fileOutput":"android/app/src/storypad/google-services.json"},"src/community":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:android:5e6ee709875438aa63eda6","fileOutput":"android/app/src/community/google-services.json"}}},"ios":{"default":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:ios:c1c7f010daf9631363eda6","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"},"buildConfigurations":{"Release":{"projectId":"tc-write-story","appId":"1:315543702519:ios:b341e734dc53180c74fcf2","uploadDebugSymbols":false,"fileOutput":"ios/Firebase/storypad/GoogleService-Info.plist"},"Release-storypad":{"projectId":"tc-write-story","appId":"1:315543702519:ios:b341e734dc53180c74fcf2","uploadDebugSymbols":true,"fileOutput":"ios/Firebase/storypad/GoogleService-Info.plist"},"Release-spooky":{"projectId":"juniorise-spooky","appId":"1:845318918007:ios:6815c46033e54568349b72","uploadDebugSymbols":true,"fileOutput":"ios/Firebase/spooky/GoogleService-Info.plist"},"Release-community":{"projectId":"juniorise-spooky-community","appId":"1:892248434003:ios:83be1e9203a1be7e63eda6","uploadDebugSymbols":true,"fileOutput":"ios/Firebase/community/GoogleService-Info.plist"}}},"dart":{"lib/firebase_options.dart":{"projectId":"juniorise-spooky-community","configurations":{"android":"1:892248434003:android:07ab4b2c947355a263eda6","ios":"1:892248434003:ios:c1c7f010daf9631363eda6"}},"lib/firebase_options/spooky.dart":{"projectId":"juniorise-spooky","configurations":{"android":"1:845318918007:android:8d9f8265b46011fd349b72","ios":"1:845318918007:ios:6815c46033e54568349b72"}},"lib/firebase_options/storypad.dart":{"projectId":"tc-write-story","configurations":{"android":"1:315543702519:android:4e9cf4c1923c1dab74fcf2","ios":"1:315543702519:ios:b341e734dc53180c74fcf2"}},"lib/firebase_options/community.dart":{"projectId":"juniorise-spooky-community","configurations":{"android":"1:892248434003:android:5e6ee709875438aa63eda6","ios":"1:892248434003:ios:83be1e9203a1be7e63eda6"}}}}}}
2 changes: 1 addition & 1 deletion flutterfire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function run_command() {

# eg. main_prod.dart
function save_dart_main_file() {
TEMPLATE_DATA=$(cat "lib/main.dart.template")
TEMPLATE_DATA=$(cat "lib/main_flavor.dart.template")
FLAVOR=$1
DESTINATION="lib/main_$FLAVOR.dart"

Expand Down
62 changes: 32 additions & 30 deletions ios/Firebase/community/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>892248434003-q94kghlq2mrmcfucabke2cpmgf77j1p5.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.315543702519-odmt90l1fdih6mtpbcoc1hkqvd8mdhle</string>
<key>API_KEY</key>
<string>AIzaSyAU8Q8SrWFufbf5uC7TPDVC9aDw4_aqvRw</string>
<key>GCM_SENDER_ID</key>
<string>892248434003</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.juniorise.spooky.community</string>
<key>PROJECT_ID</key>
<string>juniorise-spooky-community</string>
<key>STORAGE_BUCKET</key>
<string>juniorise-spooky-community.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:892248434003:ios:83be1e9203a1be7e63eda6</string>
</dict>
<dict>
<key>CLIENT_ID</key>
<string>892248434003-q94kghlq2mrmcfucabke2cpmgf77j1p5.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.892248434003-q94kghlq2mrmcfucabke2cpmgf77j1p5</string>
<key>ANDROID_CLIENT_ID</key>
<string>892248434003-uts1shngipmc01farbghi5dpmnm9idti.apps.googleusercontent.com</string>
<key>API_KEY</key>
<string>AIzaSyAU8Q8SrWFufbf5uC7TPDVC9aDw4_aqvRw</string>
<key>GCM_SENDER_ID</key>
<string>892248434003</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.juniorise.spooky.community</string>
<key>PROJECT_ID</key>
<string>juniorise-spooky-community</string>
<key>STORAGE_BUCKET</key>
<string>juniorise-spooky-community.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:892248434003:ios:83be1e9203a1be7e63eda6</string>
</dict>
</plist>
Loading

0 comments on commit 8386501

Please sign in to comment.