mac 1 年間 前
コミット
5d66422d7b
共有43 個のファイルを変更した171 個の追加144 個の削除を含む
  1. 8
    0
      ios/Podfile
  2. 10
    5
      ios/Runner.xcodeproj/project.pbxproj
  3. 118
    120
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  4. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  5. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  6. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  7. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  8. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  9. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  10. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  11. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  12. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  13. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  14. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  15. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  16. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  17. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  18. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  19. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-1024.png
  20. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
  21. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
  22. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
  23. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
  24. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-38@2x.png
  25. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-38@3x.png
  26. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
  27. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
  28. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
  29. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
  30. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-64@2x.png
  31. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-64@3x.png
  32. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-68@2x.png
  33. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
  34. バイナリ
      ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
  35. 3
    3
      ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  36. バイナリ
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  37. バイナリ
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  38. バイナリ
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  39. バイナリ
      ios/Runner/Assets.xcassets/LaunchImage.imageset/launch_image.png
  40. 10
    6
      ios/Runner/Base.lproj/LaunchScreen.storyboard
  41. 8
    5
      ios/Runner/Base.lproj/Main.storyboard
  42. 12
    4
      ios/Runner/Info.plist
  43. 2
    1
      lib/utils/location.dart

+ 8
- 0
ios/Podfile ファイルの表示

@@ -37,5 +37,13 @@ end
37 37
 post_install do |installer|
38 38
   installer.pods_project.targets.each do |target|
39 39
     flutter_additional_ios_build_settings(target)
40
+    target.build_configurations.each do |config|
41
+      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
42
+              '$(inherited)',
43
+   
44
+              ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
45
+              'PERMISSION_LOCATION=1',
46
+            ]
47
+      end
40 48
   end
41 49
 end

+ 10
- 5
ios/Runner.xcodeproj/project.pbxproj ファイルの表示

@@ -3,7 +3,7 @@
3 3
 	archiveVersion = 1;
4 4
 	classes = {
5 5
 	};
6
-	objectVersion = 50;
6
+	objectVersion = 54;
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
@@ -121,7 +121,6 @@
121 121
 				F86B34B25E86537F43C34E27 /* Pods-Runner.release.xcconfig */,
122 122
 				DE87C961FF082167615F504D /* Pods-Runner.profile.xcconfig */,
123 123
 			);
124
-			name = Pods;
125 124
 			path = Pods;
126 125
 			sourceTree = "<group>";
127 126
 		};
@@ -358,7 +357,7 @@
358 357
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
359 358
 				GCC_WARN_UNUSED_FUNCTION = YES;
360 359
 				GCC_WARN_UNUSED_VARIABLE = YES;
361
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
360
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
362 361
 				MTL_ENABLE_DEBUG_INFO = NO;
363 362
 				SDKROOT = iphoneos;
364 363
 				SUPPORTED_PLATFORMS = iphoneos;
@@ -374,8 +373,10 @@
374 373
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
375 374
 				CLANG_ENABLE_MODULES = YES;
376 375
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
376
+				DEVELOPMENT_TEAM = W48DPW925L;
377 377
 				ENABLE_BITCODE = NO;
378 378
 				INFOPLIST_FILE = Runner/Info.plist;
379
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
379 380
 				LD_RUNPATH_SEARCH_PATHS = (
380 381
 					"$(inherited)",
381 382
 					"@executable_path/Frameworks",
@@ -435,7 +436,7 @@
435 436
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
436 437
 				GCC_WARN_UNUSED_FUNCTION = YES;
437 438
 				GCC_WARN_UNUSED_VARIABLE = YES;
438
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
439
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
439 440
 				MTL_ENABLE_DEBUG_INFO = YES;
440 441
 				ONLY_ACTIVE_ARCH = YES;
441 442
 				SDKROOT = iphoneos;
@@ -484,7 +485,7 @@
484 485
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
485 486
 				GCC_WARN_UNUSED_FUNCTION = YES;
486 487
 				GCC_WARN_UNUSED_VARIABLE = YES;
487
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
488
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
488 489
 				MTL_ENABLE_DEBUG_INFO = NO;
489 490
 				SDKROOT = iphoneos;
490 491
 				SUPPORTED_PLATFORMS = iphoneos;
@@ -502,8 +503,10 @@
502 503
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
503 504
 				CLANG_ENABLE_MODULES = YES;
504 505
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
506
+				DEVELOPMENT_TEAM = W48DPW925L;
505 507
 				ENABLE_BITCODE = NO;
506 508
 				INFOPLIST_FILE = Runner/Info.plist;
509
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
507 510
 				LD_RUNPATH_SEARCH_PATHS = (
508 511
 					"$(inherited)",
509 512
 					"@executable_path/Frameworks",
@@ -524,8 +527,10 @@
524 527
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
525 528
 				CLANG_ENABLE_MODULES = YES;
526 529
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
530
+				DEVELOPMENT_TEAM = W48DPW925L;
527 531
 				ENABLE_BITCODE = NO;
528 532
 				INFOPLIST_FILE = Runner/Info.plist;
533
+				IPHONEOS_DEPLOYMENT_TARGET = 16.6;
529 534
 				LD_RUNPATH_SEARCH_PATHS = (
530 535
 					"$(inherited)",
531 536
 					"@executable_path/Frameworks",

+ 118
- 120
ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json ファイルの表示

@@ -1,122 +1,120 @@
1 1
 {
2
-  "images" : [
3
-    {
4
-      "size" : "20x20",
5
-      "idiom" : "iphone",
6
-      "filename" : "Icon-App-20x20@2x.png",
7
-      "scale" : "2x"
8
-    },
9
-    {
10
-      "size" : "20x20",
11
-      "idiom" : "iphone",
12
-      "filename" : "Icon-App-20x20@3x.png",
13
-      "scale" : "3x"
14
-    },
15
-    {
16
-      "size" : "29x29",
17
-      "idiom" : "iphone",
18
-      "filename" : "Icon-App-29x29@1x.png",
19
-      "scale" : "1x"
20
-    },
21
-    {
22
-      "size" : "29x29",
23
-      "idiom" : "iphone",
24
-      "filename" : "Icon-App-29x29@2x.png",
25
-      "scale" : "2x"
26
-    },
27
-    {
28
-      "size" : "29x29",
29
-      "idiom" : "iphone",
30
-      "filename" : "Icon-App-29x29@3x.png",
31
-      "scale" : "3x"
32
-    },
33
-    {
34
-      "size" : "40x40",
35
-      "idiom" : "iphone",
36
-      "filename" : "Icon-App-40x40@2x.png",
37
-      "scale" : "2x"
38
-    },
39
-    {
40
-      "size" : "40x40",
41
-      "idiom" : "iphone",
42
-      "filename" : "Icon-App-40x40@3x.png",
43
-      "scale" : "3x"
44
-    },
45
-    {
46
-      "size" : "60x60",
47
-      "idiom" : "iphone",
48
-      "filename" : "Icon-App-60x60@2x.png",
49
-      "scale" : "2x"
50
-    },
51
-    {
52
-      "size" : "60x60",
53
-      "idiom" : "iphone",
54
-      "filename" : "Icon-App-60x60@3x.png",
55
-      "scale" : "3x"
56
-    },
57
-    {
58
-      "size" : "20x20",
59
-      "idiom" : "ipad",
60
-      "filename" : "Icon-App-20x20@1x.png",
61
-      "scale" : "1x"
62
-    },
63
-    {
64
-      "size" : "20x20",
65
-      "idiom" : "ipad",
66
-      "filename" : "Icon-App-20x20@2x.png",
67
-      "scale" : "2x"
68
-    },
69
-    {
70
-      "size" : "29x29",
71
-      "idiom" : "ipad",
72
-      "filename" : "Icon-App-29x29@1x.png",
73
-      "scale" : "1x"
74
-    },
75
-    {
76
-      "size" : "29x29",
77
-      "idiom" : "ipad",
78
-      "filename" : "Icon-App-29x29@2x.png",
79
-      "scale" : "2x"
80
-    },
81
-    {
82
-      "size" : "40x40",
83
-      "idiom" : "ipad",
84
-      "filename" : "Icon-App-40x40@1x.png",
85
-      "scale" : "1x"
86
-    },
87
-    {
88
-      "size" : "40x40",
89
-      "idiom" : "ipad",
90
-      "filename" : "Icon-App-40x40@2x.png",
91
-      "scale" : "2x"
92
-    },
93
-    {
94
-      "size" : "76x76",
95
-      "idiom" : "ipad",
96
-      "filename" : "Icon-App-76x76@1x.png",
97
-      "scale" : "1x"
98
-    },
99
-    {
100
-      "size" : "76x76",
101
-      "idiom" : "ipad",
102
-      "filename" : "Icon-App-76x76@2x.png",
103
-      "scale" : "2x"
104
-    },
105
-    {
106
-      "size" : "83.5x83.5",
107
-      "idiom" : "ipad",
108
-      "filename" : "Icon-App-83.5x83.5@2x.png",
109
-      "scale" : "2x"
110
-    },
111
-    {
112
-      "size" : "1024x1024",
113
-      "idiom" : "ios-marketing",
114
-      "filename" : "Icon-App-1024x1024@1x.png",
115
-      "scale" : "1x"
2
+    "images": [
3
+        {
4
+            "size": "20x20",
5
+            "idiom": "universal",
6
+            "filename": "icon-20@2x.png",
7
+            "scale": "2x",
8
+            "platform": "ios"
9
+        },
10
+        {
11
+            "size": "20x20",
12
+            "idiom": "universal",
13
+            "filename": "icon-20@3x.png",
14
+            "scale": "3x",
15
+            "platform": "ios"
16
+        },
17
+        {
18
+            "size": "29x29",
19
+            "idiom": "universal",
20
+            "filename": "icon-29@2x.png",
21
+            "scale": "2x",
22
+            "platform": "ios"
23
+        },
24
+        {
25
+            "size": "29x29",
26
+            "idiom": "universal",
27
+            "filename": "icon-29@3x.png",
28
+            "scale": "3x",
29
+            "platform": "ios"
30
+        },
31
+        {
32
+            "size": "38x38",
33
+            "idiom": "universal",
34
+            "filename": "icon-38@2x.png",
35
+            "scale": "2x",
36
+            "platform": "ios"
37
+        },
38
+        {
39
+            "size": "38x38",
40
+            "idiom": "universal",
41
+            "filename": "icon-38@3x.png",
42
+            "scale": "3x",
43
+            "platform": "ios"
44
+        },
45
+        {
46
+            "size": "40x40",
47
+            "idiom": "universal",
48
+            "filename": "icon-40@2x.png",
49
+            "scale": "2x",
50
+            "platform": "ios"
51
+        },
52
+        {
53
+            "size": "40x40",
54
+            "idiom": "universal",
55
+            "filename": "icon-40@3x.png",
56
+            "scale": "3x",
57
+            "platform": "ios"
58
+        },
59
+        {
60
+            "size": "60x60",
61
+            "idiom": "universal",
62
+            "filename": "icon-60@2x.png",
63
+            "scale": "2x",
64
+            "platform": "ios"
65
+        },
66
+        {
67
+            "size": "60x60",
68
+            "idiom": "universal",
69
+            "filename": "icon-60@3x.png",
70
+            "scale": "3x",
71
+            "platform": "ios"
72
+        },
73
+        {
74
+            "size": "64x64",
75
+            "idiom": "universal",
76
+            "filename": "icon-64@2x.png",
77
+            "scale": "2x",
78
+            "platform": "ios"
79
+        },
80
+        {
81
+            "size": "64x64",
82
+            "idiom": "universal",
83
+            "filename": "icon-64@3x.png",
84
+            "scale": "3x",
85
+            "platform": "ios"
86
+        },
87
+        {
88
+            "size": "68x68",
89
+            "idiom": "universal",
90
+            "filename": "icon-68@2x.png",
91
+            "scale": "2x",
92
+            "platform": "ios"
93
+        },
94
+        {
95
+            "size": "76x76",
96
+            "idiom": "universal",
97
+            "filename": "icon-76@2x.png",
98
+            "scale": "2x",
99
+            "platform": "ios"
100
+        },
101
+        {
102
+            "size": "83.5x83.5",
103
+            "idiom": "universal",
104
+            "filename": "icon-83.5@2x.png",
105
+            "scale": "2x",
106
+            "platform": "ios"
107
+        },
108
+        {
109
+            "size": "1024x1024",
110
+            "idiom": "universal",
111
+            "filename": "icon-1024.png",
112
+            "scale": "1x",
113
+            "platform": "ios"
114
+        }
115
+    ],
116
+    "info": {
117
+        "version": 1,
118
+        "author": "icon.wuruihong.com"
116 119
     }
117
-  ],
118
-  "info" : {
119
-    "version" : 1,
120
-    "author" : "xcode"
121
-  }
122
-}
120
+}

バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-1024.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-38@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-38@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-64@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-64@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-68@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png ファイルの表示


+ 3
- 3
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json ファイルの表示

@@ -2,17 +2,17 @@
2 2
   "images" : [
3 3
     {
4 4
       "idiom" : "universal",
5
-      "filename" : "LaunchImage.png",
5
+      "filename" : "launch_image.png",
6 6
       "scale" : "1x"
7 7
     },
8 8
     {
9 9
       "idiom" : "universal",
10
-      "filename" : "LaunchImage@2x.png",
10
+      "filename" : "launch_image.png",
11 11
       "scale" : "2x"
12 12
     },
13 13
     {
14 14
       "idiom" : "universal",
15
-      "filename" : "LaunchImage@3x.png",
15
+      "filename" : "launch_image.png",
16 16
       "scale" : "3x"
17 17
     }
18 18
   ],

バイナリ
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png ファイルの表示


バイナリ
ios/Runner/Assets.xcassets/LaunchImage.imageset/launch_image.png ファイルの表示


+ 10
- 6
ios/Runner/Base.lproj/LaunchScreen.storyboard ファイルの表示

@@ -1,8 +1,10 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22155" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+    <device id="retina6_12" orientation="portrait" appearance="light"/>
3 4
     <dependencies>
4 5
         <deployment identifier="iOS"/>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22131"/>
7
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6 8
     </dependencies>
7 9
     <scenes>
8 10
         <!--View Controller-->
@@ -14,9 +16,11 @@
14 16
                         <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
15 17
                     </layoutGuides>
16 18
                     <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
19
+                        <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
17 20
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18 21
                         <subviews>
19
-                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
22
+                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" misplaced="YES" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
23
+                                <rect key="frame" x="0.0" y="0.0" width="393" height="818"/>
20 24
                             </imageView>
21 25
                         </subviews>
22 26
                         <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -28,10 +32,10 @@
28 32
                 </viewController>
29 33
                 <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
30 34
             </objects>
31
-            <point key="canvasLocation" x="53" y="375"/>
35
+            <point key="canvasLocation" x="80.152671755725194" y="264.08450704225356"/>
32 36
         </scene>
33 37
     </scenes>
34 38
     <resources>
35
-        <image name="LaunchImage" width="168" height="185"/>
39
+        <image name="LaunchImage" width="250" height="541.33331298828125"/>
36 40
     </resources>
37 41
 </document>

+ 8
- 5
ios/Runner/Base.lproj/Main.storyboard ファイルの表示

@@ -1,8 +1,10 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22155" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3
+    <device id="retina6_12" orientation="portrait" appearance="light"/>
3 4
     <dependencies>
4 5
         <deployment identifier="iOS"/>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22131"/>
7
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6 8
     </dependencies>
7 9
     <scenes>
8 10
         <!--Flutter View Controller-->
@@ -14,13 +16,14 @@
14 16
                         <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
15 17
                     </layoutGuides>
16 18
                     <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17
-                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19
+                        <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
18 20
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19
-                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
21
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20 22
                     </view>
21 23
                 </viewController>
22 24
                 <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
23 25
             </objects>
26
+            <point key="canvasLocation" x="-26" y="-76"/>
24 27
         </scene>
25 28
     </scenes>
26 29
 </document>

+ 12
- 4
ios/Runner/Info.plist ファイルの表示

@@ -2,6 +2,8 @@
2 2
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 3
 <plist version="1.0">
4 4
 <dict>
5
+	<key>CADisableMinimumFrameDurationOnPhone</key>
6
+	<true/>
5 7
 	<key>CFBundleDevelopmentRegion</key>
6 8
 	<string>$(DEVELOPMENT_LANGUAGE)</string>
7 9
 	<key>CFBundleDisplayName</key>
@@ -13,7 +15,7 @@
13 15
 	<key>CFBundleInfoDictionaryVersion</key>
14 16
 	<string>6.0</string>
15 17
 	<key>CFBundleName</key>
16
-	<string>worker_client</string>
18
+	<string>农机手</string>
17 19
 	<key>CFBundlePackageType</key>
18 20
 	<string>APPL</string>
19 21
 	<key>CFBundleShortVersionString</key>
@@ -24,8 +26,16 @@
24 26
 	<string>$(FLUTTER_BUILD_NUMBER)</string>
25 27
 	<key>LSRequiresIPhoneOS</key>
26 28
 	<true/>
29
+	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
30
+	<string>需要使用您的定位,显示农机车辆信息</string>
31
+	<key>NSLocationAlwaysUsageDescription</key>
32
+	<string>需要使用您的定位,显示农机车辆信息</string>
33
+	<key>NSLocationUsageDescription</key>
34
+	<string>需要使用您的定位,显示农机车辆信息</string>
35
+	<key>NSLocationWhenInUseUsageDescription</key>
36
+	<string>需要使用您的定位,显示农机车辆信息</string>
27 37
 	<key>UILaunchStoryboardName</key>
28
-	<string>LaunchScreen</string>
38
+	<string>LaunchScreen.storyboard</string>
29 39
 	<key>UIMainStoryboardFile</key>
30 40
 	<string>Main</string>
31 41
 	<key>UISupportedInterfaceOrientations</key>
@@ -43,7 +53,5 @@
43 53
 	</array>
44 54
 	<key>UIViewControllerBasedStatusBarAppearance</key>
45 55
 	<false/>
46
-	<key>CADisableMinimumFrameDurationOnPhone</key>
47
-	<true/>
48 56
 </dict>
49 57
 </plist>

+ 2
- 1
lib/utils/location.dart ファイルの表示

@@ -38,7 +38,8 @@ Future _requirePermission() async {
38 38
     // 如果未允许, 尝试申请一次
39 39
     _permissionGranted = await Permission.location.request();
40 40
     if (_permissionGranted != PermissionStatus.granted) {
41
-      throw Exception("请设置允许当前程序定位功能");
41
+      // throw Exception("请设置允许当前程序定位功能");
42
+      openAppSettings();
42 43
     }
43 44
   }
44 45
 }