Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 29
Expand All @@ -39,7 +40,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.flutterflub.carify"
minSdkVersion 16
minSdkVersion 21
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -60,4 +61,6 @@ flutter {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:26.1.1')
implementation 'com.google.firebase:firebase-analytics'
}
47 changes: 47 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "500464888317",
"project_id": "carify-c8416",
"storage_bucket": "carify-c8416.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:500464888317:android:cb15c783bdac2f39cfd194",
"android_client_info": {
"package_name": "com.flutterflub.carify"
}
},
"oauth_client": [
{
"client_id": "500464888317-mde7nferub8gn37en1d6lpf79lqj9b0l.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.flutterflub.carify",
"certificate_hash": "0d5b7dce11bceedb4b0ec3b4743c7eab87b42fb6"
}
},
{
"client_id": "500464888317-51esjajj9e3q8hg2f5rjbmr1e427qgcr.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAiooyasrTteWYmz84KVwVGkv2hhTrDLiU"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "500464888317-51esjajj9e3q8hg2f5rjbmr1e427qgcr.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.4'
}
}

Expand Down
Binary file added assets/images/google_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 20 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
import 'package:carify/screens/login_screen.dart';
import 'package:carify/screens/profile_screen.dart';
import 'package:carify/screens/splash_screen.dart';
import 'package:carify/screens/statusAuth.dart';
import 'package:carify/utilities/user_authentication.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:provider/provider.dart';

void main() {
runApp(MaterialApp(
home: SplashScreen(),
debugShowCheckedModeBanner: false,
));
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SplashScreen(),
debugShowCheckedModeBanner: false,
);
}
}
//Hi
Loading