Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RGTechPro committed Sep 10, 2022
2 parents df7d974 + 4849919 commit ab728cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 101 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
99 changes: 0 additions & 99 deletions android/app/google-services.json

This file was deleted.

6 changes: 5 additions & 1 deletion lib/firebase/booking_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class BookingDB {
CollectionReference _collectionRef =
FirebaseFirestore.instance.collection('bookings');

Future<void> addNewBooking(Booking booking) {
Future<void> 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"))
Expand Down

0 comments on commit ab728cc

Please sign in to comment.