Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ language: android
android:
components:
# The BuildTools version used by your project
- build-tools-23.0.2
- build-tools-27.0.3

# The SDK version used to compile your project
- android-23
- android-27
jdk:
- oraclejdk7
- oraclejdk8
before_install:
- yes | sdkmanager "platforms;android-27"
- echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
- sudo apt-get update -qq
- sudo apt-get install -qq -y --force-yes sbt
Expand Down
2 changes: 1 addition & 1 deletion android/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import android.Keys._

android.Plugin.androidBuildAar

platformTarget in Android := "android-23"
platformTarget in Android := "android-27"

name := "nordpol-android"

Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/nordpol/AndroidCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class AndroidCard implements IsoCard {

private AndroidCard(IsoDep card) {
this.card = card;
card.setTimeout(DEFAULT_TIMEOUT);
}

public static AndroidCard get(Tag tag) throws IOException {
Expand Down Expand Up @@ -60,7 +61,6 @@ public boolean isConnected() {
public void connect() throws IOException {
try {
card.connect();
card.setTimeout(DEFAULT_TIMEOUT);
} catch(IOException e) {
notifyListeners(e);
throw e;
Expand Down