Tech | Fix | Lint setup for CI (#2286)
* Tech | Fix | Reduce tag size * Tech | Enhancement | Move lint configuration to one place * Tech | Enhancement | Enable Gradle quiet mode for errors logs only
This commit is contained in:
parent
39046f787f
commit
79bcfcd811
|
@ -18,9 +18,9 @@ jobs:
|
|||
amplitude_secret_debug: ${{ secrets.ANYTYPE_AMPLITUDE_DEBUG_SECRET }}
|
||||
run: ./middleware2.sh $token_secret $user_secret $amplitude_secret $amplitude_secret_debug
|
||||
- name: Compile android test sources
|
||||
run: ./gradlew compileDebugAndroidTestSources
|
||||
run: ./gradlew compileDebugAndroidTestSources -q
|
||||
- name: Run unit tests
|
||||
run: ./gradlew testDebugAll -Dpre-dex=false
|
||||
run: ./gradlew testDebugAll -Dpre-dex=false -q
|
||||
- name: Android test report
|
||||
uses: asadmansr/android-test-report-action@v1.2.0
|
||||
if: ${{ always() }} # IMPORTANT: run Android Test Report regardless
|
||||
|
|
|
@ -15,4 +15,4 @@ jobs:
|
|||
amplitude_secret_debug: ${{ secrets.ANYTYPE_AMPLITUDE_DEBUG_SECRET }}
|
||||
run: ./middleware2.sh $token_secret $user_secret $amplitude_secret $amplitude_secret_debug
|
||||
- name: Run unit tests. Full mode.
|
||||
run: ./gradlew build test -Dpre-dex=false
|
||||
run: ./gradlew build test -Dpre-dex=false -q
|
||||
|
|
|
@ -85,13 +85,6 @@ android {
|
|||
kotlinCompilerExtensionVersion config.compose_version
|
||||
}
|
||||
|
||||
lint {
|
||||
abortOnError false
|
||||
disable 'InvalidPackage', 'OldTargetApi', 'IconDensities', 'IconMissingDensityFolder'
|
||||
ignoreWarnings true
|
||||
quiet true
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
compose true
|
||||
|
|
|
@ -40,11 +40,13 @@ subprojects {
|
|||
testDebugAll.dependsOn(tasks.named("test"))
|
||||
}
|
||||
plugins.withId("com.android.library") {
|
||||
project.apply from: "$rootDir/lint.gradle"
|
||||
afterEvaluate {
|
||||
testDebugAll.dependsOn(tasks.named("testDebugUnitTest"))
|
||||
}
|
||||
}
|
||||
plugins.withId("com.android.application") {
|
||||
project.apply from: "$rootDir/lint.gradle"
|
||||
afterEvaluate {
|
||||
testDebugAll.dependsOn(tasks.named("testDebugUnitTest"))
|
||||
}
|
||||
|
|
|
@ -31,10 +31,6 @@ android {
|
|||
composeOptions {
|
||||
kotlinCompilerExtensionVersion config["compose_version"]
|
||||
}
|
||||
|
||||
lint {
|
||||
abortOnError false
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
android {
|
||||
lint {
|
||||
abortOnError false
|
||||
disable 'InvalidPackage', 'OldTargetApi', 'IconDensities', 'IconMissingDensityFolder', 'NullSafeMutableLiveData'
|
||||
ignoreWarnings true
|
||||
quiet true
|
||||
checkReleaseBuilds false
|
||||
checkDependencies false
|
||||
}
|
||||
}
|
|
@ -14,10 +14,6 @@ android {
|
|||
}
|
||||
|
||||
testOptions.unitTests.includeAndroidResources = true
|
||||
|
||||
lint {
|
||||
disable 'NullSafeMutableLiveData'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -37,7 +37,7 @@ abstract class BaseAddOptionsRelationViewModel(
|
|||
|
||||
val isMultiple = MutableStateFlow(true)
|
||||
|
||||
private val logger = Timber.tag("BaseAddOptionsRelationViewModel")
|
||||
private val logger = Timber.tag("BaseAddOptionsRelation")
|
||||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
|
|
Loading…
Reference in New Issue