Skip to content

Commit

Permalink
update firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKostrzewsky committed Jul 23, 2024
1 parent 6e3924c commit c160cc8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ app.*.map.json

.metadata
pubspec.lock
.tool-versions
.tool-versions

*.jks
23 changes: 18 additions & 5 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
namespace "com.example.endless_runner"
namespace "com.appunite.better_world"
compileSdkVersion flutter.compileSdkVersion
ndkVersion "25.1.8937393"

Expand All @@ -40,9 +46,10 @@ android {
main.java.srcDirs += 'src/main/kotlin'
}


defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.endless_runner"
applicationId "com.appunite.better_world"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand All @@ -51,11 +58,17 @@ android {
versionName flutterVersionName
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}
}
Expand Down
19 changes: 19 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
"storage_bucket": "flutter-game-challenge.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:350421946478:android:d814ee9e9a2a0ed2d4567f",
"android_client_info": {
"package_name": "com.appunite.better_world"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAZKp07yUqxFJZMEAZI2OYfd0GzG6tgvb8"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:350421946478:android:3c70c9645bf8d8d9d4567f",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.endless_runner
package com.appunite.better_world

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion lib/firebase_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DefaultFirebaseOptions {

static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyAZKp07yUqxFJZMEAZI2OYfd0GzG6tgvb8',
appId: '1:350421946478:android:3c70c9645bf8d8d9d4567f',
appId: '1:350421946478:android:d814ee9e9a2a0ed2d4567f',
messagingSenderId: '350421946478',
projectId: 'flutter-game-challenge',
storageBucket: 'flutter-game-challenge.appspot.com',
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ dependencies:
scratcher: ^2.5.0
shared_preferences: ^2.2.2
skeletons: ^0.0.3
smart_snackbars: ^1.0.0
url_launcher: ^6.2.5
uuid: ^4.3.3
wakelock_plus: ^1.1.4
Expand Down

0 comments on commit c160cc8

Please sign in to comment.