Skip to content

Commit

Permalink
Add revision: v1.26.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GovernikusAusweisApp2 committed Apr 28, 2023
1 parent ac686f3 commit e6422c7
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext.kotlin_version = '1.8.10'
ext.sdkwrapper_version = "1.26.3.0"
ext.sdkwrapper_version = "1.26.4.0"

repositories {
google()
Expand Down
2 changes: 2 additions & 0 deletions libs/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('ausweisapp2.aar'))
17 changes: 15 additions & 2 deletions sdkwrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,23 @@ afterEvaluate {
}
}

def useLocal = file("${rootDir}/libs/ausweisapp2.aar").exists();

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
if (useLocal) {
implementation project(':libs')
if(useLocal) {
println "⚠ ⚠ ⚠ ⚠ WARNING ⚠ ⚠ ⚠ ⚠\n" +
" Using local SDK might be outdated \n" +
"⚠ Delete local SDK in lib folder to ⚠\n" +
" use latest version! \n" +
"⚠ ⚠ ⚠ ⚠ WARNING ⚠ ⚠ ⚠ ⚠"
}
}
else {
implementation 'com.governikus:ausweisapp:1.26.4'
}

implementation "com.governikus:ausweisapp:1.26.3"
implementation 'com.google.code.gson:gson:2.10.1'

testImplementation "junit:junit:4.13.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class WorkflowController internal constructor(private val sdkConnection: SdkConn
callback { onChangePinStarted() }
}
else -> {
callback { onChangePinCompleted(ChangePinResult(message.success)) }
callback { onChangePinCompleted(ChangePinResult(message.success, message.reason)) }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,14 @@ data class AuthResult(
/**
* Final result of a PIN change.
*
* @property success True if a the PIN has been successfully set, else false
* @property success True if a the PIN has been successfully set, else false.
* @property reason Unique error code if the PIN change failed.
*/

@Parcelize
data class ChangePinResult(
val success: Boolean
val success: Boolean,
val reason: String?
) : Parcelable

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ internal class AA2SdkConnection : WorkflowController.SdkConnection {

return try {
val messageJson = gson.toJson(command)
Log.d(TAG, "Send message: $messageJson")
sdk.send(sessionId, messageJson)
} catch (e: RemoteException) {
Log.d(TAG, "Could not send command", e)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':tester', ':sdkwrapper'
include ':tester', ':sdkwrapper', ':libs'
2 changes: 1 addition & 1 deletion third_party_licenses/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ com.google.code.gson:gson:2.10.1
OPEN-SOURCE-LIZENZ FÜR DIE EUROPÄISCHE UNION - EUPL.md
======================================================

com.governikus:ausweisapp:1.26.3
com.governikus:ausweisapp:1.26.4

0 comments on commit e6422c7

Please sign in to comment.