-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added signup with location, category. Added Firebase Analytics. Impro…
…ved navigations
- Loading branch information
1 parent
4e506d7
commit 9591a93
Showing
28 changed files
with
536 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "529765195046", | ||
"firebase_url": "https://q-me-firebase.firebaseio.com", | ||
"project_id": "q-me-firebase", | ||
"storage_bucket": "q-me-firebase.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:529765195046:android:6f13c69c165d5e7fa5f5e7", | ||
"android_client_info": { | ||
"package_name": "com.vaapso.qme_subscriber" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "529765195046-poqfs5rquifvfgse571ckescge4umbtc.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyBTFxT93BVHqwLcEbuuYbLkx7L9Dd3HZSA" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "529765195046-poqfs5rquifvfgse571ckescge4umbtc.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
storePassword=QMeSubscriber | ||
keyPassword=QMeSubscriber | ||
keyAlias=key | ||
storeFile=/media/pi/Pi/Code/android/q_me/subscriber/key.jks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import UIKit | ||
import Flutter | ||
import GoogleMaps | ||
|
||
@UIApplicationMain | ||
@objc class AppDelegate: FlutterAppDelegate { | ||
override func application( | ||
_ application: UIApplication, | ||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | ||
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? | ||
) -> Bool { | ||
GMSServices.provideAPIKey("AIzaSyCIwJoNY1gMHq-qITR81zDv_z--z9xlOlo") | ||
GeneratedPluginRegistrant.register(with: self) | ||
return super.application(application, didFinishLaunchingWithOptions: launchOptions) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const String mapsApiKey = 'AIzaSyCIwJoNY1gMHq-qITR81zDv_z--z9xlOlo'; | ||
const String mapsApiKey2 = 'AIzaSyDYQDjIO0E-tHnSFHDEmaYb_wzWEWiDqEc'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:path/path.dart'; | ||
import 'package:sqflite/sqflite.dart'; | ||
import '../model/subscriber.dart'; | ||
|
||
Future<void> addProfile(Subscriber subscriber, Database db) async { | ||
await db.insert( | ||
'profile', | ||
subscriber.toJson(), | ||
conflictAlgorithm: ConflictAlgorithm.replace, | ||
); | ||
} | ||
|
||
Future<void> initDB(Subscriber subscriber) async { | ||
final Future<Database> database = openDatabase( | ||
join(await getDatabasesPath(), 'subscriber.db'), | ||
onCreate: (db, version) { | ||
return db.execute('DROP TABLE IF EXISTS profile;' | ||
'CREATE TABLE profile(' | ||
'id TEXT PRIMARY KEY, ' | ||
'name TEXT, ' | ||
'owner TEXT,' | ||
'email TEXT, ' | ||
'phone TEXT, ' | ||
'address TEXT, ' | ||
'latitude REAL, ' | ||
'longitude REAL, ' | ||
'verified INTEGER, ' | ||
'category TEXT, ' | ||
'expiry TEXT' | ||
'refreshToken TEXT)'); | ||
}, | ||
version: 1, | ||
); | ||
await addProfile(subscriber, await database); | ||
} | ||
|
||
Future<Subscriber> getProfileFromDB() async { | ||
final Database database = | ||
await openDatabase(join(await getDatabasesPath(), 'subscriber.db')); | ||
final List<Map<String, dynamic>> maps = await database.query('profile'); | ||
return Subscriber.fromJson(maps[0]); | ||
} | ||
|
||
Future<void> updateProfile(Subscriber subscriber) async { | ||
final Database db = | ||
await openDatabase(join(await getDatabasesPath(), 'subscriber.db')); | ||
await db.update('profile', subscriber.toJson(), | ||
where: "id = ?", whereArgs: [subscriber.id]); | ||
} |
Oops, something went wrong.
9591a93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #6