Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
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
CpjJwWHV
Sailassist
Commits
c3dcabeb
Commit
c3dcabeb
authored
Apr 03, 2024
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECAタスク有効のままアプリをアップデートするとクラッシュする不具合を修正
parent
503948c3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
19 deletions
+22
-19
project.pbxproj
Seilassist/Sailassist.xcodeproj/project.pbxproj
+6
-6
EcaArea.swift
Seilassist/Sailassist/ECA/EcaArea.swift
+3
-1
EcaTask.swift
Seilassist/Sailassist/ECA/EcaTask.swift
+10
-9
LocationViewModel.swift
Seilassist/Sailassist/LocationViewModel.swift
+3
-0
LoginView.swift
Seilassist/Sailassist/Login/LoginView.swift
+0
-3
No files found.
Seilassist/Sailassist.xcodeproj/project.pbxproj
View file @
c3dcabeb
...
@@ -1238,7 +1238,7 @@
...
@@ -1238,7 +1238,7 @@
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
0
;
CURRENT_PROJECT_VERSION
=
2
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
@@ -1262,7 +1262,7 @@
...
@@ -1262,7 +1262,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.0.
1
;
MARKETING_VERSION
=
1.0.
2
;
OTHER_SWIFT_FLAGS
=
"-D CANARY -D COCOAPODS"
;
OTHER_SWIFT_FLAGS
=
"-D CANARY -D COCOAPODS"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist.canary
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist.canary
;
PRODUCT_NAME
=
"Sail Assist"
;
PRODUCT_NAME
=
"Sail Assist"
;
...
@@ -1284,7 +1284,7 @@
...
@@ -1284,7 +1284,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
0
;
CURRENT_PROJECT_VERSION
=
2
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
@@ -1305,7 +1305,7 @@
...
@@ -1305,7 +1305,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.0.
1
;
MARKETING_VERSION
=
1.0.
2
;
OTHER_SWIFT_FLAGS
=
"-D COCOAPODS"
;
OTHER_SWIFT_FLAGS
=
"-D COCOAPODS"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist
;
PRODUCT_NAME
=
"Sail Assist"
;
PRODUCT_NAME
=
"Sail Assist"
;
...
@@ -1468,7 +1468,7 @@
...
@@ -1468,7 +1468,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
0
;
CURRENT_PROJECT_VERSION
=
2
2
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
ENABLE_PREVIEWS
=
YES
;
...
@@ -1492,7 +1492,7 @@
...
@@ -1492,7 +1492,7 @@
"$(inherited)"
,
"$(inherited)"
,
"@executable_path/Frameworks"
,
"@executable_path/Frameworks"
,
);
);
MARKETING_VERSION
=
1.0.
1
;
MARKETING_VERSION
=
1.0.
2
;
OTHER_SWIFT_FLAGS
=
"-D QC -D COCOAPODS"
;
OTHER_SWIFT_FLAGS
=
"-D QC -D COCOAPODS"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist.qc
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.jrc.sailassist.qc
;
PRODUCT_NAME
=
"Sail Assist"
;
PRODUCT_NAME
=
"Sail Assist"
;
...
...
Seilassist/Sailassist/ECA/EcaArea.swift
View file @
c3dcabeb
...
@@ -57,12 +57,14 @@ class EcaArea {
...
@@ -57,12 +57,14 @@ class EcaArea {
}
}
func
start
()
{
func
start
()
{
print
(
debug
:
"called"
)
tableInit
()
tableInit
()
sessionEcaArea
.
RequestEcaArea
(
responseEcaArea
)
sessionEcaArea
.
RequestEcaArea
(
responseEcaArea
)
}
}
/**
* ECA領域読み込み
*/
private
func
responseEcaArea
(
result
:
Result
<
Data
,
APIError
>
)
{
private
func
responseEcaArea
(
result
:
Result
<
Data
,
APIError
>
)
{
print
(
debug
:
"called"
)
print
(
debug
:
"called"
)
switch
result
{
switch
result
{
...
...
Seilassist/Sailassist/ECA/EcaTask.swift
View file @
c3dcabeb
...
@@ -49,7 +49,6 @@ class EcaTask {
...
@@ -49,7 +49,6 @@ class EcaTask {
SharingData
.
location
.
setLocation
()
SharingData
.
location
.
setLocation
()
print
(
debug
:
"Location:
\(
res
)
"
)
print
(
debug
:
"Location:
\(
res
)
"
)
checkEca
()
}
}
case
.
failure
(
let
errorCode
):
case
.
failure
(
let
errorCode
):
print
(
debug
:
errorCode
)
print
(
debug
:
errorCode
)
...
@@ -60,22 +59,23 @@ class EcaTask {
...
@@ -60,22 +59,23 @@ class EcaTask {
func
checkEca
()
{
func
checkEca
()
{
let
runningEca
=
eca
.
ecaArea
.
first
(
where
:
{(
key
,
value
)
in
value
.
isRunning
==
true
})
let
runningEca
=
eca
.
ecaArea
.
first
(
where
:
{(
key
,
value
)
in
value
.
isRunning
==
true
})
if
let
eca
=
runningEca
?
.
value
{
if
let
eca
=
runningEca
?
.
value
{
if
eca
.
points
.
count
!=
0
{
if
let
location
=
SharingData
.
location
.
location
{
if
let
location
=
SharingData
.
location
.
location
{
if
let
distance
=
LocationCalculation
.
checkPolyline
(
objPos
:
eca
.
points
,
shipPos
:
location
){
if
let
distance
=
LocationCalculation
.
checkPolyline
(
objPos
:
eca
.
points
,
shipPos
:
location
){
if
SharingData
.
my
.
ecaStatus
==
nil
{
if
SharingData
.
my
.
ecaStatus
==
nil
{
SharingData
.
my
.
ecaStatus
=
EcaState
.
running
SharingData
.
my
.
ecaStatus
=
EcaState
.
running
}
}
// if 0.0 >= Float(distance) && SharingData.my.ecaStatus != EcaState.incomplete{
// if 0.0 >= Float(distance) && SharingData.my.ecaStatus != EcaState.incomplete{
// SharingData.my.ecaStatus = EcaState.incomplete
// SharingData.my.ecaStatus = EcaState.incomplete
// var newData = eca
// var newData = eca
// newData.isRunning = false
// newData.isRunning = false
// newData.status = EcaState.incomplete
// newData.status = EcaState.incomplete
// SharingData.eca.editEcaArea(key: eca.name, value: newData, type: EcaOperation.Incomplete)
// SharingData.eca.editEcaArea(key: eca.name, value: newData, type: EcaOperation.Incomplete)
// }
// }
if
eca
.
swFinish
>=
Float
(
distance
)
&&
0.0
<
Float
(
distance
)
&&
SharingData
.
my
.
ecaStatus
!=
EcaState
.
finishPass
{
if
eca
.
swFinish
>=
Float
(
distance
)
&&
0.0
<
Float
(
distance
)
&&
SharingData
.
my
.
ecaStatus
!=
EcaState
.
finishPass
{
// notificationEca(point: SwitchingEca.Finish)
// notificationEca(point: SwitchingEca.Finish)
SharingData
.
eca
.
isShowEcaAlert
=
true
SharingData
.
eca
.
isShowEcaAlert
=
true
SharingData
.
my
.
ecaStatus
=
EcaState
.
finishPass
SharingData
.
my
.
ecaStatus
=
EcaState
.
finishPass
...
@@ -102,6 +102,7 @@ class EcaTask {
...
@@ -102,6 +102,7 @@ class EcaTask {
}
}
}
}
}
}
}
}
else
{
}
else
{
if
SharingData
.
my
.
ecaStatus
!=
nil
{
if
SharingData
.
my
.
ecaStatus
!=
nil
{
SharingData
.
my
.
ecaStatus
=
nil
SharingData
.
my
.
ecaStatus
=
nil
...
...
Seilassist/Sailassist/LocationViewModel.swift
View file @
c3dcabeb
...
@@ -16,6 +16,9 @@ class LocationViewModel: NSObject, ObservableObject, CLLocationManagerDelegate {
...
@@ -16,6 +16,9 @@ class LocationViewModel: NSObject, ObservableObject, CLLocationManagerDelegate {
let
ecaTask
=
EcaTask
()
let
ecaTask
=
EcaTask
()
override
init
()
{
override
init
()
{
let
ecaArea
=
EcaArea
()
ecaArea
.
start
()
locationManager
=
CLLocationManager
()
locationManager
=
CLLocationManager
()
authorizationStatus
=
locationManager
.
authorizationStatus
authorizationStatus
=
locationManager
.
authorizationStatus
...
...
Seilassist/Sailassist/Login/LoginView.swift
View file @
c3dcabeb
...
@@ -207,9 +207,6 @@ struct LoginView: View {
...
@@ -207,9 +207,6 @@ struct LoginView: View {
Preferences
.
lastLoginDate_Int64
=
DateTextLib
.
Date2UnixTime
(
date
:
Date
())
Preferences
.
lastLoginDate_Int64
=
DateTextLib
.
Date2UnixTime
(
date
:
Date
())
isLogin
=
true
isLogin
=
true
let
ecaArea
=
EcaArea
()
ecaArea
.
start
()
timer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
TimerInterval
,
repeats
:
true
)
{
_
in
timer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
TimerInterval
,
repeats
:
true
)
{
_
in
print
(
debug
:
"called timer"
)
print
(
debug
:
"called timer"
)
let
eca
=
EcaTask
()
let
eca
=
EcaTask
()
...
...
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