File tree Expand file tree Collapse file tree
src/iosMain/kotlin/com/linecorp/abc/location Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.cli.common.toBooleanLenient
22import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
33
44val isSnapshotUpload = System .getProperty(" snapshot" ).toBooleanLenient() ? : false
5- val libVersion = " 0.2.8 "
5+ val libVersion = " 0.2.9 "
66val gitName = " abc-${project.name} "
77
88buildscript {
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = 'kmm_location'
3- spec . version = '0.2.8 '
3+ spec . version = '0.2.9 '
44 spec . homepage = ''
55 spec . source = { :git => "Not Published" , :tag => "Cocoapods/#{ spec . name } /#{ spec . version } " }
66 spec . authors = ''
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66 kotlin(" native.cocoapods" )
77}
88
9- val abcLocationLib = " com.linecorp.abc:kmm-location:0.2.8 "
9+ val abcLocationLib = " com.linecorp.abc:kmm-location:0.2.9 "
1010
1111version = " 1.0"
1212
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ internal actual class LocationManager {
1616 // -------------------------------------------------------------------------------------------
1717
1818 actual fun isPermissionAllowed () =
19- authorizationStatus == requiredPermission
19+ authorizationStatus == requiredPermission.value
2020
2121 actual fun removeAllListeners () {
2222 onAlwaysAllowsPermissionRequiredBlockMap.value = emptyMap()
@@ -58,7 +58,7 @@ internal actual class LocationManager {
5858 // Public
5959 // -------------------------------------------------------------------------------------------
6060
61- var requiredPermission = LocationAuthorizationStatus .AuthorizedAlways
61+ val requiredPermission = NativeAtomicReference ( LocationAuthorizationStatus .AuthorizedAlways )
6262 val previousAuthorizationStatus = NativeAtomicReference (LocationAuthorizationStatus .NotSet )
6363
6464 fun onAlwaysAllowsPermissionRequired (
@@ -79,7 +79,7 @@ internal actual class LocationManager {
7979 // -------------------------------------------------------------------------------------------
8080
8181 private val isRequiredAllowAlways: Boolean
82- get() = requiredPermission == LocationAuthorizationStatus .AuthorizedAlways
82+ get() = requiredPermission.value == LocationAuthorizationStatus .AuthorizedAlways
8383
8484 private val authorizationStatus: LocationAuthorizationStatus
8585 get() = if (Version (UIDevice .currentDevice.systemVersion) >= Version (" 14" )) {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import com.linecorp.abc.location.LocationAuthorizationStatus
77typealias OnAlwaysAllowsPermissionRequiredBlock = () -> Unit
88
99var ABCLocation .Companion .requiredPermission: LocationAuthorizationStatus
10- get() = locationManager.requiredPermission
11- set(value) { locationManager.requiredPermission = value }
10+ get() = locationManager.requiredPermission.value
11+ set(value) { locationManager.requiredPermission.value = value }
1212
1313fun ABCLocation.Companion.onAlwaysAllowsPermissionRequired (
1414 target : Any ,
You can’t perform that action at this time.
0 commit comments