diff --git a/android/app/build.gradle b/android/app/build.gradle index 1b70884..cf4934b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -22,6 +22,7 @@ if (flutterVersionName == null) { } apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" @@ -82,4 +83,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation platform('com.google.firebase:firebase-bom:27.0.0') + implementation 'com.google.firebase:firebase-analytics' } diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 0000000..c00eacb --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,39 @@ +{ + "project_info": { + "project_number": "749352579370", + "project_id": "aku-community-manage", + "storage_bucket": "aku-community-manage.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:749352579370:android:e6f76e5f1c56841db32e53", + "android_client_info": { + "package_name": "com.akucommunity.aku_community_manager" + } + }, + "oauth_client": [ + { + "client_id": "749352579370-ag1vqd24nsrdj0oogldg6rqiq2mcpre7.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyCQrr7LDVBo-fGFijTrQT9vp5oYi9UucXA" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "749352579370-ag1vqd24nsrdj0oogldg6rqiq2mcpre7.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 3100ad2..e62a641 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,6 +8,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.google.gms:google-services:4.3.5' } } diff --git a/pubspec.yaml b/pubspec.yaml index bff8e44..252023d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -41,7 +41,7 @@ dependencies: expandable: ^5.0.1 - url_launcher: ^5.7.10 + url_launcher: ^6.0.3 amap_map_fluttify: ^0.29.0 @@ -50,7 +50,9 @@ dependencies: velocity_x: ^2.6.0 dotted_border: ^2.0.0-nullsafety.0 dio: ^4.0.0 - + #谷歌崩溃分析 + firebase_core: ^1.0.3 + firebase_crashlytics: ^2.0.0 power_logger: ^1.0.1-nullsafety.1 logger: ^1.0.0 aku_ui: