Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2023-09-15 14:45:56 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8ef7b359433624a1d11e548d4e4629b351a82389
8ef7b359
1 parent
2c5e72ea
telematics registerSensor fix
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/TelematicsViewController.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
8ef7b35
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
8ef7b35
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8ef7b35
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/TelematicsViewController.swift
View file @
8ef7b35
...
...
@@ -14,6 +14,8 @@ import CoreMotion
// MARK: Constants and Properties
private
var
mIsTripStarted
=
false
private
var
hasLocationPermissions
=
false
private
var
isFirstLoad
=
true
private
var
mAccelerationTimestamps
=
[[
String
:
Any
]]()
private
var
locationManager
:
CLLocationManager
!
private
var
motionManager
:
CMMotionManager
!
...
...
@@ -68,6 +70,8 @@ import CoreMotion
accelerationLimitTextField
.
delegate
=
self
sampleTimeTextField
.
delegate
=
self
hasLocationPermissions
=
authorizationStatusIsGranted
(
status
:
CLLocationManager
.
authorizationStatus
())
orientationCountLabel
.
text
=
"0"
touchCountLabel
.
text
=
"0"
recordsSavedLabel
.
text
=
"0"
...
...
@@ -451,8 +455,13 @@ import CoreMotion
func
onAuthorizationStatusIsGranted
()
{
// print("=== onAuthorizationStatusIsGranted === ")
locationManager
.
startUpdatingLocation
();
// registerSensor()
if
(
!
isFirstLoad
||
(
isFirstLoad
&&
!
hasLocationPermissions
))
{
registerSensor
()
}
hasLocationPermissions
=
true
isFirstLoad
=
false
}
func
onAuthorizationStatusIsDenied
()
{
...
...
Please
register
or
login
to post a comment