File tree 11 files changed +41
-27
lines changed
androidTest/java/com/blikoon/qrcodescannerlibrary
java/com/blikoon/qrcodescannerlibrary
androidTest/java/com/blikoon/qrcodescanner
main/java/com/blikoon/qrcodescanner/decode
11 files changed +41
-27
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion " 25.0.2 "
4
+ compileSdkVersion 28
5
+ buildToolsVersion " 25.0.3 "
6
6
defaultConfig {
7
7
applicationId " com.blikoon.qrcodescannerlibrary"
8
8
minSdkVersion 15
9
- targetSdkVersion 25
9
+ targetSdkVersion 28
10
10
versionCode 1
11
11
versionName " 1.0"
12
- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
12
+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
13
13
}
14
14
buildTypes {
15
15
release {
@@ -21,11 +21,11 @@ android {
21
21
22
22
dependencies {
23
23
compile fileTree(include : [' *.jar' ], dir : ' libs' )
24
- androidTestCompile(' com.android.support. test.espresso:espresso-core:2.2.2 ' , {
24
+ androidTestCompile(' androidx. test.espresso:espresso-core:3.1.0-alpha4 ' , {
25
25
exclude group : ' com.android.support' , module : ' support-annotations'
26
26
})
27
- compile ' com.android.support :appcompat-v7:25.3.1 '
28
- compile ' com.android.support.constraint:constraint-layout :1.0.2 '
27
+ compile ' androidx.appcompat :appcompat:1.0.2 '
28
+ compile ' androidx.constraintlayout:constraintlayout :1.1.3 '
29
29
testCompile ' junit:junit:4.12'
30
30
compile project(' :qrcodescanner' )
31
31
}
Original file line number Diff line number Diff line change 1
1
package com .blikoon .qrcodescannerlibrary ;
2
2
3
3
import android .content .Context ;
4
- import android .support .test .InstrumentationRegistry ;
5
- import android .support .test .runner .AndroidJUnit4 ;
6
4
7
5
import org .junit .Test ;
8
6
import org .junit .runner .RunWith ;
9
7
10
- import static org .junit .Assert .*;
8
+ import androidx .test .InstrumentationRegistry ;
9
+ import androidx .test .runner .AndroidJUnit4 ;
10
+
11
+ import static org .junit .Assert .assertEquals ;
11
12
12
13
/**
13
14
* Instrumentation test, which will execute on an Android device.
Original file line number Diff line number Diff line change 3
3
import android .app .Activity ;
4
4
import android .content .DialogInterface ;
5
5
import android .content .Intent ;
6
- import android . support . v7 .app .AlertDialog ;
7
- import android . support . v7 .app .AppCompatActivity ;
6
+ import androidx . appcompat .app .AlertDialog ;
7
+ import androidx . appcompat .app .AppCompatActivity ;
8
8
import android .os .Bundle ;
9
9
import android .util .Log ;
10
10
import android .view .View ;
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <android .support.constraint .ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <androidx .constraintlayout.widget .ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
5
android : layout_width =" match_parent"
16
16
app : layout_constraintRight_toRightOf =" parent"
17
17
app : layout_constraintTop_toTopOf =" parent" />
18
18
19
- </android .support.constraint .ConstraintLayout>
19
+ </androidx .constraintlayout.widget .ConstraintLayout>
Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
repositories {
5
5
jcenter()
6
+ maven {
7
+ url ' https://maven.google.com/'
8
+ name ' Google'
9
+ }
6
10
}
7
11
dependencies {
8
- classpath ' com.android.tools.build:gradle:2.3 .1'
12
+ classpath ' com.android.tools.build:gradle:3.2 .1'
9
13
10
14
// NOTE: Do not place your application dependencies here; they belong
11
15
// in the individual module build.gradle files
@@ -15,6 +19,10 @@ buildscript {
15
19
allprojects {
16
20
repositories {
17
21
jcenter()
22
+ maven {
23
+ url ' https://maven.google.com/'
24
+ name ' Google'
25
+ }
18
26
}
19
27
}
20
28
Original file line number Diff line number Diff line change 9
9
10
10
# Specifies the JVM arguments used for the daemon process.
11
11
# The setting is particularly useful for tweaking memory settings.
12
+ android.enableJetifier =true
13
+ android.useAndroidX =true
12
14
org.gradle.jvmargs =-Xmx1536m
13
15
14
16
# When configured, Gradle will run in incubating parallel mode.
Original file line number Diff line number Diff line change 1
- # Thu May 04 18:47:52 CST 2017
1
+ # Tue Jan 15 08:38:58 CET 2019
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.6 -all.zip
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion " 25.0.2 "
4
+ compileSdkVersion 28
5
+ buildToolsVersion " 25.0.3 "
6
6
7
7
defaultConfig {
8
8
minSdkVersion 15
9
- targetSdkVersion 25
9
+ targetSdkVersion 28
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
13
- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
13
+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
14
14
15
15
}
16
16
buildTypes {
@@ -23,10 +23,10 @@ android {
23
23
24
24
dependencies {
25
25
compile fileTree(dir : ' libs' , include : [' *.jar' ])
26
- androidTestCompile(' com.android.support. test.espresso:espresso-core:2.2.2 ' , {
26
+ androidTestCompile(' androidx. test.espresso:espresso-core:3.1.0-alpha4 ' , {
27
27
exclude group : ' com.android.support' , module : ' support-annotations'
28
28
})
29
- compile ' com.android.support :appcompat-v7:25.3.1 '
29
+ compile ' androidx.appcompat :appcompat:1.0.2 '
30
30
testCompile ' junit:junit:4.12'
31
31
compile ' com.google.zxing:core:3.3.0'
32
32
}
Original file line number Diff line number Diff line change 1
1
package com .blikoon .qrcodescanner ;
2
2
3
3
import android .content .Context ;
4
- import android .support .test .InstrumentationRegistry ;
5
- import android .support .test .runner .AndroidJUnit4 ;
6
4
7
5
import org .junit .Test ;
8
6
import org .junit .runner .RunWith ;
9
7
10
- import static org .junit .Assert .*;
8
+ import androidx .test .InstrumentationRegistry ;
9
+ import androidx .test .runner .AndroidJUnit4 ;
10
+
11
+ import static org .junit .Assert .assertEquals ;
11
12
12
13
/**
13
14
* Instrumentation test, which will execute on an Android device.
Original file line number Diff line number Diff line change 5
5
import android .app .AlertDialog ;
6
6
import android .content .Context ;
7
7
import android .content .DialogInterface ;
8
+ import android .util .Log ;
8
9
9
10
import com .blikoon .qrcodescanner .R ;
10
11
Original file line number Diff line number Diff line change 2
2
3
3
4
4
import android .app .Activity ;
5
- import android .support .annotation .NonNull ;
6
5
7
6
import java .util .concurrent .Executors ;
8
7
import java .util .concurrent .ScheduledExecutorService ;
9
8
import java .util .concurrent .ScheduledFuture ;
10
9
import java .util .concurrent .ThreadFactory ;
11
10
import java .util .concurrent .TimeUnit ;
12
11
12
+ import androidx .annotation .NonNull ;
13
+
13
14
/**
14
15
* Finishes an activity after a period of inactivity.
15
16
*/
You can’t perform that action at this time.
0 commit comments