Skip to content

Commit

Permalink
Merge branch 'master' of github.com:journeyapps/zxing-android-embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Feb 11, 2020
2 parents c555ffb + 545672b commit 5a2470f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
23 changes: 14 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,22 @@ android:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

branches:
only:
- master

before_install:
# Android SDK installation is a mess, especially with licenses. Not sure if all of this is required, but it works.
- echo "$ANDROID_HOME"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- yes | sdkmanager "platforms;android-27"
# Android SDK installation is a mess, especially with licenses. Not sure if all of this is required, but it works.
- echo "$ANDROID_HOME"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- yes | sdkmanager "platforms;android-27"

script:
# build includes lint and test
- TERM=dumb ./gradlew build
# build includes lint and test
- TERM=dumb ./gradlew build

after_failure:
- cat **/build/reports/lint-results.xml
- cat **/build/reports/lint-results.xml
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ No guarantees are made on support for older SDK versions - you'll have to test t

## Adding aar dependency with Gradle

From version 4.0.0, only Android SDK 24+ is supported by default, and androidx is required.
From version 4.0.2, only Android SDK 24+ is supported by default, and androidx is required.

Add the following to your `build.gradle` file:

Expand All @@ -35,7 +35,7 @@ repositories {
}
dependencies {
implementation 'com.journeyapps:zxing-android-embedded:4.0.0'
implementation 'com.journeyapps:zxing-android-embedded:4.0.2'
implementation 'androidx.appcompat:appcompat:1.0.2'
}
Expand All @@ -53,7 +53,7 @@ repositories {
}
dependencies {
implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
implementation('com.journeyapps:zxing-android-embedded:4.0.2') { transitive = false }
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.zxing:core:3.3.0'
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
Expand Down
1 change: 0 additions & 1 deletion sample/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion zxing-android-embedded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {

api 'androidx.legacy:legacy-support-v4:1.0.0'

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13'
testImplementation "org.mockito:mockito-core:1.9.5"
}

Expand Down

0 comments on commit 5a2470f

Please sign in to comment.