diff --git a/app/build.gradle.kts b/app/build.gradle.kts index dea6eae..78fc894 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.hoker.intra_example" minSdk = 28 targetSdk = 35 - versionCode = 130 - versionName = "1.3.0" + versionCode = 131 + versionName = "1.3.1" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/intra/build.gradle.kts b/intra/build.gradle.kts index 2314618..4243c1e 100644 --- a/intra/build.gradle.kts +++ b/intra/build.gradle.kts @@ -61,7 +61,7 @@ afterEvaluate { from(components["release"]) groupId = "com.github.CarbideCowboy" artifactId = "Intra" - version = "1.3.0" + version = "1.3.1" } } } diff --git a/intra/src/main/java/com/hoker/intra/data/IsodepControllerImpl.kt b/intra/src/main/java/com/hoker/intra/data/IsodepControllerImpl.kt index 9767eb8..ff748d6 100644 --- a/intra/src/main/java/com/hoker/intra/data/IsodepControllerImpl.kt +++ b/intra/src/main/java/com/hoker/intra/data/IsodepControllerImpl.kt @@ -288,7 +288,7 @@ class IsodepControllerImpl @Inject constructor( } } - override suspend fun getNdefMessage(ndef: Ndef): OperationResult { + override suspend fun getNdefMessage(ndef: Ndef): OperationResult { return try { val result = ndef.cachedNdefMessage OperationResult.Success(result) diff --git a/intra/src/main/java/com/hoker/intra/data/NfcAControllerImpl.kt b/intra/src/main/java/com/hoker/intra/data/NfcAControllerImpl.kt index 9815ecc..aa656dc 100644 --- a/intra/src/main/java/com/hoker/intra/data/NfcAControllerImpl.kt +++ b/intra/src/main/java/com/hoker/intra/data/NfcAControllerImpl.kt @@ -217,7 +217,7 @@ class NfcAControllerImpl @Inject constructor( return OperationResult.Failure(Exception("This operation is not currently supported with NfcA")) } - override suspend fun getNdefMessage(ndef: Ndef): OperationResult { + override suspend fun getNdefMessage(ndef: Ndef): OperationResult { return try { val result = ndef.cachedNdefMessage OperationResult.Success(result) diff --git a/intra/src/main/java/com/hoker/intra/data/NfcVControllerImpl.kt b/intra/src/main/java/com/hoker/intra/data/NfcVControllerImpl.kt index f3bcbe0..589726f 100644 --- a/intra/src/main/java/com/hoker/intra/data/NfcVControllerImpl.kt +++ b/intra/src/main/java/com/hoker/intra/data/NfcVControllerImpl.kt @@ -231,7 +231,7 @@ class NfcVControllerImpl @Inject constructor( } } - override suspend fun getNdefMessage(ndef: Ndef): OperationResult { + override suspend fun getNdefMessage(ndef: Ndef): OperationResult { return try { val result = ndef.cachedNdefMessage OperationResult.Success(result) diff --git a/intra/src/main/java/com/hoker/intra/domain/NfcController.kt b/intra/src/main/java/com/hoker/intra/domain/NfcController.kt index 039e6c6..c906ee9 100644 --- a/intra/src/main/java/com/hoker/intra/domain/NfcController.kt +++ b/intra/src/main/java/com/hoker/intra/domain/NfcController.kt @@ -17,7 +17,7 @@ interface NfcController { suspend fun writeNdefMessage(tag: Tag, message: NdefMessage): OperationResult suspend fun getVivokeyJwt(tag: Tag): OperationResult suspend fun getNdefCapacity(ndef: Ndef): OperationResult - suspend fun getNdefMessage(ndef: Ndef): OperationResult + suspend fun getNdefMessage(ndef: Ndef): OperationResult suspend fun checkConnection(): OperationResult suspend fun withNdefConnection(tag: Tag, operations: suspend (ndef: Ndef) -> Unit): OperationResult { return try {