diff --git a/android/app/build.gradle b/android/app/build.gradle index d5ab317..bce78ea 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -48,7 +48,7 @@ android { applicationId "com.shark.mera_aadhar" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 19 + minSdkVersion 20 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/android/app/google-services.json b/android/app/google-services.json deleted file mode 100644 index 448a9e6..0000000 --- a/android/app/google-services.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "project_info": { - "project_number": "800240519039", - "firebase_url": "https://sportyme-9927c-default-rtdb.asia-southeast1.firebasedatabase.app", - "project_id": "sportyme-9927c", - "storage_bucket": "sportyme-9927c.appspot.com" - }, - "client": [ - { - "client_info": { - "mobilesdk_app_id": "1:800240519039:android:5b337449d5e254a151bc4a", - "android_client_info": { - "package_name": "com.shark.mera_aadhar" - } - }, - "oauth_client": [ - { - "client_id": "800240519039-o5sn2imoajqttj059rr0rmnhiorqgucc.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.shark.mera_aadhar", - "certificate_hash": "8dd9df9a0ce187ce20512b4cb4185466cecb0888" - } - }, - { - "client_id": "800240519039-v4egc5shna4l9jqbljl4lbiu95mmcd71.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.shark.mera_aadhar", - "certificate_hash": "7ba0925b6b8ed8286dc77bd1a855d631998a6f54" - } - }, - { - "client_id": "800240519039-1eti7eqvbvgl9qj60s62sfevt9utsutn.apps.googleusercontent.com", - "client_type": 3 - } - ], - "api_key": [ - { - "current_key": "AIzaSyCy24LszFzZ92VaIuL9CR0fid13JXBZLgw" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [ - { - "client_id": "800240519039-1eti7eqvbvgl9qj60s62sfevt9utsutn.apps.googleusercontent.com", - "client_type": 3 - }, - { - "client_id": "800240519039-q11hdqb88bifpasnd9f18ru14vbvrttd.apps.googleusercontent.com", - "client_type": 2, - "ios_info": { - "bundle_id": "com.shark.meraOperator" - } - } - ] - } - } - }, - { - "client_info": { - "mobilesdk_app_id": "1:800240519039:android:ec49bf6dbc60cba451bc4a", - "android_client_info": { - "package_name": "com.shark.mera_operator" - } - }, - "oauth_client": [ - { - "client_id": "800240519039-1eti7eqvbvgl9qj60s62sfevt9utsutn.apps.googleusercontent.com", - "client_type": 3 - } - ], - "api_key": [ - { - "current_key": "AIzaSyCy24LszFzZ92VaIuL9CR0fid13JXBZLgw" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [ - { - "client_id": "800240519039-1eti7eqvbvgl9qj60s62sfevt9utsutn.apps.googleusercontent.com", - "client_type": 3 - }, - { - "client_id": "800240519039-q11hdqb88bifpasnd9f18ru14vbvrttd.apps.googleusercontent.com", - "client_type": 2, - "ios_info": { - "bundle_id": "com.shark.meraOperator" - } - } - ] - } - } - } - ], - "configuration_version": "1" -} \ No newline at end of file diff --git a/lib/firebase/booking_db.dart b/lib/firebase/booking_db.dart index 3f57710..7e6ee75 100644 --- a/lib/firebase/booking_db.dart +++ b/lib/firebase/booking_db.dart @@ -7,7 +7,11 @@ class BookingDB { CollectionReference _collectionRef = FirebaseFirestore.instance.collection('bookings'); - Future addNewBooking(Booking booking) { + Future addNewBooking(Booking booking) async { + Booking? bookin = await getMyCurrentBooking(); + if(booking != null){ + print("already open request"); + } return _collectionRef .add(booking.toJson()) .then((value) => print("Booking entry added"))