File tree 9 files changed +33
-33
lines changed
9 files changed +33
-33
lines changed Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v2
11
11
- name : Validate gradle wrapper
12
12
uses : gradle/wrapper-validation-action@v1
13
- - name : Set up JDK 11
13
+ - name : Set up JDK 17
14
14
uses : actions/setup-java@v1
15
15
with :
16
- java-version : 11
16
+ java-version : 17
17
17
- name : Build with Gradle
18
18
run : ./gradlew build test
Original file line number Diff line number Diff line change @@ -4,30 +4,30 @@ plugins {
4
4
}
5
5
6
6
android {
7
- compileSdkVersion 32
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
applicationId " com.android.example.lint_usage"
11
11
minSdkVersion 21
12
- targetSdkVersion 32
12
+ targetSdkVersion 33
13
13
versionCode 1
14
14
versionName " 1.0"
15
15
}
16
16
17
17
compileOptions {
18
- sourceCompatibility JavaVersion . VERSION_1_8
19
- targetCompatibility JavaVersion . VERSION_1_8
18
+ sourceCompatibility JavaVersion . VERSION_17
19
+ targetCompatibility JavaVersion . VERSION_17
20
20
}
21
21
kotlinOptions {
22
- jvmTarget = ' 1.8 '
22
+ jvmTarget = ' 17 '
23
23
}
24
- lintOptions {
24
+ namespace ' com.android.example'
25
+ lint {
25
26
checkDependencies true
26
- textReport true
27
-
28
27
// Produce report for CI:
29
28
// https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/sarif-support-for-code-scanning
30
- sarifOutput file(" ../lint-results.sarif" )
29
+ sarifOutput file(' ../lint-results.sarif' )
30
+ textReport true
31
31
}
32
32
}
33
33
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" com.android.example" >
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
4
3
5
4
<!-- Not a real app, just a skeleton to show code depending
6
5
on library with lint checks producing errors in the report -->
Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
ext {
3
- kotlinVersion = ' 1.6.21'
4
- // Current release: Chipmunk / AGP 7.2
5
- gradlePluginVersion = ' 7.2.0'
6
- lintVersion = ' 30.2.0'
7
- // lintVersion = '30.2.0-rc02'
8
- // Upcoming lint target: Dolphin / AGP 7.3
9
- // gradlePluginVersion = '7.3.0-beta01'
10
- // lintVersion = '30.3.0-beta01'
11
- // Upcoming lint target: Electric Eel / AGP 7.4
12
- // gradlePluginVersion = '7.4.0-alpha02'
13
- // lintVersion = '30.4.0-alpha02'
3
+ kotlinVersion = ' 1.8.20'
4
+ // Current release: Flamingo / AGP 8.0
5
+ // gradlePluginVersion = '8.0.2'
6
+ // lintVersion = '31.0.2'
7
+ // Current preview release: Hedgehog
8
+ gradlePluginVersion = ' 8.2.0-alpha07'
9
+ lintVersion = ' 31.2.0-alpha07'
14
10
}
15
11
16
12
repositories {
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ dependencies {
22
22
testImplementation " com.android.tools.lint:lint-tests:$lintVersion "
23
23
}
24
24
25
- sourceCompatibility = " 1.8 "
26
- targetCompatibility = " 1.8 "
25
+ sourceCompatibility = " 17 "
26
+ targetCompatibility = " 17 "
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.defaults.buildfeatures.buildconfig =true
13
+ android.nonFinalResIds =false
14
+ android.nonTransitiveRClass =true
15
+ org.gradle.configuration-cache =true
12
16
org.gradle.jvmargs =-Xmx1536m
13
17
14
18
# When configured, Gradle will run in incubating parallel mode.
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4.2 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.1 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 32
4
+ compileSdkVersion 33
5
5
defaultConfig {
6
6
minSdkVersion 19
7
- targetSdkVersion 32
7
+ targetSdkVersion 33
8
8
}
9
9
compileOptions {
10
- sourceCompatibility JavaVersion . VERSION_1_8
11
- targetCompatibility JavaVersion . VERSION_1_8
10
+ sourceCompatibility JavaVersion . VERSION_17
11
+ targetCompatibility JavaVersion . VERSION_17
12
12
}
13
- lintOptions {
13
+ namespace ' com.example.lint.library'
14
+ lint {
14
15
checkDependencies true
15
16
}
16
17
}
Original file line number Diff line number Diff line change 1
- <manifest package = " com.example.lint.library " >
1
+ <manifest >
2
2
3
3
</manifest >
You can’t perform that action at this time.
0 commit comments