Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
895 additions
and
119 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release a new version from master | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version of the library' | ||
required: true | ||
command: | ||
description: 'Library deploy command' | ||
required: false | ||
default: prepare push deploy -v2 --any-branch | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Make sure we're on master branch | ||
run: | | ||
[[ $GITHUB_REF == "refs/heads/master" ]] || exit 1 | ||
- name: "Prepare bintray credentials" | ||
run: echo -e "bintray.user=${{ secrets.PUBLISH_BINTRAY_USER }}\nbintray.apiKey=${{ secrets.PUBLISH_BINTRAY_APIKEY }}\nbintray.userOrg=${{ secrets.PUBLISH_BINTRAY_USERORG }}" > local.properties | ||
- name: Publish the library | ||
uses: kober32/library-deploy@develop | ||
with: | ||
script-parameters: ${{ github.event.inputs.version }} ${{ github.event.inputs.command }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Note that following values are just placeholders. | ||
# You need to provide valid configuration or all the tests will fail. | ||
|
||
tests.sdk.paServerUrl="http://localhost:8081/powerauth-java-server" | ||
tests.sdk.nextStepServerUrl="http://localhost:13010/powerauth-nextstep" | ||
tests.sdk.enrollmentServerUrl="http://localhost:8080/powerauth-webflow" | ||
tests.sdk.operationsServerUrl="http://localhost:8080/powerauth-webflow" | ||
|
||
# Configuration of the PowerAuth server | ||
tests.sdk.appKey="" | ||
tests.sdk.appSecret="" | ||
tests.sdk.masterServerPublicKey="" | ||
tests.sdk.appId="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Logging | ||
|
||
For logging purposes, WMT uses `Logger` class inside the `com.wultra.android.mtokensdk.common` package that prints to the console. | ||
|
||
_Note that `Logger` is internally using `android.util.Log` class with verbosity ERROR, WARNING, and DEBUG and is subjected to its internal logic._ | ||
|
||
### Verbosity Level | ||
|
||
You can limit the amount of logged information via `verboseLevel` static property. | ||
|
||
| Level | Description | | ||
| --- | --- | | ||
| `OFF` | Silences all messages. | | ||
| `ERROR` | Only errors will be printed to the console. | | ||
| `WARNING` _(default)_ | Errors and warnings will be printed to the console. | | ||
| `DEBUG` | All messages will be printed to the console. | | ||
|
||
Example configuration: | ||
|
||
```kotlin | ||
import com.wultra.android.mtokensdk.common.Logger | ||
|
||
Logger.verboseLevel = Logger.VerboseLevel.DEBUG | ||
``` | ||
|
||
### Networking logs | ||
|
||
All requests and responses are logged in `DEBUG` level. | ||
|
||
_In case that you provided your own okhttp instance, you need to setup your own logging for monitoring the traffic via the okhttp interceptors._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
~ Copyright (c) 2020, Wultra s.r.o. (www.wultra.com). | ||
~ | ||
~ All rights reserved. This source code can be used only for purposes specified | ||
~ by the given license contract signed by the rightful deputy of Wultra s.r.o. | ||
~ This source code can be used only by the owner of the license. | ||
~ | ||
~ Any disputes arising in respect of this agreement (license) shall be brought | ||
~ before the Municipal Court of Prague. | ||
--> | ||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.wultra.android.mtokensdk.tests"> | ||
<application android:usesCleartextTraffic="true" /> | ||
</manifest> |
Oops, something went wrong.