diff --git a/android/app/build.gradle b/android/app/build.gradle
index 9cadf73..d5bf21a 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -60,7 +60,7 @@ if (keystorePropertiesFile.exists()) {
}
android {
- compileSdkVersion 29
+ compileSdkVersion 30
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -74,10 +74,11 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.thamringroup.unitstocks"
minSdkVersion 18
- targetSdkVersion 29
+ targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ multiDexEnabled true
}
signingConfigs {
release {
@@ -101,6 +102,7 @@ flutter {
}
dependencies {
+ implementation 'androidx.multidex:multidex:2.0.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index dcfa65d..9cc2a8b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,6 +6,8 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
+
+
_error;
StreamController _progress = new StreamController();
Stream get progress =>_progress.stream;
- var client = new Client();
+ bool useLocal = false;
downloadFile(String fileName,String link) async {
StreamedResponse _response;
@@ -25,7 +27,7 @@ class file_Trans_Handler {
try {
Request req = new Request('GET', Uri.parse(link));
// req.headers = '';
- _response = await client.send(req).timeout(
+ _response = await http.send(req).timeout(
Duration(seconds: 20));
// _response = await client.get('$link',headers: 'application/json')
_total = _response.contentLength;
@@ -48,6 +50,18 @@ class file_Trans_Handler {
_error = e.toString();
});
}
+ on HandshakeException catch(e){
+ if(useLocal){
+ print('Error Download, $e');
+ _progress.add(-1.0);
+ _error = e.toString();
+ }
+ else{
+ useLocal = true;
+ http = IOClient(HttpClient(context: clientContext));
+ await downloadFile(fileName,link);
+ }
+ }
catch(e){
print('Error Download, $e');
_progress.add(-1.0);
@@ -62,8 +76,8 @@ class file_Trans_Handler {
Uint8List byte = file.readAsBytesSync();
// print("file size ${file.lengthSync()/1024}");
try{
- var _reponse = await client.post(
- '$link', headers: {'Content-type': 'application/json'},
+ var _reponse = await http.post(
+ Uri.parse(link), headers: {'Content-type': 'application/json'},
body: json.encode({"byte":byte,"cabangId":cabang_id,"company":company}));
print('File send ${file.lengthSync()/1024} KB');
final Map data = JsonDecoder().convert(_reponse.body);
@@ -75,6 +89,16 @@ class file_Trans_Handler {
return data;
// }
}
+ on HandshakeException catch(e){
+ if(useLocal){
+ return {"STATUS":0,"DATA":'Request timeout. Make sure server is up and running'};
+ }
+ else{
+ useLocal = true;
+ http = IOClient(HttpClient(context: clientContext));
+ return await uploadFile( fileName, link, company, cabang_id);
+ }
+ }
catch(e){
print(e);
return {"STATUS":0,"DATA":'Request timeout. Make sure server is up and running'};
@@ -87,12 +111,22 @@ class file_Trans_Handler {
unPackDb(String link,String company,String cabang_id,String dbPath) async{
try{
- var _reponse = await client.post(
- '$link', headers: {'Content-type': 'application/json'},
+ var _reponse = await http.post(
+ Uri.parse(link), headers: {'Content-type': 'application/json'},
body: json.encode({"cabangId":cabang_id,"company":company,"dbPath":dbPath}));
final Map data = JsonDecoder().convert(_reponse.body);
return data;
}
+ on HandshakeException catch(e){
+ if(useLocal){
+ return {"STATUS":0,"DATA":'Upload timeout. Make sure server is up and running'};
+ }
+ else{
+ useLocal = true;
+ http = IOClient(HttpClient(context: clientContext));
+ return await unPackDb( link, company, cabang_id, dbPath);
+ }
+ }
catch(e){
print(e);
return {"STATUS":0,"DATA":'Upload timeout. Make sure server is up and running'};
@@ -101,12 +135,22 @@ class file_Trans_Handler {
submitDb(String link,String company,String stock_id) async{
try{
- var _reponse = await client.post(
- '$link', headers: {'Content-type': 'application/json'},
+ var _reponse = await http.post(
+ Uri.parse(link), headers: {'Content-type': 'application/json'},
body: json.encode({"stockTakingId":stock_id,"company":company}));
final Map data = JsonDecoder().convert(_reponse.body);
return data;
}
+ on HandshakeException catch(e){
+ if(useLocal){
+ return {"STATUS":0,"DATA":'Request timeout. Make sure server is up and running'};
+ }
+ else{
+ useLocal = true;
+ http = IOClient(HttpClient(context: clientContext));
+ return await submitDb(link,company,stock_id);
+ }
+ }
catch(e){
print(e);
return {"STATUS":0,"DATA":'Request timeout. Make sure server is up and running'};
@@ -117,37 +161,51 @@ class file_Trans_Handler {
StreamedResponse _response;
List _bytes = [];
int _total = 0;
- var request = MultipartRequest('POST', Uri.parse(link));
- request.files.add(
- await MultipartFile.fromPath(
- 'picture',
- "${(await getApplicationDocumentsDirectory()).path}/$fileName"
- )
- );
- _response = await client.send(request);
- _total = File("${(await getApplicationDocumentsDirectory()).path}/$fileName").lengthSync();
- dlulStream = _response.stream.listen((value) {
- _bytes.addAll(value);
- print('upload ${_bytes.length/_total}');
- _progress.add(((_bytes.length / _total)));
- })
- ..onDone(() async {
- _progress.add(0.0);
- print('Finish Download');
- final file = File(
- "${(await getApplicationDocumentsDirectory()).path}/$fileName");
- await file.writeAsBytes(_bytes);
- _path = file.path;
+ try{
+ var request = MultipartRequest('POST', Uri.parse(link));
+ request.files.add(
+ await MultipartFile.fromPath(
+ 'picture',
+ "${(await getApplicationDocumentsDirectory()).path}/$fileName"
+ )
+ );
+ _response = await http.send(request);
+ _total = File("${(await getApplicationDocumentsDirectory()).path}/$fileName").lengthSync();
+ dlulStream = _response.stream.listen((value) {
+ _bytes.addAll(value);
+ print('upload ${_bytes.length/_total}');
+ _progress.add(((_bytes.length / _total)));
})
- ..onError((e) async {
+ ..onDone(() async {
+ _progress.add(0.0);
+ print('Finish Download');
+ final file = File(
+ "${(await getApplicationDocumentsDirectory()).path}/$fileName");
+ await file.writeAsBytes(_bytes);
+ _path = file.path;
+ })
+ ..onError((e) async {
+ print('Error Download, $e');
+ _progress.add(-1.0);
+ _error = e.toString();
+ });
+ }
+ on HandshakeException catch(e){
+ if(useLocal){
print('Error Download, $e');
_progress.add(-1.0);
_error = e.toString();
- });
+ }
+ else{
+ useLocal = true;
+ http = IOClient(HttpClient(context: clientContext));
+ await uploadMultipart(fileName,link);
+ }
+ }
}
cancel()async{
- client?.close();
+ http?.close();
await dlulStream?.cancel();
_progress?.close();
}
diff --git a/lib/Util/photo_viewer.dart b/lib/Util/photo_viewer.dart
index bc316ee..92d69b7 100644
--- a/lib/Util/photo_viewer.dart
+++ b/lib/Util/photo_viewer.dart
@@ -53,20 +53,23 @@ class _PhotoViewerState extends State {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
- FlatButton(
+ TextButton(
child: Text('Cancel'),
- color: Colors.red,
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.red
+ ),
onPressed: (){Navigator.pop(context);},
),
- FlatButton(
+ TextButton(
child: Text('Change'),
- color: Colors.green,
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.green
+ ),
onPressed: ()async{
- File temp = await ImagePicker.pickImage(source: ImageSource.camera,maxWidth: 800);
+ XFile temp = await ImagePicker().pickImage(source: ImageSource.camera,maxWidth: 800);
if(temp!=null){
util.showLoading(context);
- widget.byte = temp.readAsBytesSync();
- temp.deleteSync();
+ widget.byte = await temp.readAsBytes();
setState(() {
});
diff --git a/lib/home_page.dart b/lib/home_page.dart
index bbf13a2..7fa4941 100644
--- a/lib/home_page.dart
+++ b/lib/home_page.dart
@@ -48,7 +48,7 @@ class _HomePageState extends State {
title: Text('Clear Data ?'),
content: Text('Proceed to clear any remaining units data on this device?'),
actions: [
- FlatButton(
+ TextButton(
child: Text('Proceed'),
onPressed: ()async{
util.showLoading(context);
@@ -93,7 +93,7 @@ class _HomePageState extends State {
util.showFlushbar(context,errMsg??'Data Cleared');
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){Navigator.pop(context,false);},
)
@@ -151,7 +151,8 @@ class _HomePageState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/3.2,
+ // height: MediaQuery.of(context).size.height/3.2,
+ height:220,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -214,7 +215,7 @@ class _HomePageState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('OK',style: TextStyle(color: Colors.indigo),),
onPressed: ()async{
if(selected!=prefs.getString(keyClass.cabang_id)){
@@ -273,7 +274,7 @@ class _HomePageState extends State {
// }).toList(),
// ),
// actions: [
-// FlatButton(
+// TextButton(
// child: Text('OK'),
// onPressed: ()async{
// if(selected!=prefs.getString(keyClass.cabang_id)){
@@ -352,7 +353,8 @@ class _HomePageState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/4.8,
+ // height: MediaQuery.of(context).size.height/4.8,
+ height:220,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -389,7 +391,7 @@ class _HomePageState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('Exit',style: TextStyle(color: Colors.indigo),),
onPressed: ()async{
Navigator.pop(context);
@@ -397,7 +399,7 @@ class _HomePageState extends State {
exit(0);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel',style: TextStyle(color: Colors.indigo),),
onPressed: (){
Navigator.pop(context);
@@ -488,7 +490,8 @@ class _HomePageState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/3.2,
+ height:220,
+ // height: MediaQuery.of(context).size.height/3.2,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -543,7 +546,7 @@ class _HomePageState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('OK',style: TextStyle(color: Colors.indigo),),
onPressed: (){
prefs.setString(keyClass.hostAddress,(hostAddress.text=='')?'https://unitstocksbackend.thamringroup.web.id':hostAddress.text);
@@ -569,7 +572,7 @@ class _HomePageState extends State {
// },
// ),
// actions: [
-// FlatButton(
+// TextButton(
// child: Text('OK'),
// onPressed: (){
// prefs.setString(keyClass.hostAddress,(hostAddress.text=='')?'https://unitstocksbackend.thamringroup.web.id':hostAddress.text);
@@ -639,13 +642,13 @@ class _HomePageState extends State {
title: Text("Get Data Units?"),
content: Text('Fetch data unit for stocking'),
actions: [
- FlatButton(
+ TextButton(
child: Text('Proceed'),
onPressed: (){
Navigator.pop(context,true);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){
Navigator.pop(context,false);
@@ -908,13 +911,13 @@ class _HomePageState extends State {
title: Text('Process Data ?'),
content: Text('Proceed to unpack the uploaded data.'),
actions: [
- FlatButton(
+ TextButton(
child: Text('Proceed'),
onPressed: ()async{
Navigator.pop(context,true);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){Navigator.pop(context,false);},
)
@@ -971,13 +974,13 @@ class _HomePageState extends State {
title: Text('Submit Data ?'),
content: Text('Submit the uploaded data.'),
actions: [
- FlatButton(
+ TextButton(
child: Text('Submit'),
onPressed: ()async{
Navigator.pop(context,true);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){Navigator.pop(context,false);},
)
diff --git a/lib/login_page.dart b/lib/login_page.dart
index 6481dc7..61585ab 100644
--- a/lib/login_page.dart
+++ b/lib/login_page.dart
@@ -52,13 +52,14 @@ class _LoginPageState extends State {
Widget build(BuildContext context) {
// if(prefs.getBool(keyClass.logged_in)==null||!prefs.getBool(keyClass.logged_in)){
return Scaffold(
+ resizeToAvoidBottomInset: true,
body: WillPopScope(
onWillPop: ()async{
if(prefs.getBool(keyClass.logged_in)==null||!prefs.getBool(keyClass.logged_in)){
await showDialog(context: context,builder: (context)=>AlertDialog(
content: Text('Exit the app?'),
actions: [
- FlatButton(
+ TextButton(
child: Text('Exit'),
onPressed: ()async{
Navigator.pop(context);
@@ -66,7 +67,7 @@ class _LoginPageState extends State {
exit(0);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){
Navigator.pop(context);
@@ -114,7 +115,7 @@ class _LoginPageState extends State {
},
),
actions: [
- FlatButton(
+ TextButton(
child: Text('OK'),
onPressed: (){
prefs.setString(keyClass.hostAddress,(hostAddress.text=='')?'https://unitstocksbackend.thamringroup.web.id':hostAddress.text);
@@ -187,14 +188,16 @@ class _LoginPageState extends State {
),
),
SizedBox(height: 30,),
- FlatButton(
+ TextButton(
onPressed: Login,
- padding: EdgeInsets.all(15),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(100.0),
- side: BorderSide(color: Colors.indigo)
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.indigo,
+ padding: EdgeInsets.all(15),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(100.0),
+ side: BorderSide(color: Colors.indigo)
+ ),
),
- color: Colors.indigo,
child: Container(width: MediaQuery.of(context).size.width*0.7,child: Text('Login',textAlign: TextAlign.center,style: TextStyle(color: Colors.white,fontSize: 21),)),
)
],
@@ -289,7 +292,7 @@ class _LoginPageState extends State {
children: [
ButtonTheme(
minWidth: 10,
- child: FlatButton(
+ child: TextButton(
onPressed: (){
prefs.setString(keyClass.cabang_id, selected);
Navigator.pushNamed(context, '/home');
@@ -297,7 +300,7 @@ class _LoginPageState extends State {
child: Text('Set',style: TextStyle(color: Colors.indigo),),
),
),
- FlatButton(
+ TextButton(
onPressed: (){
setState(() {
prefs.setBool(keyClass.logged_in, false);
@@ -407,7 +410,7 @@ class _LoginPageState extends State {
// children: [
// ButtonTheme(
// minWidth: 10,
-// child: FlatButton(
+// child: TextButton(
// onPressed: (){
// prefs.setString(keyClass.cabang_id, selected);
// Navigator.pushNamed(context, '/home');
@@ -415,7 +418,7 @@ class _LoginPageState extends State {
// child: Text('Set',style: TextStyle(color: Colors.indigo),),
// ),
// ),
-// FlatButton(
+// TextButton(
// onPressed: (){
// setState(() {
// prefs.setBool(keyClass.logged_in, false);
diff --git a/lib/main.dart b/lib/main.dart
index d5f6bc4..53f20db 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,6 +1,8 @@
import 'dart:async';
+import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
+import 'package:http/http.dart';
import 'package:unitstocks/Util/Prefs.dart';
import 'package:unitstocks/login_page.dart';
import 'home_page.dart';
@@ -10,15 +12,25 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'package:location/location.dart';
import 'Util/Util.dart';
+
SharedPreferences prefs;
Location location = Location();
StreamSubscription locationStream;
LocationData currentPosisiton;
Util util = new Util();
+Client http = new Client();
+SecurityContext clientContext;
+
+registerCert()async{
+ ByteData bytes = await rootBundle.load('cert/isrgrootx1.pem');
+ clientContext = new SecurityContext()
+ ..setTrustedCertificatesBytes(bytes.buffer.asUint8List());
+}
+
void main() async{
WidgetsFlutterBinding.ensureInitialized();
prefs = await SharedPreferences.getInstance();
- location.changeSettings(accuracy: LocationAccuracy.high);
+ await registerCert();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(new MyApp());
diff --git a/lib/stocking.dart b/lib/stocking.dart
index 56d8f91..a76b236 100644
--- a/lib/stocking.dart
+++ b/lib/stocking.dart
@@ -173,7 +173,7 @@ class _StockingState extends State with SingleTickerProviderStateMixin
),
),
actions: [
- FlatButton(
+ TextButton(
onPressed: ()async{await scan();await loadUnit();},
child: Icon(Icons.select_all,color:Colors.grey),
)
diff --git a/lib/unit_details.dart b/lib/unit_details.dart
index c6f5a61..bf262f5 100644
--- a/lib/unit_details.dart
+++ b/lib/unit_details.dart
@@ -1,6 +1,4 @@
-import 'dart:io';
import 'dart:typed_data';
-import 'package:flutter/services.dart';
import 'Util/UnitModel.dart';
import 'Util/photo_viewer.dart';
import 'package:flutter/cupertino.dart';
@@ -10,7 +8,6 @@ import 'Util/DBHelper.dart';
import 'Util/Util.dart';
import 'main.dart';
import 'package:intl/intl.dart';
-//import 'package:autocomplete_textfield/autocomplete_textfield.dart';
class UnitDetails extends StatefulWidget {
Unit unit;
@@ -127,7 +124,7 @@ class _UnitDetailsState extends State {
//// loadTipe();
// }
return Scaffold(
- resizeToAvoidBottomPadding: true,
+ resizeToAvoidBottomInset: true,
appBar: AppBar(
backgroundColor: Colors.transparent,
elevation: 0.0,
@@ -157,7 +154,8 @@ class _UnitDetailsState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/4.8,
+ height:220,
+ // height: MediaQuery.of(context).size.height/4.8,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -194,7 +192,7 @@ class _UnitDetailsState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('Proceed'),
// color: Colors.red,
onPressed: (){
@@ -202,7 +200,7 @@ class _UnitDetailsState extends State {
Navigator.pop(context);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
// color: Colors.grey,
onPressed: (){
@@ -242,7 +240,8 @@ class _UnitDetailsState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/4.8,
+ height:220,
+ // height: MediaQuery.of(context).size.height/4.8,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -279,14 +278,14 @@ class _UnitDetailsState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('Back',style: TextStyle(color: Colors.indigo),),
onPressed: (){
Navigator.pop(context);
Navigator.pop(context);
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel',style: TextStyle(color: Colors.indigo)),
onPressed: (){
Navigator.pop(context);
@@ -367,7 +366,7 @@ class _UnitDetailsState extends State {
// },
// ),
// actions: [
-// FlatButton(
+// TextButton(
// child: Text('Done'),
// onPressed: ()async{
// jenisImages.add(selected);
@@ -375,7 +374,7 @@ class _UnitDetailsState extends State {
// Navigator.pop(context,true);
// },
// ),
-// FlatButton(
+// TextButton(
// child: Text('Cancel'),
// onPressed: (){
// Navigator.pop(context,false);
@@ -387,11 +386,10 @@ class _UnitDetailsState extends State {
// }
// );
// if (selected){
- File temp = await ImagePicker.pickImage(source: ImageSource.camera,maxWidth: 800,imageQuality: 80);
+ XFile temp = await ImagePicker().pickImage(source: ImageSource.camera,maxWidth: 800,imageQuality: 80);
if(temp!=null){
isChanged = true;
- blobList[index].blob_file = temp.readAsBytesSync();
- temp.deleteSync();
+ blobList[index].blob_file = await temp.readAsBytes();
// if(widget.idInsert!=null) {
// blobIds.add(null);
// isChanged = true;
@@ -608,7 +606,10 @@ class _UnitDetailsState extends State {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- FlatButton(
+ TextButton(
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.green,
+ ),
child: Text((widget.unit.flag=='FALSE')?'Add':'Save'),
onPressed: ()async{
bool succeed = false;
@@ -758,9 +759,9 @@ class _UnitDetailsState extends State {
// util.showFlushbar(context,errMsg);
// }
},
- color: Colors.green,
+
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: ()async {
if(widget.unit.flag=='TRUE'){
@@ -782,7 +783,8 @@ class _UnitDetailsState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/4.8,
+ height:220,
+ // height: MediaQuery.of(context).size.height/4.8,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -819,14 +821,14 @@ class _UnitDetailsState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('Proceed'),
onPressed: (){
Navigator.pop(context);
Navigator.popUntil(context,ModalRoute.withName('/stocking'));
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
// color: Colors.grey,
onPressed: (){
@@ -866,7 +868,8 @@ class _UnitDetailsState extends State {
],
borderRadius: BorderRadius.circular(5)
),
- height: MediaQuery.of(context).size.height/4.8,
+ height:220,
+ // height: MediaQuery.of(context).size.height/4.8,
width: MediaQuery.of(context).size.width*0.75,
child: Column(
children: [
@@ -903,14 +906,14 @@ class _UnitDetailsState extends State {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- FlatButton(
+ TextButton(
child: Text('Back'),
onPressed: (){
Navigator.pop(context);
Navigator.popUntil(context,ModalRoute.withName('/stocking'));
},
),
- FlatButton(
+ TextButton(
child: Text('Cancel'),
onPressed: (){
Navigator.pop(context);
@@ -930,7 +933,9 @@ class _UnitDetailsState extends State {
else Navigator.pop(context);
}
},
- color: Colors.redAccent,
+ style: TextButton.styleFrom(
+ backgroundColor: Colors.redAccent,
+ ),
)
],
)
diff --git a/local_plugin/location-3.0.2/.gitignore b/local_plugin/location-3.0.2/.gitignore
deleted file mode 100644
index 281c6e8..0000000
--- a/local_plugin/location-3.0.2/.gitignore
+++ /dev/null
@@ -1,43 +0,0 @@
-.atom/
-.idea/
-.vscode/
-
-.packages
-.pub/
-.dart_tool/
-pubspec.lock
-flutter_export_environment.sh
-
-examples/all_plugins/pubspec.yaml
-
-Podfile
-Podfile.lock
-Pods/
-.symlinks/
-**/Flutter/App.framework/
-**/Flutter/Flutter.framework/
-**/Flutter/Generated.xcconfig
-**/Flutter/flutter_assets/
-ServiceDefinitions.json
-xcuserdata/
-*.xcworkspace
-**/DerivedData/
-
-local.properties
-keystore.properties
-.gradle/
-gradlew
-gradlew.bat
-gradle-wrapper.jar
-.flutter-plugins-dependencies
-*.iml
-
-GeneratedPluginRegistrant.h
-GeneratedPluginRegistrant.m
-GeneratedPluginRegistrant.java
-build/
-.flutter-plugins
-
-.project
-.classpath
-.settings
diff --git a/local_plugin/location-3.0.2/CHANGELOG.md b/local_plugin/location-3.0.2/CHANGELOG.md
deleted file mode 100644
index 631d71a..0000000
--- a/local_plugin/location-3.0.2/CHANGELOG.md
+++ /dev/null
@@ -1,162 +0,0 @@
-## [3.0.2] 3rd April 2020
-
-- Improve code coverage
-- Fix a bug when requesting permission using an intent (thanks to kennethj)
-- Fix a bug when onDetachedFromActivity is called (thanks to creativepsyco)
-
-## [3.0.1] 27th March 2020
-
-- Fix a crash happening during iOS build
-
-## [3.0.0] 26th March 2020
-
-- Add Web and macOS as new supported platforms (huge thanks to long1eu)
-- [BREAKING] Enums are now following Dart guidelines.
-- [BREAKING] _onLocationChanged_ is now a getter to follow Dart guidelines.
-
-## [2.5.4] 11st March 2020
-
-- Update documentation
-- Fix: Airplane mode was preventing location from being requested
-- Fix: Not crashing when activity is not set on Android
-
-## [2.5.3] 26th February 2020
-
-- Improve code coverage
-- Update documentation
-
-## [2.5.2] 25th February 2020
-
-- Fix crash on pre-1.12 projects
-- Align PermissionStatus on iOS with Android
-
-## [2.5.1] 23rd February 2020
-
-- Fix SDK version
-
-## [2.5.0] 23rd February 2020
-
-- [BREAKING] The `requestPermission` and `hasPermission` are now returning PermissionStatus enum.
-- Upgrade to Android Embedding V2 (follow https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects if the plugin isn't working after upgrade)
-- Resolve getLocation when service is disabled thanks to nicowernli
-- Update example app
-- Fix bugs leading to non returning code
-- `getLocation` now throws properly
-- `pub.dev` now states that the plugin is not compatible with Flutter Web (yet)
-
-## [2.4.0] 14th February 2020
-
-- Align timestamp in Android and iOS, previously the iOS timestamp was in seconds instead of milliseconds. Thanks to 781flyingdutchman.
-
-## [2.3.7] 08th January 2020
-
-- Fix bug where requestPermission is called after the user has already denied the system location dialog, then this method call would never return.
-
-## [2.3.6] 07th January 2020
-
-- Fix ClassCastException errors on some Android phones when requesting Location status.
-
-## [2.3.5] 10th April 2019
-
-- Fix incompatibily with headless plugins thanks to ehhc
-- Fix error with iOS when permission already given
-- Add Google maps example
-
-## [2.3.4] 8th April 2019
-
-- Fix error on Android 21 API thanks to noordawod
-- Update Google API version
-
-## [2.3.3] 31th March 2019
-
-- Align altitude on Sea Level when available on Android (matching iOS altitude).
-
-## [2.3.2] 27th March 2019
-
-- Remove GPS limitation on Android
-
-## [2.3.1] 25th March 2019
-
-- Fixes README
-- Fixes requestPermission not responding the correct result on iOS
-
-## [2.3.0] 22nd March 2019
-
-- Update example App with proper cancel
-- Add possibility to set accuracy, interval and minimum notification ditance of the requests.
-- Add LocationAccuracy object
-
-## [2.2.0] 19th March 2019
-
-- Actually updating locatino when using getLocation (not only relying on LastLocation)
-- Add timestamp to LocationData
-- Add serviceEnabled method to check whether Location Service is enabled.
-- Add requestService method to ask the user to activate the location service.
-- Fix continuous callback heading
-
-## [2.1.0] 16th Match 2019
-
-- iOS permission should be closer to Android permission behaviour thanks to PerrchicK
-- Adding requestPermission(), to manually request permission
-- Several feature fixed for less crash when using the plugin
-- Code Cleanup
-- Update Readme and add a warning for the location bug in iOS simulator
-
-## [2.0.0] 25th January 2019
-
-- Code cleanup
-- BREAKING CHANGE: Change Dart API to return structured data rather than a map.
-
-## [1.4.0] 21st August 2018
-
-- Add lazy permission request thanks to yathit
-- Add hasPermission() thanks to vagrantrobbie
-- Bug correction thanks to jalpedersen
-- Add more examples
-
-## [1.3.4] 4th June 2018
-
-- Fix crash for Android API pre 27 thanks to matthewtsmith.
-
-## [1.3.3] 30th May 2018
-
-- Correct implementation of iOS plugin to match Android behaviour. No need to call getLocation
- to get permissions for location callbacks.
-
-## [1.3.2] 30th May 2018
-
-- Change implementation to api in build.gradle in order to solve incompatibilities between
- GMS versions thanks to luccascorrea
-
-## [1.3.1] 29th May 2018
-
-- Added speed and speed_accuracy (only Android truly discover speed accuracy, so its always 0 for now on iOS)
-- Solved a crash
-
-## [1.3.0] 27th May 2018
-
-- Make it compatible with Firebase thanks to quangIO
-- Resolve runtime error exception thanks to jharrison902
-- Update gitignore thanks to bcko
-
-## [1.2.0] 5th April 2018
-
-- Permissions denied on Android handled thanks to g123k
-- Dart 2 update thanks to efortuna
-
-## [1.1.6] - 19th Octobre 2017.
-
-- iOS code from Swift to Objective-C thanks to fluff
-
-## [1.1.1] - 20th July 2017.
-
-- Fixes for iOS result's format.
-
-## [1.1.0] - 17th July 2017.
-
-- Added permission check for Android 6+ (thanks netdur). Still no callback when permissions granted
- so aiming SDK 21 is safer.
-
-## [1.0.0] - 7th July 2017.
-
-- Initial Release.
diff --git a/local_plugin/location-3.0.2/LICENSE b/local_plugin/location-3.0.2/LICENSE
deleted file mode 100644
index 5bd7d0a..0000000
--- a/local_plugin/location-3.0.2/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2017, Guillaume Bernos.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/local_plugin/location-3.0.2/README.md b/local_plugin/location-3.0.2/README.md
deleted file mode 100644
index 43ee055..0000000
--- a/local_plugin/location-3.0.2/README.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# Flutter Location Plugin
-
-[](https://pub.dartlang.org/packages/location) 
-[](https://codecov.io/gh/Lyokone/flutterlocation)
-
-This plugin for [Flutter](https://flutter.io)
-handles getting location on Android and iOS. It also provides callbacks when location is changed.
-
-
-
-
-
-## Getting Started
-
-Add this to your package's `pubspec.yaml` file:
-
-```yaml
-dependencies:
- location: ^3.0.0
-```
-
-### Android
-
-With Flutter 1.12, all the dependencies are automatically added to your project.
-If your project was created before Flutter 1.12, you may need to follow [this](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects).
-
-### iOS
-
-And to use it in iOS, you have to add this permission in Info.plist :
-
-```xml
-NSLocationWhenInUseUsageDescription
-NSLocationAlwaysUsageDescription
-```
-
-### Web
-
-Nothing to do, the plugin works directly out of box.
-
-### macOS
-
-Ensure that the application is properly "sandboxed" and that the location is enabled. You can do this in Xcode with the following steps:
-
-1. In the project navigator, click on your application's target. This should bring up a view with tabs such as "General", "Capabilities", "Resource Tags", etc.
-1. Click on the "Capabilities" tab. This will give you a list of items such as "App Groups", "App Sandbox" and so on. Each item will have an "On/Off" button.
-1. Turn on the "App Sandbox" item and press the ">" button on the left to show the sandbox stuff.
-1. In the "App Data" section, select "Location".
-
-Add this permission in Info.plist :
-
-```xml
-NSLocationWhenInUseUsageDescription
-NSLocationAlwaysUsageDescription
-```
-
-## Usage
-
-Then you just have to import the package with
-
-```dart
-import 'package:location/location.dart';
-```
-
-In order to request location, you should always check manually Location Service status and Permission status.
-
-```dart
-Location location = new Location();
-
-bool _serviceEnabled;
-PermissionStatus _permissionGranted;
-LocationData _locationData;
-
-_serviceEnabled = await location.serviceEnabled();
-if (!_serviceEnabled) {
- _serviceEnabled = await location.requestService();
- if (!_serviceEnabled) {
- return;
- }
-}
-
-_permissionGranted = await location.hasPermission();
-if (_permissionGranted == PermissionStatus.denied) {
- _permissionGranted = await location.requestPermission();
- if (_permissionGranted != PermissionStatus.granted) {
- return;
- }
-}
-
-_locationData = await location.getLocation();
-```
-
-You can also get continuous callbacks when your position is changing:
-
-```dart
-location.onLocationChanged.listen((LocationData currentLocation) {
- // Use current location
-});
-```
-
-Be sure to check the example project to get other code samples.
-
-## Public Methods Summary
-
-| Return | Description |
-| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| Future\ | **requestPermission()**
Request the Location permission. Return a PermissionStatus to know if the permission has been granted. |
-| Future\ | **hasPermission()**
Return a PermissionStatus to know the state of the location permission. |
-| Future\ | **serviceEnabled()**
Return a boolean to know if the Location Service is enabled or if the user manually deactivated it. |
-| Future\ | **requestService()**
Show an alert dialog to request the user to activate the Location Service. On iOS, will only display an alert due to Apple Guidelines, the user having to manually go to Settings. Return a boolean to know if the Location Service has been activated (always `false` on iOS). |
-| Future\ | **changeSettings(LocationAccuracy accuracy = LocationAccuracy.HIGH, int interval = 1000, double distanceFilter = 0)**
Will change the settings of futur requests. `accuracy`will describe the accuracy of the request (see the LocationAccuracy object). `interval` will set the desired interval for active location updates, in milliseconds (only affects Android). `distanceFilter` set the minimum displacement between location updates in meters. |
-| Future\ | **getLocation()**
Allow to get a one time position of the user. It will try to request permission if not granted yet and will throw a `PERMISSION_DENIED` error code if permission still not granted. |
-| Stream\ | **onLocationChanged**
Get the stream of the user's location. It will try to request permission if not granted yet and will throw a `PERMISSION_DENIED` error code if permission still not granted. |
-
-You should try to manage permission manually with `requestPermission()` to avoid error, but plugin will try handle some cases for you.
-
-## Objects
-
-```dart
-class LocationData {
- final double latitude; // Latitude, in degrees
- final double longitude; // Longitude, in degrees
- final double accuracy; // Estimated horizontal accuracy of this location, radial, in meters
- final double altitude; // In meters above the WGS 84 reference ellipsoid
- final double speed; // In meters/second
- final double speedAccuracy; // In meters/second, always 0 on iOS
- final double heading; //Heading is the horizontal direction of travel of this device, in degrees
- final double time; //timestamp of the LocationData
-}
-
-
-enum LocationAccuracy {
- powerSave, // To request best accuracy possible with zero additional power consumption,
- low, // To request "city" level accuracy
- balanced, // To request "block" level accuracy
- high, // To request the most accurate locations available
- navigation // To request location for navigation usage (affect only iOS)
-}
-
-// Status of a permission request to use location services.
-enum PermissionStatus {
- /// The permission to use location services has been granted.
- granted,
- // The permission to use location services has been denied by the user. May have been denied forever on iOS.
- denied,
- // The permission to use location services has been denied forever by the user. No dialog will be displayed on permission request.
- deniedForever
-}
-
-```
-
-Note: you can convert the timestamp into a `DateTime` with: `DateTime.fromMillisecondsSinceEpoch(locationData.time.toInt())`
-
-## Feedback
-
-Please feel free to [give me any feedback](https://github.com/Lyokone/flutterlocation/issues)
-helping support this plugin !
diff --git a/local_plugin/location-3.0.2/android/build.gradle b/local_plugin/location-3.0.2/android/build.gradle
deleted file mode 100644
index c39e5c6..0000000
--- a/local_plugin/location-3.0.2/android/build.gradle
+++ /dev/null
@@ -1,42 +0,0 @@
-group 'com.lyokone.location'
-version '1.0-SNAPSHOT'
-
-buildscript {
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
- }
-}
-
-rootProject.allprojects {
- repositories {
- google()
- jcenter()
-
- }
-}
-
-
-
-
-apply plugin: 'com.android.library'
-
-android {
- compileSdkVersion 28
-
- defaultConfig {
- minSdkVersion 16
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- lintOptions {
- disable 'InvalidPackage'
- }
-}
-
-dependencies {
- api 'com.google.android.gms:play-services-location:16.+'
-}
diff --git a/local_plugin/location-3.0.2/android/gradle.properties b/local_plugin/location-3.0.2/android/gradle.properties
deleted file mode 100644
index 53ae0ae..0000000
--- a/local_plugin/location-3.0.2/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-android.enableJetifier=true
-android.useAndroidX=true
-org.gradle.jvmargs=-Xmx1536M
diff --git a/local_plugin/location-3.0.2/android/gradle/wrapper/gradle-wrapper.properties b/local_plugin/location-3.0.2/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 092daf3..0000000
--- a/local_plugin/location-3.0.2/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Sun Feb 16 18:22:06 CET 2020
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
diff --git a/local_plugin/location-3.0.2/android/settings.gradle b/local_plugin/location-3.0.2/android/settings.gradle
deleted file mode 100644
index 82139d0..0000000
--- a/local_plugin/location-3.0.2/android/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'location'
diff --git a/local_plugin/location-3.0.2/android/src/main/AndroidManifest.xml b/local_plugin/location-3.0.2/android/src/main/AndroidManifest.xml
deleted file mode 100644
index 862aa42..0000000
--- a/local_plugin/location-3.0.2/android/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/FlutterLocation.java b/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/FlutterLocation.java
deleted file mode 100644
index a06c559..0000000
--- a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/FlutterLocation.java
+++ /dev/null
@@ -1,425 +0,0 @@
-package com.lyokone.location;
-
-import android.Manifest;
-import android.annotation.TargetApi;
-import android.app.Activity;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentSender;
-import android.content.pm.PackageManager;
-import android.location.Location;
-import android.location.LocationManager;
-import android.location.OnNmeaMessageListener;
-import android.os.Build;
-import android.os.Looper;
-import android.util.Log;
-
-import com.google.android.gms.common.api.ApiException;
-import com.google.android.gms.common.api.ResolvableApiException;
-import com.google.android.gms.location.FusedLocationProviderClient;
-import com.google.android.gms.location.LocationCallback;
-import com.google.android.gms.location.LocationRequest;
-import com.google.android.gms.location.LocationResult;
-import com.google.android.gms.location.LocationServices;
-import com.google.android.gms.location.LocationSettingsRequest;
-import com.google.android.gms.location.LocationSettingsResponse;
-import com.google.android.gms.location.LocationSettingsStatusCodes;
-import com.google.android.gms.location.SettingsClient;
-import com.google.android.gms.tasks.OnFailureListener;
-import com.google.android.gms.tasks.OnSuccessListener;
-
-import java.util.HashMap;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.core.app.ActivityCompat;
-import io.flutter.plugin.common.EventChannel.EventSink;
-import io.flutter.plugin.common.MethodChannel.Result;
-import io.flutter.plugin.common.PluginRegistry;
-
-class FlutterLocation
- implements PluginRegistry.RequestPermissionsResultListener, PluginRegistry.ActivityResultListener {
- private static final String TAG = "FlutterLocation";
-
- private final Context applicationContext;
-
- @Nullable
- public Activity activity;
-
- private static final int REQUEST_PERMISSIONS_REQUEST_CODE = 34;
- private static final int REQUEST_CHECK_SETTINGS = 0x1;
-
- private static final int GPS_ENABLE_REQUEST = 0x1001;
-
- public FusedLocationProviderClient mFusedLocationClient;
- private SettingsClient mSettingsClient;
- private static LocationRequest mLocationRequest;
- private LocationSettingsRequest mLocationSettingsRequest;
- public LocationCallback mLocationCallback;
-
- @TargetApi(Build.VERSION_CODES.N)
- private OnNmeaMessageListener mMessageListener;
-
- private Double mLastMslAltitude;
-
- // Parameters of the request
- private static long updateIntervalMilliseconds = 5000;
- private static long fastestUpdateIntervalMilliseconds = updateIntervalMilliseconds / 2;
- private static Integer locationAccuracy = LocationRequest.PRIORITY_HIGH_ACCURACY;
- private static float distanceFilter = 0f;
-
- public EventSink events;
-
- // Store result until a permission check is resolved
- public Result result;
-
- // Store result until a location is getting resolved
- public Result getLocationResult;
-
- private int locationPermissionState;
-
- private boolean waitingForPermission = false;
- private LocationManager locationManager;
-
- public HashMap mapFlutterAccuracy = new HashMap() {
- {
- put(0, LocationRequest.PRIORITY_NO_POWER);
- put(1, LocationRequest.PRIORITY_LOW_POWER);
- put(2, LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
- put(3, LocationRequest.PRIORITY_HIGH_ACCURACY);
- put(4, LocationRequest.PRIORITY_HIGH_ACCURACY);
- }
- };
-
- FlutterLocation(Context applicationContext, @Nullable Activity activity) {
- this.applicationContext = applicationContext;
- this.activity = activity;
- }
-
- FlutterLocation(PluginRegistry.Registrar registrar) {
- this(registrar.context(), registrar.activity());
- registrar.addRequestPermissionsResultListener(this);
- }
-
- void setActivity(@Nullable Activity activity) {
- this.activity = activity;
- mFusedLocationClient = LocationServices.getFusedLocationProviderClient(activity);
- mSettingsClient = LocationServices.getSettingsClient(activity);
- locationManager = (LocationManager) activity.getSystemService(Context.LOCATION_SERVICE);
-
- createLocationCallback();
- createLocationRequest();
- buildLocationSettingsRequest();
- }
-
- @Override
- public boolean onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
- return onRequestPermissionsResultHandler(requestCode, permissions, grantResults);
- }
-
- public boolean onRequestPermissionsResultHandler(int requestCode, String[] permissions, int[] grantResults) {
- if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE && permissions.length == 1
- && permissions[0].equals(Manifest.permission.ACCESS_FINE_LOCATION)) {
- if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
- // Checks if this permission was automatically triggered by a location request
- if (getLocationResult != null || events != null) {
- startRequestingLocation();
- }
- if (result != null) {
- result.success(1);
- result = null;
- }
- } else {
- if (!shouldShowRequestPermissionRationale()) {
- sendError("PERMISSION_DENIED_NEVER_ASK",
- "Location permission denied forever - please open app settings", null);
- if (result != null) {
- result.success(2);
- result = null;
- }
- } else {
- sendError("PERMISSION_DENIED", "Location permission denied", null);
- if (result != null) {
- result.success(0);
- result = null;
- }
- }
- }
- return true;
- }
- return false;
-
- }
-
- @Override
- public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
- if (result == null) {
- return false;
- }
- switch (requestCode) {
- case GPS_ENABLE_REQUEST:
- if (resultCode == Activity.RESULT_OK) {
- result.success(1);
- } else {
- result.success(0);
- }
- break;
- case REQUEST_CHECK_SETTINGS:
- if (resultCode == Activity.RESULT_OK) {
- startRequestingLocation();
- return true;
- }
-
- result.error("SERVICE_STATUS_DISABLED", "Failed to get location. Location services disabled", null);
- return false;
- default:
- return false;
- }
- return true;
- }
-
- public void changeSettings(Integer locationAccuracy, Long updateIntervalMilliseconds,
- Long fastestUpdateIntervalMilliseconds, Float distanceFilter) {
- this.locationAccuracy = locationAccuracy;
- this.updateIntervalMilliseconds = updateIntervalMilliseconds;
- this.fastestUpdateIntervalMilliseconds = fastestUpdateIntervalMilliseconds;
- this.distanceFilter = distanceFilter;
-
- createLocationCallback();
- createLocationRequest();
- buildLocationSettingsRequest();
- }
-
- private void sendError(String errorCode, String errorMessage, Object errorDetails) {
- if (getLocationResult != null) {
- getLocationResult.error(errorCode, errorMessage, errorDetails);
- getLocationResult = null;
- }
- if (events != null) {
- events.error(errorCode, errorMessage, errorDetails);
- events = null;
- }
- }
-
- /**
- * Creates a callback for receiving location events.
- */
- private void createLocationCallback() {
- mLocationCallback = new LocationCallback() {
- @Override
- public void onLocationResult(LocationResult locationResult) {
- super.onLocationResult(locationResult);
- Location location = locationResult.getLastLocation();
- HashMap loc = new HashMap<>();
- loc.put("latitude", location.getLatitude());
- loc.put("longitude", location.getLongitude());
- loc.put("accuracy", (double) location.getAccuracy());
-
- // Using NMEA Data to get MSL level altitude
- if (mLastMslAltitude == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
- loc.put("altitude", location.getAltitude());
- } else {
- loc.put("altitude", mLastMslAltitude);
- }
-
- loc.put("speed", (double) location.getSpeed());
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- loc.put("speed_accuracy", (double) location.getSpeedAccuracyMetersPerSecond());
- }
- loc.put("heading", (double) location.getBearing());
- loc.put("time", (double) location.getTime());
-
- if (getLocationResult != null) {
- getLocationResult.success(loc);
- getLocationResult = null;
- }
- if (events != null) {
- events.success(loc);
- } else {
- mFusedLocationClient.removeLocationUpdates(mLocationCallback);
- }
- }
- };
-
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- mMessageListener = new OnNmeaMessageListener() {
- @Override
- public void onNmeaMessage(String message, long timestamp) {
- if (message.startsWith("$")) {
- String[] tokens = message.split(",");
- String type = tokens[0];
-
- // Parse altitude above sea level, Detailed description of NMEA string here
- // http://aprs.gids.nl/nmea/#gga
- if (type.startsWith("$GPGGA") && tokens.length > 9) {
- if (!tokens[9].isEmpty()) {
- mLastMslAltitude = Double.parseDouble(tokens[9]);
- }
- }
- }
- }
- };
- }
- }
-
- /**
- * Sets up the location request. Android has two location request settings:
- */
- private void createLocationRequest() {
- this.mLocationRequest = LocationRequest.create();
-
- this.mLocationRequest.setInterval(this.updateIntervalMilliseconds);
- this.mLocationRequest.setFastestInterval(this.fastestUpdateIntervalMilliseconds);
- this.mLocationRequest.setPriority(this.locationAccuracy);
- this.mLocationRequest.setSmallestDisplacement(this.distanceFilter);
- }
-
- /**
- * Uses a
- * {@link com.google.android.gms.location.LocationSettingsRequest.Builder} to
- * build a {@link com.google.android.gms.location.LocationSettingsRequest} that
- * is used for checking if a device has the needed location settings.
- */
- private void buildLocationSettingsRequest() {
- LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();
- builder.addLocationRequest(mLocationRequest);
- mLocationSettingsRequest = builder.build();
- }
-
- /**
- * Return the current state of the permissions needed.
- */
- public boolean checkPermissions() {
- this.locationPermissionState = ActivityCompat.checkSelfPermission(activity,
- Manifest.permission.ACCESS_FINE_LOCATION);
- return this.locationPermissionState == PackageManager.PERMISSION_GRANTED;
- }
-
- public void requestPermissions() {
- if (checkPermissions()) {
- result.success(1);
- return;
- }
- ActivityCompat.requestPermissions(activity, new String[] { Manifest.permission.ACCESS_FINE_LOCATION },
- REQUEST_PERMISSIONS_REQUEST_CODE);
- }
-
- public boolean shouldShowRequestPermissionRationale() {
- return ActivityCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.ACCESS_FINE_LOCATION);
- }
-
- public boolean checkServiceEnabled(final Result result) {
- boolean gps_enabled = false;
- boolean network_enabled = false;
-
- try {
- gps_enabled = this.locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
- network_enabled = this.locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
- } catch (Exception ex) {
- result.error("SERVICE_STATUS_ERROR", "Location service status couldn't be determined", null);
- return false;
- }
- if (gps_enabled && network_enabled) {
- if (result != null) {
- result.success(1);
- }
- return true;
-
- } else {
- if (result != null) {
- result.success(0);
- }
- return false;
- }
- }
-
- public void requestService(final Result result) {
- if (this.checkServiceEnabled(null)) {
- result.success(1);
- return;
- }
- this.result = result;
- mSettingsClient.checkLocationSettings(mLocationSettingsRequest).addOnFailureListener(activity,
- new OnFailureListener() {
- @Override
- public void onFailure(@NonNull Exception e) {
- if (e instanceof ResolvableApiException) {
- ResolvableApiException rae = (ResolvableApiException) e;
- int statusCode = rae.getStatusCode();
- switch (statusCode) {
- case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:
- try {
- // Show the dialog by calling startResolutionForResult(), and check the
- // result in onActivityResult().
- rae.startResolutionForResult(activity, GPS_ENABLE_REQUEST);
- } catch (IntentSender.SendIntentException sie) {
- result.error("SERVICE_STATUS_ERROR", "Could not resolve location request",
- null);
- }
- break;
- case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:
- result.error("SERVICE_STATUS_DISABLED",
- "Failed to get location. Location services disabled", null);
- break;
- }
- } else {
- // This should not happen according to Android documentation but it has been
- // observed on some phones.
- result.error("SERVICE_STATUS_ERROR", "Unexpected error type received", null);
- }
- }
- });
- }
-
- public void startRequestingLocation() {
- mSettingsClient.checkLocationSettings(mLocationSettingsRequest)
- .addOnSuccessListener(activity, new OnSuccessListener() {
- @Override
- public void onSuccess(LocationSettingsResponse locationSettingsResponse) {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- locationManager.addNmeaListener(mMessageListener);
- }
- mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback,
- Looper.myLooper());
- }
- }).addOnFailureListener(activity, new OnFailureListener() {
- @Override
- public void onFailure(@NonNull Exception e) {
- if (e instanceof ResolvableApiException) {
- ResolvableApiException rae = (ResolvableApiException) e;
- int statusCode = rae.getStatusCode();
- switch (statusCode) {
- case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:
- try {
- // Show the dialog by calling startResolutionForResult(), and check the
- // result in onActivityResult().
- rae.startResolutionForResult(activity, REQUEST_CHECK_SETTINGS);
- } catch (IntentSender.SendIntentException sie) {
- Log.i(TAG, "PendingIntent unable to execute request.");
- }
- break;
- }
- } else {
- ApiException ae = (ApiException) e;
- int statusCode = ae.getStatusCode();
- switch (statusCode) {
- case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:
- // This error code happens during AirPlane mode.
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- locationManager.addNmeaListener(mMessageListener);
- }
- mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback,
- Looper.myLooper());
- break;
- default:
- // This should not happen according to Android documentation but it has been
- // observed on some phones.
- sendError("UNEXPECTED_ERROR", e.getMessage(), null);
- break;
- }
- }
- }
- });
- }
-
-}
diff --git a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/LocationPlugin.java b/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/LocationPlugin.java
deleted file mode 100644
index 18720d5..0000000
--- a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/LocationPlugin.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package com.lyokone.location;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.util.Log;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import io.flutter.embedding.engine.plugins.FlutterPlugin;
-import io.flutter.embedding.engine.plugins.activity.ActivityAware;
-import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
-import io.flutter.plugin.common.PluginRegistry.Registrar;
-import io.flutter.plugin.common.BinaryMessenger;
-import io.flutter.plugin.common.MethodCall;
-import io.flutter.plugin.common.MethodChannel;
-import io.flutter.plugin.common.PluginRegistry;
-
-/**
- * LocationPlugin
- */
-public class LocationPlugin implements FlutterPlugin, ActivityAware {
- private static final String TAG = "LocationPlugin";
- @Nullable
- private MethodCallHandlerImpl methodCallHandler;
- @Nullable
- private StreamHandlerImpl streamHandlerImpl;
-
- @Nullable
- private FlutterLocation location;
-
- private FlutterPluginBinding pluginBinding;
- private ActivityPluginBinding activityBinding;
-
- public static void registerWith(Registrar registrar) {
- FlutterLocation flutterLocation = new FlutterLocation(registrar);
- flutterLocation.setActivity(registrar.activity());
-
- MethodCallHandlerImpl handler = new MethodCallHandlerImpl(flutterLocation);
- handler.startListening(registrar.messenger());
-
- StreamHandlerImpl streamHandlerImpl = new StreamHandlerImpl(flutterLocation);
- streamHandlerImpl.startListening(registrar.messenger());
- }
-
- @Override
- public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
- pluginBinding = binding;
-
- location = new FlutterLocation(binding.getApplicationContext(), /* activity= */ null);
- methodCallHandler = new MethodCallHandlerImpl(location);
- methodCallHandler.startListening(binding.getBinaryMessenger());
-
- streamHandlerImpl = new StreamHandlerImpl(location);
- streamHandlerImpl.startListening(binding.getBinaryMessenger());
- }
-
- @Override
- public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
- pluginBinding = null;
-
- if (methodCallHandler != null) {
- methodCallHandler.stopListening();
- methodCallHandler = null;
- }
-
- if (streamHandlerImpl != null) {
- streamHandlerImpl.stopListening();
- streamHandlerImpl = null;
- }
-
- location = null;
- }
-
- @Override
- public void onAttachedToActivity(@NonNull ActivityPluginBinding binding) {
- location.setActivity(binding.getActivity());
-
- activityBinding = binding;
- setup(pluginBinding.getBinaryMessenger(), activityBinding.getActivity(), null);
- }
-
- @Override
- public void onDetachedFromActivity() {
- tearDown();
- }
-
- @Override
- public void onDetachedFromActivityForConfigChanges() {
- onDetachedFromActivity();
- }
-
- @Override
- public void onReattachedToActivityForConfigChanges(@NonNull ActivityPluginBinding binding) {
- onAttachedToActivity(binding);
- }
-
- private void setup(final BinaryMessenger messenger, final Activity activity,
- final PluginRegistry.Registrar registrar) {
- if (registrar != null) {
- // V1 embedding setup for activity listeners.
- registrar.addActivityResultListener(location);
- registrar.addRequestPermissionsResultListener(location);
- } else {
- // V2 embedding setup for activity listeners.
- activityBinding.addActivityResultListener(location);
- activityBinding.addRequestPermissionsResultListener(location);
- }
- }
-
- private void tearDown() {
- activityBinding.removeActivityResultListener(location);
- activityBinding.removeRequestPermissionsResultListener(location);
- }
-}
diff --git a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/MethodCallHandlerImpl.java b/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/MethodCallHandlerImpl.java
deleted file mode 100644
index fdb0988..0000000
--- a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/MethodCallHandlerImpl.java
+++ /dev/null
@@ -1,134 +0,0 @@
-package com.lyokone.location;
-
-import android.os.Build;
-import android.os.Bundle;
-import android.util.Log;
-import androidx.annotation.Nullable;
-import io.flutter.plugin.common.BinaryMessenger;
-import io.flutter.plugin.common.MethodCall;
-import io.flutter.plugin.common.MethodChannel;
-import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
-import io.flutter.plugin.common.MethodChannel.Result;
-
-final class MethodCallHandlerImpl implements MethodCallHandler {
- private static final String TAG = "MethodCallHandlerImpl";
-
- private final FlutterLocation location;
- @Nullable
- private MethodChannel channel;
-
- private static final String METHOD_CHANNEL_NAME = "lyokone/location";
-
- MethodCallHandlerImpl(FlutterLocation location) {
- this.location = location;
- }
-
- @Override
- public void onMethodCall(MethodCall call, Result result) {
- if (location.activity == null) {
- result.error("NO_ACTIVITY", null, null);
- return;
- }
-
- switch (call.method) {
- case "changeSettings":
- onChangeSettings(call, result);
- break;
- case "getLocation":
- onGetLocation(result);
- break;
- case "hasPermission":
- onHasPermission(result);
- break;
- case "requestPermission":
- onRequestPermission(result);
- break;
- case "serviceEnabled":
- location.checkServiceEnabled(result);
- break;
- case "requestService":
- location.requestService(result);
- break;
- default:
- result.notImplemented();
- break;
- }
- }
-
- /**
- * Registers this instance as a method call handler on the given
- * {@code messenger}.
- */
- void startListening(BinaryMessenger messenger) {
- if (channel != null) {
- Log.wtf(TAG, "Setting a method call handler before the last was disposed.");
- stopListening();
- }
-
- channel = new MethodChannel(messenger, METHOD_CHANNEL_NAME);
- channel.setMethodCallHandler(this);
- }
-
- /**
- * Clears this instance from listening to method calls.
- */
- void stopListening() {
- if (channel == null) {
- Log.d(TAG, "Tried to stop listening when no MethodChannel had been initialized.");
- return;
- }
-
- channel.setMethodCallHandler(null);
- channel = null;
- }
-
- private void onChangeSettings(MethodCall call, Result result) {
- try {
- final Integer locationAccuracy = location.mapFlutterAccuracy.get(call.argument("accuracy"));
- final Long updateIntervalMilliseconds = new Long((int) call.argument("interval"));
- final Long fastestUpdateIntervalMilliseconds = updateIntervalMilliseconds / 2;
- final Float distanceFilter = new Float((double) call.argument("distanceFilter"));
-
- location.changeSettings(locationAccuracy, updateIntervalMilliseconds, fastestUpdateIntervalMilliseconds,
- distanceFilter);
-
- result.success(1);
- } catch (Exception e) {
- result.error("CHANGE_SETTINGS_ERROR",
- "An unexcepted error happened during location settings change:" + e.getMessage(), null);
- }
- }
-
- private void onGetLocation(Result result) {
- location.getLocationResult = result;
- if (!location.checkPermissions()) {
- location.requestPermissions();
- } else {
- location.startRequestingLocation();
- }
- }
-
- private void onHasPermission(Result result) {
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
- result.success(1);
- return;
- }
-
- if (location.checkPermissions()) {
- result.success(1);
- } else {
- result.success(0);
- }
- }
-
- private void onRequestPermission(Result result) {
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
- result.success(1);
- return;
- }
-
- location.result = result;
- location.requestPermissions();
- }
-
-}
diff --git a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/StreamHandlerImpl.java b/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/StreamHandlerImpl.java
deleted file mode 100644
index 4467d53..0000000
--- a/local_plugin/location-3.0.2/android/src/main/java/com/lyokone/location/StreamHandlerImpl.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package com.lyokone.location;
-
-import android.util.Log;
-import io.flutter.plugin.common.BinaryMessenger;
-import io.flutter.plugin.common.EventChannel;
-import io.flutter.plugin.common.EventChannel.StreamHandler;
-import io.flutter.plugin.common.EventChannel.EventSink;
-
-class StreamHandlerImpl implements StreamHandler {
- private static final String TAG = "StreamHandlerImpl";
-
- private final FlutterLocation location;
- private EventChannel channel;
-
- private static final String STREAM_CHANNEL_NAME = "lyokone/locationstream";
-
- StreamHandlerImpl(FlutterLocation location) {
- this.location = location;
- }
-
- /**
- * Registers this instance as a stream events handler on the given
- * {@code messenger}.
- */
- void startListening(BinaryMessenger messenger) {
- if (channel != null) {
- Log.wtf(TAG, "Setting a method call handler before the last was disposed.");
- stopListening();
- }
-
- channel = new EventChannel(messenger, STREAM_CHANNEL_NAME);
- channel.setStreamHandler(this);
- }
-
- /**
- * Clears this instance from listening to stream events.
- */
- void stopListening() {
- if (channel == null) {
- Log.d(TAG, "Tried to stop listening when no MethodChannel had been initialized.");
- return;
- }
-
- channel.setStreamHandler(null);
- channel = null;
- }
-
- @Override
- public void onListen(Object arguments, final EventSink eventsSink) {
- location.events = eventsSink;
- if (location.activity == null) {
- eventsSink.error("NO_ACTIVITY", null, null);
- return;
- }
-
- if (!location.checkPermissions()) {
- location.requestPermissions();
- return;
- }
- location.startRequestingLocation();
- }
-
- @Override
- public void onCancel(Object arguments) {
- location.mFusedLocationClient.removeLocationUpdates(location.mLocationCallback);
- location.events = null;
- }
-
-}
diff --git a/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.h b/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.h
deleted file mode 100644
index 42cb7eb..0000000
--- a/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#import
-
-@interface LocationPlugin : NSObject
-@end
diff --git a/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.m b/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.m
deleted file mode 100644
index 6ae7ca8..0000000
--- a/local_plugin/location-3.0.2/darwin/Classes/LocationPlugin.m
+++ /dev/null
@@ -1,321 +0,0 @@
-#import "LocationPlugin.h"
-
-#ifdef COCOAPODS
-@import CoreLocation;
-#else
-#import
-#endif
-
-@interface LocationPlugin()
-@property (strong, nonatomic) CLLocationManager *clLocationManager;
-@property (copy, nonatomic) FlutterResult flutterResult;
-@property (assign, nonatomic) BOOL locationWanted;
-@property (assign, nonatomic) BOOL permissionWanted;
-
-@property (copy, nonatomic) FlutterEventSink flutterEventSink;
-@property (assign, nonatomic) BOOL flutterListening;
-@property (assign, nonatomic) BOOL hasInit;
-@end
-
-@implementation LocationPlugin
-
-+(void)registerWithRegistrar:(NSObject*)registrar {
- FlutterMethodChannel *channel =
- [FlutterMethodChannel methodChannelWithName:@"lyokone/location"
- binaryMessenger:registrar.messenger];
- FlutterEventChannel *stream =
- [FlutterEventChannel eventChannelWithName:@"lyokone/locationstream"
- binaryMessenger:registrar.messenger];
-
- LocationPlugin *instance = [[LocationPlugin alloc] init];
- [registrar addMethodCallDelegate:instance channel:channel];
- [stream setStreamHandler:instance];
-}
-
--(instancetype)init {
- self = [super init];
-
- if (self) {
- self.locationWanted = NO;
- self.permissionWanted = NO;
- self.flutterListening = NO;
- self.hasInit = NO;
- }
- return self;
-}
-
--(void)initLocation {
- if (!(self.hasInit)) {
- self.hasInit = YES;
-
- if ([CLLocationManager locationServicesEnabled]) {
- self.clLocationManager = [[CLLocationManager alloc] init];
- self.clLocationManager.delegate = self;
- self.clLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
- }
- }
-}
-
--(void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
- [self initLocation];
- if ([call.method isEqualToString:@"changeSettings"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- NSDictionary *dictionary = @{
- @"0" : @(kCLLocationAccuracyKilometer),
- @"1" : @(kCLLocationAccuracyHundredMeters),
- @"2" : @(kCLLocationAccuracyNearestTenMeters),
- @"3" : @(kCLLocationAccuracyBest),
- @"4" : @(kCLLocationAccuracyBestForNavigation)
- };
-
- self.clLocationManager.desiredAccuracy =
- [dictionary[call.arguments[@"accuracy"]] doubleValue];
- double distanceFilter = [call.arguments[@"distanceFilter"] doubleValue];
- if (distanceFilter == 0){
- distanceFilter = kCLDistanceFilterNone;
- }
- self.clLocationManager.distanceFilter = distanceFilter;
- result(@1);
- }
- } else if ([call.method isEqualToString:@"getLocation"]) {
- if (![CLLocationManager locationServicesEnabled]) {
- result([FlutterError errorWithCode:@"SERVICE_STATUS_DISABLED" message:@"Failed to get location. Location services disabled" details:nil]);
- return;
- }
- if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
- // Location services are requested but user has denied
- NSString *message = @"The user explicitly denied the use of location services for this "
- "app or location services are currently disabled in Settings.";
- result([FlutterError errorWithCode:@"PERMISSION_DENIED"
- message:message
- details:nil]);
- return;
- }
-
- self.flutterResult = result;
- self.locationWanted = YES;
-
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- } else {
- [self requestPermission];
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
- } else if ([call.method isEqualToString:@"hasPermission"]) {
- if ([self isPermissionGranted]) {
- result(@1);
- } else {
- result(@0);
- }
- } else if ([call.method isEqualToString:@"requestPermission"]) {
- if ([self isPermissionGranted]) {
- result(@1);
- } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) {
- self.flutterResult = result;
- self.permissionWanted = YES;
- [self requestPermission];
- } else {
- result(@2);
- }
- } else if ([call.method isEqualToString:@"serviceEnabled"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- result(@1);
- } else {
- result(@0);
- }
- } else if ([call.method isEqualToString:@"requestService"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- result(@1);
- } else {
-#if TARGET_OS_OSX
- NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:@"Location is Disabled"];
- [alert setInformativeText:@"To use location, go to your System Preferences > Security & Privacy > Privacy > Location Services."];
- [alert addButtonWithTitle:@"Open"];
- [alert addButtonWithTitle:@"Cancel"];
- [alert beginSheetModalForWindow:NSApplication.sharedApplication.mainWindow
- completionHandler:^(NSModalResponse returnCode) {
- if (returnCode == NSAlertFirstButtonReturn) {
- NSString *urlString = @"x-apple.systempreferences:com.apple.preference.security?Privacy_LocationServices";
- [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];
- } else {
- NSLog(@"Cancel");
- }
- }];
-#else
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
- message:@"To use location, go to your Settings App > Privacy > Location Services."
- delegate:self
- cancelButtonTitle:@"Cancel"
- otherButtonTitles:nil];
- [alert show];
-#endif
- result(@0);
- }
- } else {
- result(FlutterMethodNotImplemented);
- }
-}
-
-
--(void) requestPermission {
-#if TARGET_OS_OSX
- if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil) {
- if (@available(macOS 10.15, *)) {
- [self.clLocationManager requestAlwaysAuthorization];
- }
- }
-#else
- if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil) {
- [self.clLocationManager requestWhenInUseAuthorization];
- }
- else if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationAlwaysUsageDescription"] != nil) {
- [self.clLocationManager requestAlwaysAuthorization];
- }
-#endif
- else {
- [NSException raise:NSInternalInconsistencyException format:
- @"To use location in iOS8 and above you need to define either "
- "NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription in the app "
- "bundle's Info.plist file"];
- }
-}
-
--(BOOL) isPermissionGranted {
- BOOL isPermissionGranted = NO;
- CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
-
-#if TARGET_OS_OSX
- if (status == kCLAuthorizationStatusAuthorized) {
- // Location services are available
- isPermissionGranted = YES;
- } else if (@available(macOS 10.12, *)) {
- if (status == kCLAuthorizationStatusAuthorizedAlways) {
- // Location services are available
- isPermissionGranted = YES;
- }
- }
-#else //if TARGET_OS_IOS
- if (status == kCLAuthorizationStatusAuthorizedWhenInUse ||
- status == kCLAuthorizationStatusAuthorizedAlways) {
- // Location services are available
- isPermissionGranted = YES;
- }
-#endif
- else if (status == kCLAuthorizationStatusDenied ||
- status == kCLAuthorizationStatusRestricted) {
- // Location services are requested but user has denied / the app is restricted from
- // getting location
- isPermissionGranted = NO;
- } else if (status == kCLAuthorizationStatusNotDetermined) {
- // Location services never requested / the user still haven't decide
- isPermissionGranted = NO;
- } else {
- isPermissionGranted = NO;
- }
-
- return isPermissionGranted;
-}
-
--(FlutterError*)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)events {
- self.flutterEventSink = events;
- self.flutterListening = YES;
-
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- } else {
- [self requestPermission];
- }
-
- return nil;
-}
-
--(FlutterError*)onCancelWithArguments:(id)arguments {
- self.flutterListening = NO;
- [self.clLocationManager stopUpdatingLocation];
- return nil;
-}
-
-#pragma mark - CLLocationManagerDelegate Methods
-
--(void)locationManager:(CLLocationManager*)manager
- didUpdateLocations:(NSArray*)locations {
- CLLocation *location = locations.firstObject;
- NSTimeInterval timeInSeconds = [location.timestamp timeIntervalSince1970];
- NSDictionary* coordinatesDict =
- @{
- @"latitude": @(location.coordinate.latitude),
- @"longitude": @(location.coordinate.longitude),
- @"accuracy": @(location.horizontalAccuracy),
- @"altitude": @(location.altitude),
- @"speed": @(location.speed),
- @"speed_accuracy": @0.0,
- @"heading": @(location.course),
- @"time": @(((double) timeInSeconds) * 1000.0) // in milliseconds since the epoch
- };
-
- if (self.locationWanted) {
- self.locationWanted = NO;
- self.flutterResult(coordinatesDict);
- }
- if (self.flutterListening) {
- self.flutterEventSink(coordinatesDict);
- } else {
- [self.clLocationManager stopUpdatingLocation];
- }
-}
-
-- (void)locationManager:(CLLocationManager *)manager
- didChangeAuthorizationStatus:(CLAuthorizationStatus)status {
- if (status == kCLAuthorizationStatusDenied) {
- // The user denied authorization
- NSLog(@"User denied permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@0);
- }
- }
-#if TARGET_OS_OSX
- else if (status == kCLAuthorizationStatusAuthorized) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- } else if (@available(macOS 10.12, *)) {
- if (status == kCLAuthorizationStatusAuthorizedAlways) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
- }
-#else //if TARGET_OS_IOS
- else if (status == kCLAuthorizationStatusAuthorizedWhenInUse ||
- status == kCLAuthorizationStatusAuthorizedAlways) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
-#endif
-}
-
-
-@end
diff --git a/local_plugin/location-3.0.2/example/.gitignore b/local_plugin/location-3.0.2/example/.gitignore
deleted file mode 100644
index 1ba9c33..0000000
--- a/local_plugin/location-3.0.2/example/.gitignore
+++ /dev/null
@@ -1,43 +0,0 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-.dart_tool/
-.flutter-plugins
-.flutter-plugins-dependencies
-.packages
-.pub-cache/
-.pub/
-/build/
-
-# Web related
-lib/generated_plugin_registrant.dart
-
-# Symbolication related
-app.*.symbols
-
-# Obfuscation related
-app.*.map.json
-
-# Exceptions to above rules.
-!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
diff --git a/local_plugin/location-3.0.2/example/.metadata b/local_plugin/location-3.0.2/example/.metadata
deleted file mode 100644
index 01d2dcb..0000000
--- a/local_plugin/location-3.0.2/example/.metadata
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled and should not be manually edited.
-
-version:
- revision: 0b8abb4724aa590dd0f429683339b1e045a1594d
- channel: stable
-
-project_type: app
diff --git a/local_plugin/location-3.0.2/example/README.md b/local_plugin/location-3.0.2/example/README.md
deleted file mode 100644
index 0c452d1..0000000
--- a/local_plugin/location-3.0.2/example/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# location_example
-
-Demonstrates how to use the location plugin.
-
-## Getting Started
-
-This project is a starting point for a Flutter application.
-
-A few resources to get you started if this is your first Flutter project:
-
-- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
-- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
-
-For help getting started with Flutter, view our
-[online documentation](https://flutter.dev/docs), which offers tutorials,
-samples, guidance on mobile development, and a full API reference.
diff --git a/local_plugin/location-3.0.2/example/android/.gitignore b/local_plugin/location-3.0.2/example/android/.gitignore
deleted file mode 100644
index bc2100d..0000000
--- a/local_plugin/location-3.0.2/example/android/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
diff --git a/local_plugin/location-3.0.2/example/android/app/build.gradle b/local_plugin/location-3.0.2/example/android/app/build.gradle
deleted file mode 100644
index 4bc81ab..0000000
--- a/local_plugin/location-3.0.2/example/android/app/build.gradle
+++ /dev/null
@@ -1,60 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion 28
-
- lintOptions {
- disable 'InvalidPackage'
- }
-
- defaultConfig {
- applicationId "com.lyokone.locationexample"
- minSdkVersion 16
- targetSdkVersion 28
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test:runner:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
-}
diff --git a/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/EmbedderV1ActivityTest.java b/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/EmbedderV1ActivityTest.java
deleted file mode 100644
index 5e50690..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/EmbedderV1ActivityTest.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.lyokone.locationexample;
-
-import androidx.test.rule.ActivityTestRule;
-import dev.flutter.plugins.e2e.FlutterRunner;
-import org.junit.Rule;
-import org.junit.runner.RunWith;
-
-@RunWith(FlutterRunner.class)
-public class EmbedderV1ActivityTest {
- @Rule
- public ActivityTestRule rule = new ActivityTestRule<>(EmbedderV1Activity.class);
-}
diff --git a/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/FlutterActivityTest.java b/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/FlutterActivityTest.java
deleted file mode 100644
index 7096d93..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/androidTest/java/com/lyokone/locationexample/FlutterActivityTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.lyokone.locationexample;
-
-import androidx.test.rule.ActivityTestRule;
-import dev.flutter.plugins.e2e.FlutterRunner;
-import io.flutter.embedding.android.FlutterActivity;
-import org.junit.Rule;
-import org.junit.runner.RunWith;
-
-@RunWith(FlutterRunner.class)
-public class FlutterActivityTest {
- @Rule
- public ActivityTestRule rule = new ActivityTestRule<>(FlutterActivity.class);
-}
diff --git a/local_plugin/location-3.0.2/example/android/app/src/debug/AndroidManifest.xml b/local_plugin/location-3.0.2/example/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index 9895bb2..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/AndroidManifest.xml b/local_plugin/location-3.0.2/example/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 4f4ab61..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/java/com/lyokone/locationexample/EmbedderV1Activity.java b/local_plugin/location-3.0.2/example/android/app/src/main/java/com/lyokone/locationexample/EmbedderV1Activity.java
deleted file mode 100644
index 362c106..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/main/java/com/lyokone/locationexample/EmbedderV1Activity.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.lyokone.locationexample;
-
-import android.os.Bundle;
-import dev.flutter.plugins.e2e.E2EPlugin;
-import io.flutter.app.FlutterActivity;
-import com.lyokone.location.LocationPlugin;
-
-public class EmbedderV1Activity extends FlutterActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- LocationPlugin.registerWith(registrarFor("com.lyokone.location.LocationPlugin"));
- E2EPlugin.registerWith(registrarFor("dev.flutter.plugins.e2e.E2EPlugin"));
- }
-}
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/drawable/launch_background.xml b/local_plugin/location-3.0.2/example/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 304732f..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index db77bb4..0000000
Binary files a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index 17987b7..0000000
Binary files a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 09d4391..0000000
Binary files a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index d5f1c8d..0000000
Binary files a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 4d6372e..0000000
Binary files a/local_plugin/location-3.0.2/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/android/app/src/main/res/values/styles.xml b/local_plugin/location-3.0.2/example/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index 00fa441..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/android/app/src/profile/AndroidManifest.xml b/local_plugin/location-3.0.2/example/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index 9895bb2..0000000
--- a/local_plugin/location-3.0.2/example/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/android/build.gradle b/local_plugin/location-3.0.2/example/android/build.gradle
deleted file mode 100644
index e0d7ae2..0000000
--- a/local_plugin/location-3.0.2/example/android/build.gradle
+++ /dev/null
@@ -1,29 +0,0 @@
-buildscript {
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
- }
-}
-
-allprojects {
- repositories {
- google()
- jcenter()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/local_plugin/location-3.0.2/example/android/gradle.properties b/local_plugin/location-3.0.2/example/android/gradle.properties
deleted file mode 100644
index 38c8d45..0000000
--- a/local_plugin/location-3.0.2/example/android/gradle.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.enableR8=true
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/local_plugin/location-3.0.2/example/android/gradle/wrapper/gradle-wrapper.properties b/local_plugin/location-3.0.2/example/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 296b146..0000000
--- a/local_plugin/location-3.0.2/example/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Jun 23 08:50:38 CEST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
diff --git a/local_plugin/location-3.0.2/example/android/settings.gradle b/local_plugin/location-3.0.2/example/android/settings.gradle
deleted file mode 100644
index 5a2f14f..0000000
--- a/local_plugin/location-3.0.2/example/android/settings.gradle
+++ /dev/null
@@ -1,15 +0,0 @@
-include ':app'
-
-def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
-
-def plugins = new Properties()
-def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
-if (pluginsFile.exists()) {
- pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
-}
-
-plugins.each { name, path ->
- def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
- include ":$name"
- project(":$name").projectDir = pluginDirectory
-}
diff --git a/local_plugin/location-3.0.2/example/ios/.gitignore b/local_plugin/location-3.0.2/example/ios/.gitignore
deleted file mode 100644
index e96ef60..0000000
--- a/local_plugin/location-3.0.2/example/ios/.gitignore
+++ /dev/null
@@ -1,32 +0,0 @@
-*.mode1v3
-*.mode2v3
-*.moved-aside
-*.pbxuser
-*.perspectivev3
-**/*sync/
-.sconsign.dblite
-.tags*
-**/.vagrant/
-**/DerivedData/
-Icon?
-**/Pods/
-**/.symlinks/
-profile
-xcuserdata
-**/.generated/
-Flutter/App.framework
-Flutter/Flutter.framework
-Flutter/Flutter.podspec
-Flutter/Generated.xcconfig
-Flutter/app.flx
-Flutter/app.zip
-Flutter/flutter_assets/
-Flutter/flutter_export_environment.sh
-ServiceDefinitions.json
-Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!default.mode1v3
-!default.mode2v3
-!default.pbxuser
-!default.perspectivev3
diff --git a/local_plugin/location-3.0.2/example/ios/Flutter/AppFrameworkInfo.plist b/local_plugin/location-3.0.2/example/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 6b4c0f7..0000000
--- a/local_plugin/location-3.0.2/example/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 8.0
-
-
diff --git a/local_plugin/location-3.0.2/example/ios/Flutter/Debug.xcconfig b/local_plugin/location-3.0.2/example/ios/Flutter/Debug.xcconfig
deleted file mode 100644
index e8efba1..0000000
--- a/local_plugin/location-3.0.2/example/ios/Flutter/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "Generated.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/ios/Flutter/Release.xcconfig b/local_plugin/location-3.0.2/example/ios/Flutter/Release.xcconfig
deleted file mode 100644
index 399e934..0000000
--- a/local_plugin/location-3.0.2/example/ios/Flutter/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/project.pbxproj b/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index bc72e0f..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,571 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
- DD112F2E4CE857F9EAC8D7C0 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7407592F4879066EE06C4B6F /* Pods_Runner.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 3FBE85D93EBCD2C647CC5C16 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
- 525F09DDB3B227C2EB11FBA0 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
- 7407592F4879066EE06C4B6F /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- FEA6CE46ED74487826D4931D /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- DD112F2E4CE857F9EAC8D7C0 /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 09889A7DB8497209299B2D08 /* Pods */ = {
- isa = PBXGroup;
- children = (
- FEA6CE46ED74487826D4931D /* Pods-Runner.debug.xcconfig */,
- 525F09DDB3B227C2EB11FBA0 /* Pods-Runner.release.xcconfig */,
- 3FBE85D93EBCD2C647CC5C16 /* Pods-Runner.profile.xcconfig */,
- );
- path = Pods;
- sourceTree = "";
- };
- 51D5215045614C3EC62B9174 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7407592F4879066EE06C4B6F /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 09889A7DB8497209299B2D08 /* Pods */,
- 51D5215045614C3EC62B9174 /* Frameworks */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 97C146F11CF9000F007C117D /* Supporting Files */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
- 97C146F11CF9000F007C117D /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- );
- name = "Supporting Files";
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 728928C3FAAC2B1379F26C61 /* [CP] Check Pods Manifest.lock */,
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- 820D6D96D117B3695A942791 /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1020;
- ORGANIZATIONNAME = "The Chromium Authors";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed\n/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin\n";
- };
- 728928C3FAAC2B1379F26C61 /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
- 820D6D96D117B3695A942791 /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "[CP] Embed Pods Frameworks";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.lyokone.location_example;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.lyokone.location_example;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.lyokone.location_example;
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index fb2dffc..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/AppDelegate.swift b/local_plugin/location-3.0.2/example/ios/Runner/AppDelegate.swift
deleted file mode 100644
index 70693e4..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,13 +0,0 @@
-import UIKit
-import Flutter
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index d36b1fa..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- "images" : [
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "Icon-App-83.5x83.5@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "Icon-App-1024x1024@1x.png",
- "scale" : "1x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
deleted file mode 100644
index dc9ada4..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
deleted file mode 100644
index 28c6bf0..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
deleted file mode 100644
index 2ccbfd9..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
deleted file mode 100644
index f091b6b..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
deleted file mode 100644
index 4cde121..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
deleted file mode 100644
index d0ef06e..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
deleted file mode 100644
index dcdc230..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
deleted file mode 100644
index 2ccbfd9..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
deleted file mode 100644
index c8f9ed8..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
deleted file mode 100644
index a6d6b86..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
deleted file mode 100644
index a6d6b86..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
deleted file mode 100644
index 75b2d16..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
deleted file mode 100644
index c4df70d..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
deleted file mode 100644
index 6a84f41..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
deleted file mode 100644
index d0e1f58..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
deleted file mode 100644
index 0bedcf2..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "filename" : "LaunchImage.png",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@2x.png",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@3x.png",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
deleted file mode 100644
index 9da19ea..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
deleted file mode 100644
index 9da19ea..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
deleted file mode 100644
index 9da19ea..0000000
Binary files a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
deleted file mode 100644
index 89c2725..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
-You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index f2e259c..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/Main.storyboard b/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index f3c2851..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Info.plist b/local_plugin/location-3.0.2/example/ios/Runner/Info.plist
deleted file mode 100644
index 331a83f..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Info.plist
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
- NSLocationAlwaysUsageDescription
- I need it
- NSLocationWhenInUseUsageDescription
- Because
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- location_example
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
-
-
diff --git a/local_plugin/location-3.0.2/example/ios/Runner/Runner-Bridging-Header.h b/local_plugin/location-3.0.2/example/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 7335fdf..0000000
--- a/local_plugin/location-3.0.2/example/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
\ No newline at end of file
diff --git a/local_plugin/location-3.0.2/example/lib/get_location.dart b/local_plugin/location-3.0.2/example/lib/get_location.dart
deleted file mode 100644
index ff30447..0000000
--- a/local_plugin/location-3.0.2/example/lib/get_location.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:location/location.dart';
-
-class GetLocationWidget extends StatefulWidget {
- const GetLocationWidget({Key key}) : super(key: key);
-
- @override
- _GetLocationState createState() => _GetLocationState();
-}
-
-class _GetLocationState extends State {
- final Location location = Location();
-
- LocationData _location;
- String _error;
-
- Future _getLocation() async {
- setState(() {
- _error = null;
- });
- try {
- final LocationData _locationResult = await location.getLocation();
- setState(() {
- _location = _locationResult;
- });
- } on PlatformException catch (err) {
- setState(() {
- _error = err.code;
- });
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Location: ' + (_error ?? '${_location ?? "unknown"}'),
- style: Theme.of(context).textTheme.body2,
- ),
- Row(
- children: [
- RaisedButton(
- child: const Text('Get'),
- onPressed: _getLocation,
- )
- ],
- ),
- ],
- );
- }
-}
diff --git a/local_plugin/location-3.0.2/example/lib/listen_location.dart b/local_plugin/location-3.0.2/example/lib/listen_location.dart
deleted file mode 100644
index 7230600..0000000
--- a/local_plugin/location-3.0.2/example/lib/listen_location.dart
+++ /dev/null
@@ -1,67 +0,0 @@
-import 'dart:async';
-
-import 'package:flutter/material.dart';
-import 'package:location/location.dart';
-
-class ListenLocationWidget extends StatefulWidget {
- const ListenLocationWidget({Key key}) : super(key: key);
-
- @override
- _ListenLocationState createState() => _ListenLocationState();
-}
-
-class _ListenLocationState extends State {
- final Location location = Location();
-
- LocationData _location;
- StreamSubscription _locationSubscription;
- String _error;
-
- Future _listenLocation() async {
- _locationSubscription =
- location.onLocationChanged.handleError((dynamic err) {
- setState(() {
- _error = err.code;
- });
- _locationSubscription.cancel();
- }).listen((LocationData currentLocation) {
- setState(() {
- _error = null;
-
- _location = currentLocation;
- });
- });
- }
-
- Future _stopListen() async {
- _locationSubscription.cancel();
- }
-
- @override
- Widget build(BuildContext context) {
- return Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Listen location: ' + (_error ?? '${_location ?? "unknown"}'),
- style: Theme.of(context).textTheme.body2,
- ),
- Row(
- children: [
- Container(
- margin: const EdgeInsets.only(right: 42),
- child: RaisedButton(
- child: const Text('Listen'),
- onPressed: _listenLocation,
- ),
- ),
- RaisedButton(
- child: const Text('Stop'),
- onPressed: _stopListen,
- )
- ],
- ),
- ],
- );
- }
-}
diff --git a/local_plugin/location-3.0.2/example/lib/main.dart b/local_plugin/location-3.0.2/example/lib/main.dart
deleted file mode 100644
index e0aa97f..0000000
--- a/local_plugin/location-3.0.2/example/lib/main.dart
+++ /dev/null
@@ -1,101 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:location/location.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'get_location.dart';
-import 'listen_location.dart';
-import 'permission_status.dart';
-import 'service_enabled.dart';
-
-void main() => runApp(MyApp());
-
-class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Location',
- theme: ThemeData(
- primarySwatch: Colors.amber,
- ),
- home: const MyHomePage(title: 'Flutter Location Demo'),
- );
- }
-}
-
-class MyHomePage extends StatefulWidget {
- const MyHomePage({Key key, this.title}) : super(key: key);
- final String title;
-
- @override
- _MyHomePageState createState() => _MyHomePageState();
-}
-
-class _MyHomePageState extends State {
- final Location location = Location();
-
- Future _showInfoDialog() {
- return showDialog(
- context: context,
- builder: (BuildContext context) {
- return AlertDialog(
- title: const Text('Demo Application'),
- content: SingleChildScrollView(
- child: ListBody(
- children: [
- const Text('Created by Guillaume Bernos'),
- InkWell(
- child: Text(
- 'https://github.com/Lyokone/flutterlocation',
- style: TextStyle(
- decoration: TextDecoration.underline,
- ),
- ),
- onTap: () =>
- launch('https://github.com/Lyokone/flutterlocation'),
- ),
- ],
- ),
- ),
- actions: [
- FlatButton(
- child: const Text('Ok'),
- onPressed: () {
- Navigator.of(context).pop();
- },
- ),
- ],
- );
- },
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(widget.title),
- actions: [
- IconButton(
- icon: Icon(Icons.info_outline),
- onPressed: _showInfoDialog,
- )
- ],
- ),
- body: Container(
- padding: const EdgeInsets.all(32),
- child: Column(
- children: const [
- PermissionStatusWidget(),
- Divider(height: 32),
- ServiceEnabledWidget(),
- Divider(height: 32),
- GetLocationWidget(),
- Divider(height: 32),
- ListenLocationWidget()
- ],
- ),
- ),
- );
- }
-}
diff --git a/local_plugin/location-3.0.2/example/lib/permission_status.dart b/local_plugin/location-3.0.2/example/lib/permission_status.dart
deleted file mode 100644
index 3723b2b..0000000
--- a/local_plugin/location-3.0.2/example/lib/permission_status.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:location/location.dart';
-
-class PermissionStatusWidget extends StatefulWidget {
- const PermissionStatusWidget({Key key}) : super(key: key);
-
- @override
- _PermissionStatusState createState() => _PermissionStatusState();
-}
-
-class _PermissionStatusState extends State {
- final Location location = Location();
-
- PermissionStatus _permissionGranted;
-
- Future _checkPermissions() async {
- final PermissionStatus permissionGrantedResult =
- await location.hasPermission();
- setState(() {
- _permissionGranted = permissionGrantedResult;
- });
- }
-
- Future _requestPermission() async {
- if (_permissionGranted != PermissionStatus.granted) {
- final PermissionStatus permissionRequestedResult =
- await location.requestPermission();
- setState(() {
- _permissionGranted = permissionRequestedResult;
- });
- if (permissionRequestedResult != PermissionStatus.granted) {
- return;
- }
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Permission status: ${_permissionGranted ?? "unknown"}',
- style: Theme.of(context).textTheme.body2,
- ),
- Row(
- children: [
- Container(
- margin: const EdgeInsets.only(right: 42),
- child: RaisedButton(
- child: const Text('Check'),
- onPressed: _checkPermissions,
- ),
- ),
- RaisedButton(
- child: const Text('Request'),
- onPressed: _permissionGranted == PermissionStatus.granted
- ? null
- : _requestPermission,
- )
- ],
- )
- ],
- );
- }
-}
diff --git a/local_plugin/location-3.0.2/example/lib/service_enabled.dart b/local_plugin/location-3.0.2/example/lib/service_enabled.dart
deleted file mode 100644
index 678460b..0000000
--- a/local_plugin/location-3.0.2/example/lib/service_enabled.dart
+++ /dev/null
@@ -1,60 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:location/location.dart';
-
-class ServiceEnabledWidget extends StatefulWidget {
- const ServiceEnabledWidget({Key key}) : super(key: key);
-
- @override
- _ServiceEnabledState createState() => _ServiceEnabledState();
-}
-
-class _ServiceEnabledState extends State {
- final Location location = Location();
-
- bool _serviceEnabled;
-
- Future _checkService() async {
- final bool serviceEnabledResult = await location.serviceEnabled();
- setState(() {
- _serviceEnabled = serviceEnabledResult;
- });
- }
-
- Future _requestService() async {
- if (_serviceEnabled == null || !_serviceEnabled) {
- final bool serviceRequestedResult = await location.requestService();
- setState(() {
- _serviceEnabled = serviceRequestedResult;
- });
- if (!serviceRequestedResult) {
- return;
- }
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text('Service enabled: ${_serviceEnabled ?? "unknown"}',
- style: Theme.of(context).textTheme.body2),
- Row(
- children: [
- Container(
- margin: const EdgeInsets.only(right: 42),
- child: RaisedButton(
- child: const Text('Check'),
- onPressed: _checkService,
- ),
- ),
- RaisedButton(
- child: const Text('Request'),
- onPressed: _serviceEnabled == true ? null : _requestService,
- )
- ],
- )
- ],
- );
- }
-}
diff --git a/local_plugin/location-3.0.2/example/macos/.gitignore b/local_plugin/location-3.0.2/example/macos/.gitignore
deleted file mode 100644
index d2fd377..0000000
--- a/local_plugin/location-3.0.2/example/macos/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-# Flutter-related
-**/Flutter/ephemeral/
-**/Pods/
-
-# Xcode-related
-**/xcuserdata/
diff --git a/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Debug.xcconfig b/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Debug.xcconfig
deleted file mode 100644
index 785633d..0000000
--- a/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Release.xcconfig b/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Release.xcconfig
deleted file mode 100644
index 5fba960..0000000
--- a/local_plugin/location-3.0.2/example/macos/Flutter/Flutter-Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/macos/Flutter/GeneratedPluginRegistrant.swift b/local_plugin/location-3.0.2/example/macos/Flutter/GeneratedPluginRegistrant.swift
deleted file mode 100644
index d151654..0000000
--- a/local_plugin/location-3.0.2/example/macos/Flutter/GeneratedPluginRegistrant.swift
+++ /dev/null
@@ -1,14 +0,0 @@
-//
-// Generated file. Do not edit.
-//
-
-import FlutterMacOS
-import Foundation
-
-import location
-import url_launcher_macos
-
-func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
- LocationPlugin.register(with: registry.registrar(forPlugin: "LocationPlugin"))
- UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
-}
diff --git a/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/project.pbxproj b/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index 6dd4fc8..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,654 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 51;
- objects = {
-
-/* Begin PBXAggregateTarget section */
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
- isa = PBXAggregateTarget;
- buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
- buildPhases = (
- 33CC111E2044C6BF0003C045 /* ShellScript */,
- );
- dependencies = (
- );
- name = "Flutter Assemble";
- productName = FLX;
- };
-/* End PBXAggregateTarget section */
-
-/* Begin PBXBuildFile section */
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
- 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; };
- 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 4FB8C74EE0088E7128613769 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC7B042DEA397098CB37A9C3 /* Pods_Runner.framework */; };
- D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; };
- D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 33CC111A2044C6BA0003C045;
- remoteInfo = FLX;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 33CC110E2044A8840003C045 /* Bundle Framework */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */,
- 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */,
- );
- name = "Bundle Framework";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 02248394EE7A7894B28455D5 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
- 33CC10ED2044A3C60003C045 /* location_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = location_example.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
- 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
- 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
- 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; };
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
- 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
- 886143E057BF0B12C17B4AF1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
- 8E274D018AB43327BF074F7F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
- BC7B042DEA397098CB37A9C3 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 33CC10EA2044A3C60003C045 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- D73912F022F37F9E000D13A0 /* App.framework in Frameworks */,
- 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */,
- 4FB8C74EE0088E7128613769 /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 290C5E9AF56BE501A7F19E71 /* Pods */ = {
- isa = PBXGroup;
- children = (
- 886143E057BF0B12C17B4AF1 /* Pods-Runner.debug.xcconfig */,
- 02248394EE7A7894B28455D5 /* Pods-Runner.release.xcconfig */,
- 8E274D018AB43327BF074F7F /* Pods-Runner.profile.xcconfig */,
- );
- name = Pods;
- path = Pods;
- sourceTree = "";
- };
- 33BA886A226E78AF003329D5 /* Configs */ = {
- isa = PBXGroup;
- children = (
- 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
- );
- path = Configs;
- sourceTree = "";
- };
- 33CC10E42044A3C60003C045 = {
- isa = PBXGroup;
- children = (
- 33FAB671232836740065AC1E /* Runner */,
- 33CEB47122A05771004F2AC0 /* Flutter */,
- 33CC10EE2044A3C60003C045 /* Products */,
- D73912EC22F37F3D000D13A0 /* Frameworks */,
- 290C5E9AF56BE501A7F19E71 /* Pods */,
- );
- sourceTree = "";
- };
- 33CC10EE2044A3C60003C045 /* Products */ = {
- isa = PBXGroup;
- children = (
- 33CC10ED2044A3C60003C045 /* location_example.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 33CC11242044D66E0003C045 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 33CC10F22044A3C60003C045 /* Assets.xcassets */,
- 33CC10F42044A3C60003C045 /* MainMenu.xib */,
- 33CC10F72044A3C60003C045 /* Info.plist */,
- );
- name = Resources;
- path = ..;
- sourceTree = "";
- };
- 33CEB47122A05771004F2AC0 /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
- 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
- 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
- 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
- D73912EF22F37F9E000D13A0 /* App.framework */,
- 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */,
- );
- path = Flutter;
- sourceTree = "";
- };
- 33FAB671232836740065AC1E /* Runner */ = {
- isa = PBXGroup;
- children = (
- 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
- 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
- 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
- 33E51914231749380026EE4D /* Release.entitlements */,
- 33CC11242044D66E0003C045 /* Resources */,
- 33BA886A226E78AF003329D5 /* Configs */,
- );
- path = Runner;
- sourceTree = "";
- };
- D73912EC22F37F3D000D13A0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- BC7B042DEA397098CB37A9C3 /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 33CC10EC2044A3C60003C045 /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- F031A4248658C5B8E1F56F23 /* [CP] Check Pods Manifest.lock */,
- 33CC10E92044A3C60003C045 /* Sources */,
- 33CC10EA2044A3C60003C045 /* Frameworks */,
- 33CC10EB2044A3C60003C045 /* Resources */,
- 33CC110E2044A8840003C045 /* Bundle Framework */,
- 3399D490228B24CF009A79C7 /* ShellScript */,
- 53011F24DAEC196906F70E4A /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 33CC11202044C79F0003C045 /* PBXTargetDependency */,
- );
- name = Runner;
- productName = Runner;
- productReference = 33CC10ED2044A3C60003C045 /* location_example.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 33CC10E52044A3C60003C045 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastSwiftUpdateCheck = 0920;
- LastUpgradeCheck = 0930;
- ORGANIZATIONNAME = "The Flutter Authors";
- TargetAttributes = {
- 33CC10EC2044A3C60003C045 = {
- CreatedOnToolsVersion = 9.2;
- LastSwiftMigration = 1100;
- ProvisioningStyle = Automatic;
- SystemCapabilities = {
- com.apple.Sandbox = {
- enabled = 1;
- };
- };
- };
- 33CC111A2044C6BA0003C045 = {
- CreatedOnToolsVersion = 9.2;
- ProvisioningStyle = Manual;
- };
- };
- };
- buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 8.0";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 33CC10E42044A3C60003C045;
- productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 33CC10EC2044A3C60003C045 /* Runner */,
- 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 33CC10EB2044A3C60003C045 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
- 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3399D490228B24CF009A79C7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- );
- outputFileListPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n";
- };
- 33CC111E2044C6BF0003C045 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- Flutter/ephemeral/FlutterInputs.xcfilelist,
- );
- inputPaths = (
- Flutter/ephemeral/tripwire,
- );
- outputFileListPaths = (
- Flutter/ephemeral/FlutterOutputs.xcfilelist,
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n";
- };
- 53011F24DAEC196906F70E4A /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- name = "[CP] Embed Pods Frameworks";
- outputFileListPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- F031A4248658C5B8E1F56F23 /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 33CC10E92044A3C60003C045 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
- 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
- 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
- targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 33CC10F52044A3C60003C045 /* Base */,
- );
- name = MainMenu.xib;
- path = Runner;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 338D0CE9231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Profile;
- };
- 338D0CEA231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter/ephemeral",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Profile;
- };
- 338D0CEB231458BD00FA5F75 /* Profile */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Profile;
- };
- 33CC10F92044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = macosx;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- };
- name = Debug;
- };
- 33CC10FA2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CODE_SIGN_IDENTITY = "-";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = macosx;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- };
- name = Release;
- };
- 33CC10FC2044A3C60003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter/ephemeral",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- };
- name = Debug;
- };
- 33CC10FD2044A3C60003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
- CODE_SIGN_STYLE = Automatic;
- COMBINE_HIDPI_IMAGES = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter/ephemeral",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/../Frameworks",
- );
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_VERSION = 5.0;
- };
- name = Release;
- };
- 33CC111C2044C6BA0003C045 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Manual;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Debug;
- };
- 33CC111D2044C6BA0003C045 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_STYLE = Automatic;
- PRODUCT_NAME = "$(TARGET_NAME)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10F92044A3C60003C045 /* Debug */,
- 33CC10FA2044A3C60003C045 /* Release */,
- 338D0CE9231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC10FC2044A3C60003C045 /* Debug */,
- 33CC10FD2044A3C60003C045 /* Release */,
- 338D0CEA231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 33CC111C2044C6BA0003C045 /* Debug */,
- 33CC111D2044C6BA0003C045 /* Release */,
- 338D0CEB231458BD00FA5F75 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 33CC10E52044A3C60003C045 /* Project object */;
-}
diff --git a/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index 75a2c33..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/AppDelegate.swift b/local_plugin/location-3.0.2/example/macos/Runner/AppDelegate.swift
deleted file mode 100644
index d53ef64..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,9 +0,0 @@
-import Cocoa
-import FlutterMacOS
-
-@NSApplicationMain
-class AppDelegate: FlutterAppDelegate {
- override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
- return true
- }
-}
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index a2ec33f..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "images" : [
- {
- "size" : "16x16",
- "idiom" : "mac",
- "filename" : "app_icon_16.png",
- "scale" : "1x"
- },
- {
- "size" : "16x16",
- "idiom" : "mac",
- "filename" : "app_icon_32.png",
- "scale" : "2x"
- },
- {
- "size" : "32x32",
- "idiom" : "mac",
- "filename" : "app_icon_32.png",
- "scale" : "1x"
- },
- {
- "size" : "32x32",
- "idiom" : "mac",
- "filename" : "app_icon_64.png",
- "scale" : "2x"
- },
- {
- "size" : "128x128",
- "idiom" : "mac",
- "filename" : "app_icon_128.png",
- "scale" : "1x"
- },
- {
- "size" : "128x128",
- "idiom" : "mac",
- "filename" : "app_icon_256.png",
- "scale" : "2x"
- },
- {
- "size" : "256x256",
- "idiom" : "mac",
- "filename" : "app_icon_256.png",
- "scale" : "1x"
- },
- {
- "size" : "256x256",
- "idiom" : "mac",
- "filename" : "app_icon_512.png",
- "scale" : "2x"
- },
- {
- "size" : "512x512",
- "idiom" : "mac",
- "filename" : "app_icon_512.png",
- "scale" : "1x"
- },
- {
- "size" : "512x512",
- "idiom" : "mac",
- "filename" : "app_icon_1024.png",
- "scale" : "2x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
deleted file mode 100644
index 3c4935a..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
deleted file mode 100644
index ed4cc16..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
deleted file mode 100644
index 483be61..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
deleted file mode 100644
index bcbf36d..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
deleted file mode 100644
index 9c0a652..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
deleted file mode 100644
index e71a726..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
deleted file mode 100644
index 8a31fe2..0000000
Binary files a/local_plugin/location-3.0.2/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Base.lproj/MainMenu.xib b/local_plugin/location-3.0.2/example/macos/Runner/Base.lproj/MainMenu.xib
deleted file mode 100644
index 537341a..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Base.lproj/MainMenu.xib
+++ /dev/null
@@ -1,339 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Configs/AppInfo.xcconfig b/local_plugin/location-3.0.2/example/macos/Runner/Configs/AppInfo.xcconfig
deleted file mode 100644
index 99943a9..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Configs/AppInfo.xcconfig
+++ /dev/null
@@ -1,14 +0,0 @@
-// Application-level settings for the Runner target.
-//
-// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
-// future. If not, the values below would default to using the project name when this becomes a
-// 'flutter create' template.
-
-// The application's name. By default this is also the title of the Flutter window.
-PRODUCT_NAME = location_example
-
-// The application's bundle identifier
-PRODUCT_BUNDLE_IDENTIFIER = com.lyokone.location.testLocation
-
-// The copyright displayed in application information
-PRODUCT_COPYRIGHT = Copyright © 2020 com.lyokone.location. All rights reserved.
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Debug.xcconfig b/local_plugin/location-3.0.2/example/macos/Runner/Configs/Debug.xcconfig
deleted file mode 100644
index 36b0fd9..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "../../Flutter/Flutter-Debug.xcconfig"
-#include "Warnings.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Release.xcconfig b/local_plugin/location-3.0.2/example/macos/Runner/Configs/Release.xcconfig
deleted file mode 100644
index dff4f49..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "../../Flutter/Flutter-Release.xcconfig"
-#include "Warnings.xcconfig"
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Warnings.xcconfig b/local_plugin/location-3.0.2/example/macos/Runner/Configs/Warnings.xcconfig
deleted file mode 100644
index 42bcbf4..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Configs/Warnings.xcconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
-GCC_WARN_UNDECLARED_SELECTOR = YES
-CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
-CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
-CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
-CLANG_WARN_PRAGMA_PACK = YES
-CLANG_WARN_STRICT_PROTOTYPES = YES
-CLANG_WARN_COMMA = YES
-GCC_WARN_STRICT_SELECTOR_MATCH = YES
-CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
-CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
-GCC_WARN_SHADOW = YES
-CLANG_WARN_UNREACHABLE_CODE = YES
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/DebugProfile.entitlements b/local_plugin/location-3.0.2/example/macos/Runner/DebugProfile.entitlements
deleted file mode 100644
index 308e7d2..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/DebugProfile.entitlements
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- com.apple.security.app-sandbox
-
- com.apple.security.cs.allow-jit
-
- com.apple.security.network.server
-
- com.apple.security.personal-information.location
-
-
-
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Info.plist b/local_plugin/location-3.0.2/example/macos/Runner/Info.plist
deleted file mode 100644
index 3e7b52b..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Info.plist
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSMinimumSystemVersion
- $(MACOSX_DEPLOYMENT_TARGET)
- NSHumanReadableCopyright
- $(PRODUCT_COPYRIGHT)
- NSMainNibFile
- MainMenu
- NSPrincipalClass
- NSApplication
- NSLocationAlwaysUsageDescription
- I need it
- NSLocationWhenInUseUsageDescription
- Because
-
-
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/MainFlutterWindow.swift b/local_plugin/location-3.0.2/example/macos/Runner/MainFlutterWindow.swift
deleted file mode 100644
index 2722837..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/MainFlutterWindow.swift
+++ /dev/null
@@ -1,15 +0,0 @@
-import Cocoa
-import FlutterMacOS
-
-class MainFlutterWindow: NSWindow {
- override func awakeFromNib() {
- let flutterViewController = FlutterViewController.init()
- let windowFrame = self.frame
- self.contentViewController = flutterViewController
- self.setFrame(windowFrame, display: true)
-
- RegisterGeneratedPlugins(registry: flutterViewController)
-
- super.awakeFromNib()
- }
-}
diff --git a/local_plugin/location-3.0.2/example/macos/Runner/Release.entitlements b/local_plugin/location-3.0.2/example/macos/Runner/Release.entitlements
deleted file mode 100644
index 9148921..0000000
--- a/local_plugin/location-3.0.2/example/macos/Runner/Release.entitlements
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
- com.apple.security.app-sandbox
-
- com.apple.security.personal-information.location
-
-
-
diff --git a/local_plugin/location-3.0.2/example/pubspec.yaml b/local_plugin/location-3.0.2/example/pubspec.yaml
deleted file mode 100644
index 594c237..0000000
--- a/local_plugin/location-3.0.2/example/pubspec.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: location_example
-description: Demonstrates how to use the location plugin.
-
-dependencies:
- flutter:
- sdk: flutter
- location:
- path: ../
- url_launcher: ^5.4.2
-
-dev_dependencies:
- flutter_driver:
- sdk: flutter
- e2e: ^0.2.1
-
-flutter:
- uses-material-design: true
diff --git a/local_plugin/location-3.0.2/example/web/favicon.png b/local_plugin/location-3.0.2/example/web/favicon.png
deleted file mode 100644
index 8aaa46a..0000000
Binary files a/local_plugin/location-3.0.2/example/web/favicon.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/web/icons/Icon-192.png b/local_plugin/location-3.0.2/example/web/icons/Icon-192.png
deleted file mode 100644
index b749bfe..0000000
Binary files a/local_plugin/location-3.0.2/example/web/icons/Icon-192.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/web/icons/Icon-512.png b/local_plugin/location-3.0.2/example/web/icons/Icon-512.png
deleted file mode 100644
index 88cfd48..0000000
Binary files a/local_plugin/location-3.0.2/example/web/icons/Icon-512.png and /dev/null differ
diff --git a/local_plugin/location-3.0.2/example/web/index.html b/local_plugin/location-3.0.2/example/web/index.html
deleted file mode 100644
index 4ddab97..0000000
--- a/local_plugin/location-3.0.2/example/web/index.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- location_example
-
-
-
-
-
-
-
-
diff --git a/local_plugin/location-3.0.2/example/web/manifest.json b/local_plugin/location-3.0.2/example/web/manifest.json
deleted file mode 100644
index abe4830..0000000
--- a/local_plugin/location-3.0.2/example/web/manifest.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "location_example",
- "short_name": "location_example",
- "start_url": ".",
- "display": "minimal-ui",
- "background_color": "#0175C2",
- "theme_color": "#0175C2",
- "description": "Demonstrates how to use the location plugin.",
- "orientation": "portrait-primary",
- "prefer_related_applications": false,
- "icons": [
- {
- "src": "icons/Icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- }
- ]
-}
diff --git a/local_plugin/location-3.0.2/ios/Assets/.gitkeep b/local_plugin/location-3.0.2/ios/Assets/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.h b/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.h
deleted file mode 100644
index 42cb7eb..0000000
--- a/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#import
-
-@interface LocationPlugin : NSObject
-@end
diff --git a/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.m b/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.m
deleted file mode 100644
index 6ae7ca8..0000000
--- a/local_plugin/location-3.0.2/ios/Classes/LocationPlugin.m
+++ /dev/null
@@ -1,321 +0,0 @@
-#import "LocationPlugin.h"
-
-#ifdef COCOAPODS
-@import CoreLocation;
-#else
-#import
-#endif
-
-@interface LocationPlugin()
-@property (strong, nonatomic) CLLocationManager *clLocationManager;
-@property (copy, nonatomic) FlutterResult flutterResult;
-@property (assign, nonatomic) BOOL locationWanted;
-@property (assign, nonatomic) BOOL permissionWanted;
-
-@property (copy, nonatomic) FlutterEventSink flutterEventSink;
-@property (assign, nonatomic) BOOL flutterListening;
-@property (assign, nonatomic) BOOL hasInit;
-@end
-
-@implementation LocationPlugin
-
-+(void)registerWithRegistrar:(NSObject*)registrar {
- FlutterMethodChannel *channel =
- [FlutterMethodChannel methodChannelWithName:@"lyokone/location"
- binaryMessenger:registrar.messenger];
- FlutterEventChannel *stream =
- [FlutterEventChannel eventChannelWithName:@"lyokone/locationstream"
- binaryMessenger:registrar.messenger];
-
- LocationPlugin *instance = [[LocationPlugin alloc] init];
- [registrar addMethodCallDelegate:instance channel:channel];
- [stream setStreamHandler:instance];
-}
-
--(instancetype)init {
- self = [super init];
-
- if (self) {
- self.locationWanted = NO;
- self.permissionWanted = NO;
- self.flutterListening = NO;
- self.hasInit = NO;
- }
- return self;
-}
-
--(void)initLocation {
- if (!(self.hasInit)) {
- self.hasInit = YES;
-
- if ([CLLocationManager locationServicesEnabled]) {
- self.clLocationManager = [[CLLocationManager alloc] init];
- self.clLocationManager.delegate = self;
- self.clLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
- }
- }
-}
-
--(void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
- [self initLocation];
- if ([call.method isEqualToString:@"changeSettings"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- NSDictionary *dictionary = @{
- @"0" : @(kCLLocationAccuracyKilometer),
- @"1" : @(kCLLocationAccuracyHundredMeters),
- @"2" : @(kCLLocationAccuracyNearestTenMeters),
- @"3" : @(kCLLocationAccuracyBest),
- @"4" : @(kCLLocationAccuracyBestForNavigation)
- };
-
- self.clLocationManager.desiredAccuracy =
- [dictionary[call.arguments[@"accuracy"]] doubleValue];
- double distanceFilter = [call.arguments[@"distanceFilter"] doubleValue];
- if (distanceFilter == 0){
- distanceFilter = kCLDistanceFilterNone;
- }
- self.clLocationManager.distanceFilter = distanceFilter;
- result(@1);
- }
- } else if ([call.method isEqualToString:@"getLocation"]) {
- if (![CLLocationManager locationServicesEnabled]) {
- result([FlutterError errorWithCode:@"SERVICE_STATUS_DISABLED" message:@"Failed to get location. Location services disabled" details:nil]);
- return;
- }
- if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) {
- // Location services are requested but user has denied
- NSString *message = @"The user explicitly denied the use of location services for this "
- "app or location services are currently disabled in Settings.";
- result([FlutterError errorWithCode:@"PERMISSION_DENIED"
- message:message
- details:nil]);
- return;
- }
-
- self.flutterResult = result;
- self.locationWanted = YES;
-
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- } else {
- [self requestPermission];
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
- } else if ([call.method isEqualToString:@"hasPermission"]) {
- if ([self isPermissionGranted]) {
- result(@1);
- } else {
- result(@0);
- }
- } else if ([call.method isEqualToString:@"requestPermission"]) {
- if ([self isPermissionGranted]) {
- result(@1);
- } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) {
- self.flutterResult = result;
- self.permissionWanted = YES;
- [self requestPermission];
- } else {
- result(@2);
- }
- } else if ([call.method isEqualToString:@"serviceEnabled"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- result(@1);
- } else {
- result(@0);
- }
- } else if ([call.method isEqualToString:@"requestService"]) {
- if ([CLLocationManager locationServicesEnabled]) {
- result(@1);
- } else {
-#if TARGET_OS_OSX
- NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:@"Location is Disabled"];
- [alert setInformativeText:@"To use location, go to your System Preferences > Security & Privacy > Privacy > Location Services."];
- [alert addButtonWithTitle:@"Open"];
- [alert addButtonWithTitle:@"Cancel"];
- [alert beginSheetModalForWindow:NSApplication.sharedApplication.mainWindow
- completionHandler:^(NSModalResponse returnCode) {
- if (returnCode == NSAlertFirstButtonReturn) {
- NSString *urlString = @"x-apple.systempreferences:com.apple.preference.security?Privacy_LocationServices";
- [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];
- } else {
- NSLog(@"Cancel");
- }
- }];
-#else
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
- message:@"To use location, go to your Settings App > Privacy > Location Services."
- delegate:self
- cancelButtonTitle:@"Cancel"
- otherButtonTitles:nil];
- [alert show];
-#endif
- result(@0);
- }
- } else {
- result(FlutterMethodNotImplemented);
- }
-}
-
-
--(void) requestPermission {
-#if TARGET_OS_OSX
- if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil) {
- if (@available(macOS 10.15, *)) {
- [self.clLocationManager requestAlwaysAuthorization];
- }
- }
-#else
- if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil) {
- [self.clLocationManager requestWhenInUseAuthorization];
- }
- else if ([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationAlwaysUsageDescription"] != nil) {
- [self.clLocationManager requestAlwaysAuthorization];
- }
-#endif
- else {
- [NSException raise:NSInternalInconsistencyException format:
- @"To use location in iOS8 and above you need to define either "
- "NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription in the app "
- "bundle's Info.plist file"];
- }
-}
-
--(BOOL) isPermissionGranted {
- BOOL isPermissionGranted = NO;
- CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
-
-#if TARGET_OS_OSX
- if (status == kCLAuthorizationStatusAuthorized) {
- // Location services are available
- isPermissionGranted = YES;
- } else if (@available(macOS 10.12, *)) {
- if (status == kCLAuthorizationStatusAuthorizedAlways) {
- // Location services are available
- isPermissionGranted = YES;
- }
- }
-#else //if TARGET_OS_IOS
- if (status == kCLAuthorizationStatusAuthorizedWhenInUse ||
- status == kCLAuthorizationStatusAuthorizedAlways) {
- // Location services are available
- isPermissionGranted = YES;
- }
-#endif
- else if (status == kCLAuthorizationStatusDenied ||
- status == kCLAuthorizationStatusRestricted) {
- // Location services are requested but user has denied / the app is restricted from
- // getting location
- isPermissionGranted = NO;
- } else if (status == kCLAuthorizationStatusNotDetermined) {
- // Location services never requested / the user still haven't decide
- isPermissionGranted = NO;
- } else {
- isPermissionGranted = NO;
- }
-
- return isPermissionGranted;
-}
-
--(FlutterError*)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)events {
- self.flutterEventSink = events;
- self.flutterListening = YES;
-
- if ([self isPermissionGranted]) {
- [self.clLocationManager startUpdatingLocation];
- } else {
- [self requestPermission];
- }
-
- return nil;
-}
-
--(FlutterError*)onCancelWithArguments:(id)arguments {
- self.flutterListening = NO;
- [self.clLocationManager stopUpdatingLocation];
- return nil;
-}
-
-#pragma mark - CLLocationManagerDelegate Methods
-
--(void)locationManager:(CLLocationManager*)manager
- didUpdateLocations:(NSArray*)locations {
- CLLocation *location = locations.firstObject;
- NSTimeInterval timeInSeconds = [location.timestamp timeIntervalSince1970];
- NSDictionary* coordinatesDict =
- @{
- @"latitude": @(location.coordinate.latitude),
- @"longitude": @(location.coordinate.longitude),
- @"accuracy": @(location.horizontalAccuracy),
- @"altitude": @(location.altitude),
- @"speed": @(location.speed),
- @"speed_accuracy": @0.0,
- @"heading": @(location.course),
- @"time": @(((double) timeInSeconds) * 1000.0) // in milliseconds since the epoch
- };
-
- if (self.locationWanted) {
- self.locationWanted = NO;
- self.flutterResult(coordinatesDict);
- }
- if (self.flutterListening) {
- self.flutterEventSink(coordinatesDict);
- } else {
- [self.clLocationManager stopUpdatingLocation];
- }
-}
-
-- (void)locationManager:(CLLocationManager *)manager
- didChangeAuthorizationStatus:(CLAuthorizationStatus)status {
- if (status == kCLAuthorizationStatusDenied) {
- // The user denied authorization
- NSLog(@"User denied permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@0);
- }
- }
-#if TARGET_OS_OSX
- else if (status == kCLAuthorizationStatusAuthorized) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- } else if (@available(macOS 10.12, *)) {
- if (status == kCLAuthorizationStatusAuthorizedAlways) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
- }
-#else //if TARGET_OS_IOS
- else if (status == kCLAuthorizationStatusAuthorizedWhenInUse ||
- status == kCLAuthorizationStatusAuthorizedAlways) {
- NSLog(@"User granted permissions");
- if (self.permissionWanted) {
- self.permissionWanted = NO;
- self.flutterResult(@1);
- }
-
- if (self.locationWanted || self.flutterListening) {
- [self.clLocationManager startUpdatingLocation];
- }
- }
-#endif
-}
-
-
-@end
diff --git a/local_plugin/location-3.0.2/ios/location.podspec b/local_plugin/location-3.0.2/ios/location.podspec
deleted file mode 100644
index 2f4be91..0000000
--- a/local_plugin/location-3.0.2/ios/location.podspec
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
-#
-Pod::Spec.new do |s|
- s.name = 'location'
- s.version = '0.0.1'
- s.summary = 'A new flutter plugin project.'
- s.description = <<-DESC
-A new flutter plugin project.
- DESC
- s.homepage = 'http://example.com'
- s.license = { :file => '../LICENSE' }
- s.author = { 'Your Company' => 'email@example.com' }
- s.source = { :path => '.' }
- s.source_files = 'Classes/**/*'
- s.public_header_files = 'Classes/**/*.h'
- s.dependency 'Flutter'
-
- s.ios.deployment_target = '8.0'
-end
-
diff --git a/local_plugin/location-3.0.2/lib/location.dart b/local_plugin/location-3.0.2/lib/location.dart
deleted file mode 100644
index a1658e7..0000000
--- a/local_plugin/location-3.0.2/lib/location.dart
+++ /dev/null
@@ -1,79 +0,0 @@
-import 'dart:async';
-
-import 'package:location_platform_interface/location_platform_interface.dart';
-
-export 'package:location_platform_interface/location_platform_interface.dart'
- show PermissionStatus, LocationAccuracy, LocationData;
-
-class Location {
- /// Initializes the plugin and starts listening for potential platform events.
- factory Location() => instance;
-
- Location._();
-
- static final Location instance = Location._();
-
- /// Change settings of the location request.
- ///
- /// The [accuracy] argument is controlling the precision of the
- /// [LocationData]. The [interval] and [distanceFilter] are controlling how
- /// often a new location is sent through [onLocationChanged].
- ///
- /// [interval] and [distanceFilter] are not used on web.
- Future changeSettings({
- LocationAccuracy accuracy = LocationAccuracy.high,
- int interval = 1000,
- double distanceFilter = 0,
- }) {
- return LocationPlatform.instance.changeSettings(
- accuracy: accuracy,
- interval: interval,
- distanceFilter: distanceFilter,
- );
- }
-
- /// Gets the current location of the user.
- ///
- /// Throws an error if the app has no permission to access location.
- /// Returns a [LocationData] object.
- Future getLocation() async {
- return LocationPlatform.instance.getLocation();
- }
-
- /// Checks if the app has permission to access location.
- ///
- /// If the result is [PermissionStatus.deniedForever], no dialog will be
- /// shown on [requestPermission].
- /// Returns a [PermissionStatus] object.
- Future hasPermission() {
- return LocationPlatform.instance.hasPermission();
- }
-
- /// Checks if the app has permission to access location.
- ///
- /// If the result is [PermissionStatus.deniedForever], no dialog will be
- /// shown on [requestPermission].
- /// Returns a [PermissionStatus] object.
- Future requestPermission() {
- return LocationPlatform.instance.requestPermission();
- }
-
- /// Checks if the location service is enabled.
- Future serviceEnabled() {
- return LocationPlatform.instance.serviceEnabled();
- }
-
- /// Request the activation of the location service.
- Future requestService() {
- return LocationPlatform.instance.requestService();
- }
-
- /// Returns a stream of [LocationData] objects.
- /// The frequency and accuracy of this stream can be changed with
- /// [changeSettings]
- ///
- /// Throws an error if the app has no permission to access location.
- Stream get onLocationChanged {
- return LocationPlatform.instance.onLocationChanged;
- }
-}
diff --git a/local_plugin/location-3.0.2/macos/Classes/LocationPlugin.h b/local_plugin/location-3.0.2/macos/Classes/LocationPlugin.h
deleted file mode 100644
index 2f17530..0000000
--- a/local_plugin/location-3.0.2/macos/Classes/LocationPlugin.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#import
-
-@interface LocationPlugin : NSObject
-@end
diff --git a/local_plugin/location-3.0.2/macos/location.podspec b/local_plugin/location-3.0.2/macos/location.podspec
deleted file mode 100644
index 7f5a33f..0000000
--- a/local_plugin/location-3.0.2/macos/location.podspec
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
-# Run `pod lib lint test_location.podspec' to validate before publishing.
-#
-Pod::Spec.new do |s|
- s.name = 'location'
- s.version = '0.0.1'
- s.summary = 'A new Flutter project.'
- s.description = <<-DESC
-A new Flutter project.
- DESC
- s.homepage = 'http://example.com'
- s.license = { :file => '../LICENSE' }
- s.author = { 'Your Company' => 'email@example.com' }
- s.source = { :path => '.' }
- s.source_files = 'Classes/**/*'
- s.dependency 'FlutterMacOS'
-
- s.platform = :osx, '10.11'
- s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
- s.swift_version = '5.0'
-end
diff --git a/local_plugin/location-3.0.2/pubspec.yaml b/local_plugin/location-3.0.2/pubspec.yaml
deleted file mode 100644
index d7a6252..0000000
--- a/local_plugin/location-3.0.2/pubspec.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: location
-description: A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.
-version: 3.0.2
-author: Guillaume Bernos
-homepage: https://github.com/Lyokone/flutterlocation
-
-environment:
- sdk: ">=2.0.0 <3.0.0"
- flutter: ">=1.12.13+hotfix.5 <2.0.0"
-
-flutter:
- plugin:
- platforms:
- android:
- package: com.lyokone.location
- pluginClass: LocationPlugin
- ios:
- pluginClass: LocationPlugin
- macos:
- pluginClass: LocationPlugin
- web:
- default_package: location_web
-
-dependencies:
- flutter:
- sdk: flutter
- meta: ^1.0.5
- location_platform_interface: ^1.0.0
- location_web: ^1.0.0
-
-dev_dependencies:
- async: ^2.0.8
- test: ^1.3.0
- mockito: 3.0.0
- flutter_test:
- sdk: flutter
- e2e: ^0.2.4+1
diff --git a/local_plugin/location-3.0.2/src/demo_readme.gif b/local_plugin/location-3.0.2/src/demo_readme.gif
deleted file mode 100644
index df566fc..0000000
Binary files a/local_plugin/location-3.0.2/src/demo_readme.gif and /dev/null differ
diff --git a/local_plugin/location-3.0.2/test/location_e2e.dart b/local_plugin/location-3.0.2/test/location_e2e.dart
deleted file mode 100644
index 2199224..0000000
--- a/local_plugin/location-3.0.2/test/location_e2e.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:e2e/e2e.dart';
-import 'package:flutter_test/flutter_test.dart';
-import 'package:location/location.dart';
-
-void main() {
- E2EWidgetsFlutterBinding.ensureInitialized();
-
- testWidgets('Can instantiate Location object', (WidgetTester tester) async {
- final Location location = Location();
- expect(location, isNotNull);
- });
-}
diff --git a/local_plugin/location-3.0.2/test/location_test.dart b/local_plugin/location-3.0.2/test/location_test.dart
deleted file mode 100644
index dabb37e..0000000
--- a/local_plugin/location-3.0.2/test/location_test.dart
+++ /dev/null
@@ -1,132 +0,0 @@
-import 'dart:async';
-
-import 'package:flutter_test/flutter_test.dart';
-import 'package:location/location.dart';
-import 'package:location_platform_interface/location_platform_interface.dart';
-import 'package:mockito/mockito.dart';
-import 'package:plugin_platform_interface/plugin_platform_interface.dart';
-
-void main() {
- TestWidgetsFlutterBinding.ensureInitialized();
-
- final Location location = Location();
- final LocationPlatformMock platform = LocationPlatformMock();
- LocationPlatform.instance = platform;
-
- tearDown(resetMockitoState);
-
- group('getLocation', () {
- when(platform.getLocation()).thenAnswer((_) async {
- return LocationData.fromMap({
- 'latitude': 48.8534,
- 'longitude': 2.3488,
- });
- });
-
- test('getLocation should convert results correctly', () async {
- final LocationData receivedLocation = await location.getLocation();
- expect(receivedLocation.latitude, 48.8534);
- expect(receivedLocation.longitude, 2.3488);
- });
-
- test('getLocation should convert to string correctly', () async {
- final LocationData receivedLocation = await location.getLocation();
-
- expect(receivedLocation.toString(),
- 'LocationData');
- });
- });
-
- test('changeSettings', () async {
- when(platform.changeSettings(
- accuracy: captureAnyNamed('accuracy'),
- interval: captureAnyNamed('interval'),
- distanceFilter: captureAnyNamed('distanceFilter'),
- ));
-
- await location.changeSettings();
- final VerificationResult result = verify(platform.changeSettings(
- accuracy: captureAnyNamed('accuracy'),
- interval: captureAnyNamed('interval'),
- distanceFilter: captureAnyNamed('distanceFilter'),
- ));
-
- expect(result.callCount, 1);
- expect(result.captured[0], LocationAccuracy.high);
- expect(result.captured[1], 1000);
- expect(result.captured[2], 0);
- });
-
- group('serviceEnabled-requestService', () {
- when(platform.serviceEnabled()).thenAnswer((_) async => true);
- when(platform.requestService()).thenAnswer((_) async => true);
-
- test('serviceEnabled', () async {
- final bool result = await location.serviceEnabled();
- expect(result, isTrue);
- });
-
- test('requestService', () async {
- final bool result = await location.requestService();
- expect(result, isTrue);
- });
- });
-
- test('hasPermission', () async {
- when(platform.hasPermission())
- .thenAnswer((_) async => PermissionStatus.denied);
- when(platform.requestPermission())
- .thenAnswer((_) async => PermissionStatus.denied);
-
- PermissionStatus receivedPermission = await location.hasPermission();
- expect(receivedPermission, PermissionStatus.denied);
-
- receivedPermission = await location.requestPermission();
- expect(receivedPermission, PermissionStatus.denied);
- });
-
- group('onLocationChanged', () {
- StreamController controller;
-
- setUp(() {
- controller = StreamController();
- when(platform.onLocationChanged)
- .thenAnswer((Invocation invoke) => controller.stream);
- });
-
- tearDown(() => controller.close());
-
- test('should receive values', () async {
- controller.add(LocationData.fromMap({
- 'latitude': 48.8534,
- 'longitude': 2.3488,
- }));
- controller.add(LocationData.fromMap({
- 'latitude': 42.8534,
- 'longitude': 23.3488,
- }));
- controller.close();
-
- await expectLater(
- location.onLocationChanged,
- emitsInOrder(
- [
- LocationData.fromMap({
- 'latitude': 48.8534,
- 'longitude': 2.3488,
- }),
- LocationData.fromMap({
- 'latitude': 42.8534,
- 'longitude': 23.3488,
- }),
- emitsDone,
- ],
- ),
- );
- });
- });
-}
-
-class LocationPlatformMock extends Mock
- with MockPlatformInterfaceMixin
- implements LocationPlatform {}
diff --git a/pubspec.lock b/pubspec.lock
index 5224052..cb8a54a 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -1,13 +1,6 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
- app_settings:
- dependency: "direct main"
- description:
- name: app_settings
- url: "https://pub.dartlang.org"
- source: hosted
- version: "4.0.1+1"
archive:
dependency: transitive
description:
@@ -28,7 +21,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
- version: "2.4.1"
+ version: "2.8.1"
barcode_scan:
dependency: "direct main"
description:
@@ -42,21 +35,35 @@ packages:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.3"
+ version: "1.3.1"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
- version: "1.14.12"
+ version: "1.15.0"
convert:
dependency: transitive
description:
@@ -64,6 +71,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
+ cross_file:
+ dependency: transitive
+ description:
+ name: cross_file
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.1+5"
crypto:
dependency: transitive
description:
@@ -78,13 +92,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ ffi:
+ dependency: transitive
+ description:
+ name: ffi
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.2"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
- version: "5.2.1"
+ version: "6.1.2"
fixnum:
dependency: transitive
description:
@@ -105,7 +133,7 @@ packages:
source: sdk
version: "0.0.0"
flutter_launcher_icons:
- dependency: "direct main"
+ dependency: "direct dev"
description:
name: flutter_launcher_icons
url: "https://pub.dartlang.org"
@@ -117,7 +145,7 @@ packages:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.8"
+ version: "2.0.3"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -134,14 +162,14 @@ packages:
name: http
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.1"
+ version: "0.13.4"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
- version: "3.1.4"
+ version: "4.0.0"
image:
dependency: transitive
description:
@@ -155,119 +183,126 @@ packages:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
- version: "0.6.7+2"
+ version: "0.8.4+2"
+ image_picker_for_web:
+ dependency: transitive
+ description:
+ name: image_picker_for_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.3"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "2.4.1"
intl:
dependency: "direct main"
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
- version: "0.16.1"
+ version: "0.17.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
- version: "0.6.2"
+ version: "0.6.3"
location:
dependency: "direct main"
description:
- path: "local_plugin/location-3.0.2"
- relative: true
- source: path
- version: "3.0.2"
+ name: location
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.3.0"
location_platform_interface:
dependency: transitive
description:
name: location_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.0"
+ version: "2.3.0"
location_web:
dependency: transitive
description:
name: location_web
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.0"
+ version: "3.1.1"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.6"
+ version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.8"
+ version: "1.7.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
- version: "1.6.4"
+ version: "1.8.0"
path_provider:
dependency: "direct main"
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
- version: "1.6.11"
+ version: "2.0.5"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.1+1"
+ version: "2.1.0"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.4+3"
+ version: "2.0.2"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.2"
- pedantic:
+ version: "2.0.1"
+ path_provider_windows:
dependency: transitive
description:
- name: pedantic
+ name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.0"
+ version: "2.0.3"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
- version: "5.0.1+1"
+ version: "8.2.2"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.1"
+ version: "3.7.0"
petitparser:
dependency: transitive
description:
@@ -281,28 +316,28 @@ packages:
name: photo_view
url: "https://pub.dartlang.org"
source: hosted
- version: "0.9.2"
+ version: "0.13.0"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.1"
+ version: "3.0.2"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.2"
+ version: "2.0.2"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
- version: "3.0.13"
+ version: "4.2.3"
protobuf:
dependency: transitive
description:
@@ -310,41 +345,48 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
- quiver:
- dependency: transitive
- description:
- name: quiver
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.3"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
- version: "0.5.7+3"
+ version: "2.0.8"
+ shared_preferences_linux:
+ dependency: transitive
+ description:
+ name: shared_preferences_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
shared_preferences_macos:
dependency: transitive
description:
name: shared_preferences_macos
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.1+10"
+ version: "2.0.2"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.4"
+ version: "2.0.0"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.2+7"
+ version: "2.0.2"
+ shared_preferences_windows:
+ dependency: transitive
+ description:
+ name: shared_preferences_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
sky_engine:
dependency: transitive
description: flutter
@@ -356,84 +398,91 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
- version: "1.7.0"
+ version: "1.8.1"
sqflite:
dependency: "direct main"
description:
name: sqflite
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.1"
+ version: "2.0.0+4"
sqflite_common:
dependency: transitive
description:
name: sqflite_common
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.2+1"
+ version: "2.0.1+1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.3"
+ version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.5"
+ version: "1.1.0"
synchronized:
dependency: transitive
description:
name: synchronized
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.0+1"
+ version: "3.0.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.15"
+ version: "0.4.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.6"
+ version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.8"
+ version: "2.1.0"
+ win32:
+ dependency: transitive
+ description:
+ name: win32
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.2.9"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.0"
+ version: "0.2.0"
xml:
dependency: transitive
description:
@@ -449,5 +498,5 @@ packages:
source: hosted
version: "2.2.1"
sdks:
- dart: ">=2.8.0 <3.0.0"
- flutter: ">=1.12.13+hotfix.5 <2.0.0"
+ dart: ">=2.14.0 <3.0.0"
+ flutter: ">=2.5.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index f6d0e8a..ba6cad1 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,16 +1,7 @@
name: unitstocks
description: App to stock Thamrin Brothers Units
-# The following defines the version and build number for your application.
-# A version number is three numbers separated by dots, like 1.2.43
-# followed by an optional build number separated by a +.
-# Both the version and the builder number may be overridden in flutter
-# build by specifying --build-name and --build-number, respectively.
-# In Android, build-name is used as versionName while build-number used as versionCode.
-# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
-# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
-# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-version: 1.0.0+1
+version: 1.0.3+6
environment:
sdk: ">=2.1.0 <3.0.0"
@@ -22,23 +13,24 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons:
- image_picker:
- photo_view:
- sqflite:
- path_provider:
- flushbar:
- http:
- intl:
- shared_preferences:
- location:
- path: 'local_plugin/location-3.0.2'
- permission_handler:
- app_settings:
+ image_picker: ^0.8.4+2
+ photo_view: ^0.13.0
+ sqflite: ^2.0.0+4
+ path_provider: ^2.0.5
+ flushbar: ^1.10.4
+ http: ^0.13.4
+ intl: ^0.17.0
+ shared_preferences: ^2.0.8
+ location: ^4.3.0
+# path: 'local_plugin/location-3.0.2'
+ permission_handler: ^8.2.2
+# app_settings:
# autocomplete_textfield:
- barcode_scan:
- flutter_launcher_icons:
+ barcode_scan: ^3.0.1
+
dev_dependencies:
+ flutter_launcher_icons:
flutter_test:
sdk: flutter
@@ -59,7 +51,8 @@ flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
- # assets:
+ assets:
+ - cert/isrgrootx1.pem
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg