Skip to content

Commit

Permalink
Merge pull request #334 from KasperskyLab/small_improvements
Browse files Browse the repository at this point in the history
Small improvements
  • Loading branch information
matzuk authored Nov 26, 2021
2 parents 8173f84 + aeef017 commit c105b6a
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ plugins {
android {
testBuildType = "debug"

defaultConfig {
multiDexEnabled = true
}

variantFilter {
if (name != testBuildType) {
ignore = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ configure<BaseExtension> {
}

defaultConfig {
minSdk = 21
minSdk = 18
targetSdk = 30
}

Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ androidXCore = "androidx.core:core:1.7.0"
appcompat = "androidx.appcompat:appcompat:1.4.0"
material = "com.google.android.material:material:1.4.0"
constraint = "androidx.constraintlayout:constraintlayout:2.1.2"
multidex = "androidx.multidex:multidex:2.0.1"

lifecycleViewModelKtx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifecycle" }
lifecycleLiveDataKtx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "lifecycle" }
Expand Down
1 change: 1 addition & 0 deletions samples/adbserver-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ dependencies {
implementation(libs.kotlinStdlib)
implementation(libs.appcompat)
implementation(projects.adbServer.adbserverDevice)
implementation(libs.multidex)
}
3 changes: 2 additions & 1 deletion samples/adbserver-sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name="androidx.multidex.MultiDexApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand All @@ -22,4 +23,4 @@
</activity>
</application>

</manifest>
</manifest>
1 change: 1 addition & 0 deletions samples/kaspresso-allure-support-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.constraint)
implementation(libs.multidex)

androidTestImplementation(projects.kaspresso)
androidTestImplementation(projects.allureSupport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
tools:ignore="ScopedStorage" />

<application
android:name="androidx.multidex.MultiDexApplication"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
tools:ignore="AllowBackup,GoogleAppIndexingWarning,MissingApplicationIcon">
Expand Down
2 changes: 2 additions & 0 deletions samples/kaspresso-compose-support-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {

android {
defaultConfig {
minSdk = 21

applicationId = "com.kaspersky.kaspresso.composesupport.com.kaspersky.kaspresso.composesupport.sample"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["clearPackageData"] = "true"
Expand Down
1 change: 1 addition & 0 deletions samples/kaspresso-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.constraint)
implementation(libs.multidex)

androidTestImplementation(libs.junit)
androidTestImplementation(projects.kaspresso)
Expand Down
1 change: 1 addition & 0 deletions samples/kaspresso-sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" tools:ignore="ProtectedPermissions"/>

<application
android:name="androidx.multidex.MultiDexApplication"
android:requestLegacyExternalStorage="true"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kaspersky.kaspressample.web

import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.os.Build
import android.os.Bundle
Expand All @@ -20,6 +21,7 @@ class WebViewActivity : AppCompatActivity() {
webViewClient = object : WebViewClient() {

@TargetApi(Build.VERSION_CODES.N)
@SuppressLint("NewApi")
override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean {
view.loadUrl(request.url.toString())
return true
Expand Down
1 change: 1 addition & 0 deletions samples/kautomator-sample-app-upgrade/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ android {

dependencies {
implementation(libs.appcompat)
implementation(libs.multidex)

androidTestImplementation(projects.kaspresso)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<application
android:name="androidx.multidex.MultiDexApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand All @@ -24,4 +25,4 @@
</activity>
</application>

</manifest>
</manifest>
1 change: 1 addition & 0 deletions samples/kautomator-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.constraint)
implementation(libs.multidex)

androidTestImplementation(projects.kaspresso)
}
3 changes: 2 additions & 1 deletion samples/kautomator-sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:name="androidx.multidex.MultiDexApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand All @@ -27,4 +28,4 @@
<activity android:name=".scroll.ScrollActivity" />
</application>

</manifest>
</manifest>
2 changes: 1 addition & 1 deletion static-analysis/config/detekt/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ style:
maxJumpCount: 1
MagicNumber:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/sharedTest/**', '**/*.Test.kt', '**/*.Spec.kt', '**/*.Spek.kt']
excludes: ['**/test/**', '**/androidTest/**', '**/sharedTest/**', '**/*.Test.kt', '**/*.Spec.kt', '**/*.Spek.kt', '**/*.kts']
ignoreNumbers: ['-1', '0', '1', '2']
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
Expand Down
3 changes: 3 additions & 0 deletions tutorial/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ plugins {

android {
defaultConfig {
// remove after upgrading to 1.4
minSdk = 21

applicationId = "com.kaspersky.kaspresso.tutorial"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["clearPackageData"] = "true"
Expand Down

0 comments on commit c105b6a

Please sign in to comment.