@@ -13,19 +13,11 @@ Features:
1313
1414A sample application is available in [ Releases] ( https://github.com/journeyapps/zxing-android-embedded/releases ) .
1515
16- By default, Android SDK 24+ is required because of ` zxing:core ` 3.4.0.
17- To support SDK 14+, downgrade ` zxing:core ` to 3.3.0 -
18- see [ instructions] ( #adding-aar-dependency-with-gradle ) . You'll also need this in your Android manifest:
19-
20- ``` xml
21- <uses-sdk tools : overrideLibrary =" com.google.zxing.client.android" />
22- ```
23-
24- No guarantees are made on support for older SDK versions - you'll have to test to make sure it's compatible.
16+ By default, Android SDK 24+ is required because of ` zxing:core ` 3.4.0. To support SDK 14+, see [ Older SDK versions] ( #older-sdk-versions ) .
2517
2618## Adding aar dependency with Gradle
2719
28- From version 4.0.2 , only Android SDK 24+ is supported by default, and androidx is required.
20+ From version 4.x , only Android SDK 24+ is supported by default, and androidx is required.
2921
3022Add the following to your ` build.gradle ` file:
3123
@@ -35,7 +27,7 @@ repositories {
3527}
3628
3729dependencies {
38- implementation 'com.journeyapps:zxing-android-embedded:4.0.2 '
30+ implementation 'com.journeyapps:zxing-android-embedded:4.1.0 '
3931 implementation 'androidx.appcompat:appcompat:1.0.2'
4032}
4133
@@ -45,15 +37,17 @@ android {
4537
4638```
4739
48- For Android 14+ support, downgrade ` zxing:core ` to 3.3.0 or earlier:
40+ ## Older SDK versions
41+
42+ For Android SDK versions < 24, you can downgrade ` zxing:core ` to 3.3.0 or earlier for Android 14+ support:
4943
5044``` groovy
5145repositories {
5246 jcenter()
5347}
5448
5549dependencies {
56- implementation('com.journeyapps:zxing-android-embedded:4.0.2 ') { transitive = false }
50+ implementation('com.journeyapps:zxing-android-embedded:4.1.0 ') { transitive = false }
5751 implementation 'androidx.appcompat:appcompat:1.0.2'
5852 implementation 'com.google.zxing:core:3.3.0'
5953}
@@ -63,6 +57,13 @@ android {
6357}
6458
6559```
60+ You'll also need this in your Android manifest:
61+
62+ ``` xml
63+ <uses-sdk tools : overrideLibrary =" com.google.zxing.client.android" />
64+ ```
65+
66+ No guarantees are made on support for older SDK versions - you'll have to test to make sure it's compatible.
6667
6768## Hardware Acceleration
6869
0 commit comments