File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 25
25
platforms;android-31
26
26
build-tools;31.0.0
27
27
cache : true
28
+ - name : " [Test] Linting"
29
+ working-directory : OneSignalSDK
30
+ run : |
31
+ ./gradlew ktlintCheck --console=plain
28
32
- name : " [Test] SDK Unit Tests"
29
33
working-directory : OneSignalSDK
30
34
run : |
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ buildscript {
13
13
huaweiHMSPushVersion = ' 6.3.0.304'
14
14
huaweiHMSLocationVersion = ' 4.0.0.300'
15
15
kotlinVersion = ' 1.4.32'
16
+ ktlintVersion = ' 11.0.0'
16
17
onesignalGradlePluginVersion = ' [0.14.0, 0.99.99]'
17
18
}
18
19
@@ -35,6 +36,8 @@ buildscript {
35
36
classpath " com.huawei.agconnect:agcp:$huaweiAgconnectVersion "
36
37
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
37
38
39
+ classpath " org.jlleitschuh.gradle:ktlint-gradle:$ktlintVersion "
40
+
38
41
// OneSignal-Gradle-Plugin - Local testing
39
42
// classpath 'com.onesignal:onesignal-gradle-plugin:[0.8.1, 0.99.99]'
40
43
Original file line number Diff line number Diff line change 6
6
7
7
apply plugin : ' com.android.library'
8
8
apply plugin : ' kotlin-android'
9
+ apply plugin : ' org.jlleitschuh.gradle.ktlint'
9
10
10
11
android {
11
12
compileSdkVersion rootProject. buildVersions. compileSdkVersion
You can’t perform that action at this time.
0 commit comments