Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BreastFeedingAI-Demo-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
BreastFeedingAI-Demo-iOS
Commits
f4939f54
Commit
f4939f54
authored
Jun 10, 2022
by
jzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0a6b1884
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
11 deletions
+32
-11
project.pbxproj
BreastFeedingDemo.xcodeproj/project.pbxproj
+4
-4
Main.storyboard
BreastFeedingDemo/Base.lproj/Main.storyboard
+1
-0
ViewController.swift
BreastFeedingDemo/ViewController.swift
+11
-6
report.xml
fastlane/report.xml
+16
-1
No files found.
BreastFeedingDemo.xcodeproj/project.pbxproj
View file @
f4939f54
...
...
@@ -453,7 +453,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
7
;
CURRENT_PROJECT_VERSION
=
8
;
DEVELOPMENT_TEAM
=
W3C84P5FPS
;
FRAMEWORK_SEARCH_PATHS
=
"$(PROJECT_DIR)/Flutter"
;
GENERATE_INFOPLIST_FILE
=
YES
;
...
...
@@ -465,7 +465,7 @@
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone
=
UIInterfaceOrientationPortrait
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
LD_RUNPATH_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -487,7 +487,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
7
;
CURRENT_PROJECT_VERSION
=
8
;
DEVELOPMENT_TEAM
=
W3C84P5FPS
;
FRAMEWORK_SEARCH_PATHS
=
"$(PROJECT_DIR)/Flutter"
;
GENERATE_INFOPLIST_FILE
=
YES
;
...
...
@@ -499,7 +499,7 @@
INFOPLIST_KEY_UILaunchStoryboardName
=
LaunchScreen
;
INFOPLIST_KEY_UIMainStoryboardFile
=
Main
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone
=
"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone
=
UIInterfaceOrientationPortrait
;
IPHONEOS_DEPLOYMENT_TARGET
=
13.0
;
LD_RUNPATH_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
BreastFeedingDemo/Base.lproj/Main.storyboard
View file @
f4939f54
...
...
@@ -285,6 +285,7 @@
</state>
<connections>
<action
selector=
"dismissPermissimPanel:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"JeK-e2-Qpc"
/>
<action
selector=
"toSetting:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"zrR-Uc-sos"
/>
</connections>
</button>
</subviews>
...
...
BreastFeedingDemo/ViewController.swift
View file @
f4939f54
...
...
@@ -51,10 +51,6 @@ class ViewController: UIViewController {
updateUI
()
popupView
.
isHidden
=
true
AVCaptureDevice
.
requestAccess
(
for
:
.
video
,
completionHandler
:
{
accessGranted
in
guard
accessGranted
==
true
else
{
return
}
})
if
let
flutterEngine
=
(
UIApplication
.
shared
.
delegate
as?
AppDelegate
)?
.
flutterEngine
{
methodChannel
=
FlutterMethodChannel
(
name
:
"com.wmdigit.breastcoachai.native"
,
binaryMessenger
:
flutterEngine
.
binaryMessenger
)
...
...
@@ -88,10 +84,12 @@ class ViewController: UIViewController {
}
}
func
checkCameraPermission
()
->
Bool
{
func
checkCameraPermission
()
->
Bool
?
{
let
cameraAuthorizationStatus
=
AVCaptureDevice
.
authorizationStatus
(
for
:
.
video
)
switch
cameraAuthorizationStatus
{
case
.
notDetermined
:
return
nil
case
.
authorized
:
return
true
default
:
...
...
@@ -113,10 +111,17 @@ class ViewController: UIViewController {
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
@IBAction
func
toSetting
(
_
sender
:
Any
)
{
if
let
appSettingsURL
=
URL
(
string
:
UIApplication
.
openSettingsURLString
)
{
UIApplication
.
shared
.
open
(
appSettingsURL
)
}
}
@IBAction
func
tapStart
(
_
sender
:
Any
)
{
if
!
checkCameraPermission
()
{
if
checkCameraPermission
()
==
false
{
return
}
if
!
isFirstLoad
{
methodChannel
?
.
invokeMethod
(
"reload"
,
arguments
:
nil
)
}
...
...
fastlane/report.xml
View file @
f4939f54
...
...
@@ -5,7 +5,22 @@
<testcase
classname=
"fastlane.lanes"
name=
"0: default_platform"
time=
"0.000447"
>
<testcase
classname=
"fastlane.lanes"
name=
"0: default_platform"
time=
"0.001161"
>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"1: increment_build_number"
time=
"1.9222"
>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"2: gym"
time=
"318.368595"
>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"3: pgyer"
time=
"6.352528"
>
</testcase>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment