From 0c9b13c6c67bb436bf8d90191f7a231505b313e0 Mon Sep 17 00:00:00 2001 From: LiquidatorCoder Date: Thu, 25 Nov 2021 13:16:18 +0530 Subject: [PATCH] add dynamic link dependencies --- .gitignore | 9 +++++++- android/app/build.gradle | 5 ++++- android/app/src/main/AndroidManifest.xml | 8 +++++++ android/build.gradle | 3 ++- pubspec.lock | 28 ++++++++++++++++++++++++ pubspec.yaml | 1 + 6 files changed, 51 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index be82281..3a08c71 100644 --- a/.gitignore +++ b/.gitignore @@ -46,4 +46,11 @@ app.*.map.json /android/app/release # Environment Variables -*.env \ No newline at end of file +*.env + +# Coverage Report +coverage/lcov.info + +# Secret Files +odin-release-key.keystore +android/app/google-services.json \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index 718175f..4d05a15 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -23,6 +23,7 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' apply plugin: 'kotlin-android' +apply plugin: 'com.google.gms.google-services' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { @@ -44,7 +45,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.odin.odin" - minSdkVersion 16 + minSdkVersion 19 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -65,4 +66,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation platform('com.google.firebase:firebase-bom:29.0.0') + implementation 'com.google.firebase:firebase-analytics-ktx' } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c128096..ddb8055 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -28,6 +28,14 @@ android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" /> + + + + + + diff --git a/android/build.gradle b/android/build.gradle index ed45c65..2ec5821 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.4.32' repositories { google() mavenCentral() @@ -8,6 +8,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.google.gms:google-services:4.3.10' } } diff --git a/pubspec.lock b/pubspec.lock index 24e1fd0..3fb17e2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -267,6 +267,34 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.2.3" + firebase_core: + dependency: transitive + description: + name: firebase_core + url: "https://pub.dartlang.org" + source: hosted + version: "1.10.0" + firebase_core_platform_interface: + dependency: transitive + description: + name: firebase_core_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "4.1.0" + firebase_core_web: + dependency: transitive + description: + name: firebase_core_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + firebase_dynamic_links: + dependency: "direct main" + description: + name: firebase_dynamic_links + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" fixnum: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 85ed7cd..2a64630 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -35,6 +35,7 @@ dependencies: desktop_drop: ^0.1.2 dio: ^4.0.3 file_picker: ^4.2.3 + firebase_dynamic_links: ^3.0.1 flutter: sdk: flutter flutter_dotenv: ^5.0.2