Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies 03-2024 #61

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ subprojects {

apply from: "deploy.gradle"

// todo check warnings
tasks.withType(JavaCompile) {
options.compilerArgs += ["--release", "8"]
}
Expand Down
6 changes: 3 additions & 3 deletions config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ext {

buildConfig = [
"minSdk" : 21,
"compileSdk": 33,
"targetSdk" : 33,
"buildTools": "33.0.2"
"compileSdk": 34,
"targetSdk" : 34,
"buildTools": "34.0.0"
]
releaseConfig = [
"group" : "com.infinum.sentinel",
Expand Down
27 changes: 12 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
[versions]
sentinel = "1.3.2"
gradle = "8.0.2"
desugar = "2.0.3"
kotlin = "1.8.21"
coroutines = "1.7.1"
gradle = "8.3.0"
kotlin = "1.9.22"
coroutines = "1.7.3"
json = "1.5.1"
core = "1.10.1"
core = "1.12.0"
appcompat = "1.6.1"
activity = "1.7.2"
fragment = "1.5.7"
recycler = "1.3.0"
lifecycle = "2.6.1"
preference = "1.2.0"
room = "2.5.1"
workmanager = "2.8.1"
activity = "1.8.2"
fragment = "1.6.2"
recycler = "1.3.2"
lifecycle = "2.7.0"
preference = "1.2.1"
room = "2.6.1"
workmanager = "2.9.0"
startup = "1.1.1"
crypto = "1.1.0-alpha06"
dynamicanimation = "1.0.0"
design = "1.9.0"
design = "1.11.0"
inject = "0.6.1"
timber = "5.0.1"
detekt = "1.23.0"
Expand Down Expand Up @@ -46,8 +45,6 @@ tooltimber = { module = "com.infinum.sentinel:tool-timber", version.ref = "senti

tools-gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }

desugar = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar" }

kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-core = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {

// debugImplementation libs.library
debugImplementation project(":sentinel")
releaseImplementation libs.librarynoop
releaseImplementation libs.librarynoop //todo test string collision without

// debugImplementation libs.bundles.tools
debugImplementation project(":tool-appgallery")
Expand Down
4 changes: 4 additions & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-feature
android:name="android.hardware.camera"
android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Expand Down
4 changes: 0 additions & 4 deletions sentinel-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ android {
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode releaseConfig.versionCode
versionName releaseConfig.version
}

buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
}
Expand Down
48 changes: 27 additions & 21 deletions sentinel/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id "com.android.library"
id "kotlin-android"
id "org.jetbrains.kotlin.plugin.serialization"
id "com.google.devtools.ksp" version "1.8.21-1.0.11"
id "com.google.devtools.ksp" version "1.9.22-1.0.17"
}

apply from: "jacoco.gradle"
Expand All @@ -14,8 +16,6 @@ android {
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode releaseConfig.versionCode
versionName releaseConfig.version

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -31,11 +31,9 @@ android {
buildTypes {
debug {
testCoverageEnabled true
debuggable true
minifyEnabled false
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
}
Expand All @@ -56,18 +54,27 @@ android {
lint {
disable "RtlEnabled", "VectorPath"
}
compileOptions {
coreLibraryDesugaringEnabled true
}

kotlinOptions {
freeCompilerArgs += [
"-opt-in=kotlin.ExperimentalStdlibApi",
"-Xexplicit-api=strict",
'-Xjvm-default=all'
]
}

tasks.withType(KotlinCompile).configureEach {
if (it.name.toLowerCase().contains("test")) {
kotlinOptions {
freeCompilerArgs -= [
"-Xexplicit-api=strict",
]
}
}
}
testOptions {
animationsDisabled = true

}

sourceSets.each {
Expand All @@ -93,7 +100,6 @@ dokkaJavadoc {
}

dependencies {
coreLibraryDesugaring libs.desugar
implementation libs.kotlin.core
implementation libs.kotlin.json
implementation libs.coroutines
Expand All @@ -104,21 +110,21 @@ dependencies {
implementation libs.inject.runtime

androidTestImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.arch.core:core-testing:2.1.0"
androidTestImplementation "androidx.test:core-ktx:1.4.0"
androidTestImplementation "androidx.test:rules:1.4.0"
androidTestImplementation "androidx.test:runner:1.4.0"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.security:security-crypto:1.1.0-alpha03"
androidTestImplementation "androidx.arch.core:core-testing:2.2.0"
androidTestImplementation "androidx.test:core-ktx:1.5.0"
androidTestImplementation "androidx.test:rules:1.5.0"
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test.ext:junit:1.1.5"
androidTestImplementation "androidx.security:security-crypto:1.1.0-alpha06"
androidTestImplementation "org.robolectric:shadowapi:4.5.1"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.4.0"
androidTestImplementation "androidx.room:room-testing:2.4.0"
androidTestImplementation "androidx.fragment:fragment-ktx:1.4.0"
androidTestImplementation "androidx.fragment:fragment-testing:1.4.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.5.1"
androidTestImplementation "androidx.room:room-testing:2.6.1"
androidTestImplementation "androidx.fragment:fragment-ktx:1.6.2"
androidTestImplementation "androidx.fragment:fragment-testing:1.6.2"

testImplementation "junit:junit:4.13.2"
testImplementation "androidx.test.ext:junit:1.1.3"
testImplementation "androidx.test.ext:junit:1.1.5"
}

ksp {
Expand Down
1 change: 0 additions & 1 deletion sentinel/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.infinum.sentinel"
android:versionCode="100000"
android:versionName="1.0.0">

Expand Down
9 changes: 6 additions & 3 deletions sentinel/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
<activity
android:name=".ui.bundles.BundlesActivity"
android:exported="false"
android:label="@string/sentinel_bundle_monitor"
android:label="@string/sentinel_bundle_monitor_name"
tools:replace="android:label"
android:taskAffinity="com.infinum.sentinel.bundles"
android:theme="@style/Sentinel.Theme.Leaf">
<meta-data
Expand All @@ -52,7 +53,8 @@
<activity
android:name=".ui.bundles.details.BundleDetailsActivity"
android:exported="false"
android:label="@string/sentinel_bundle_monitor"
android:label="@string/sentinel_bundle_monitor_name"
tools:replace="android:label"
android:taskAffinity="com.infinum.sentinel.bundles"
android:theme="@style/Sentinel.Theme.Leaf">
<meta-data
Expand All @@ -63,7 +65,8 @@
<activity
android:name=".ui.crash.CrashesActivity"
android:exported="false"
android:label="@string/sentinel_crash_monitor"
android:label="@string/sentinel_crash_monitor_name"
tools:replace="android:label"
android:taskAffinity="com.infinum.sentinel.crashes"
android:theme="@style/Sentinel.Theme.Leaf">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ internal abstract class BaseActivity<State, Event> : FragmentActivity(), BaseVie
@CallSuper
override fun onPause() =
super.onPause().run {
// todo
overridePendingTransition(0, 0)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.infinum.sentinel.ui.bundles.BundlesActivity
* Specific wrapper tool that monitors Bundle sizes for the application which implemented Sentinel.
*/
internal data class BundleMonitorTool(
@StringRes private val name: Int = R.string.sentinel_bundle_monitor,
@StringRes private val name: Int = R.string.sentinel_bundle_monitor_name,
private val listener: View.OnClickListener = View.OnClickListener {
it.context.startActivity(
Intent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.infinum.sentinel.ui.shared.Constants
* Specific wrapper tool that monitors crashes for the application which implemented Sentinel.
*/
internal data class CrashMonitorTool(
@StringRes private val name: Int = R.string.sentinel_crash_monitor,
@StringRes private val name: Int = R.string.sentinel_crash_monitor_name,
private val listener: View.OnClickListener = View.OnClickListener {
it.context.startActivity(
Intent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
app:navigationIcon="@drawable/sentinel_ic_back"
app:title="@string/sentinel_bundle_monitor" />
app:title="@string/sentinel_bundle_monitor_name" />

</com.google.android.material.appbar.AppBarLayout>

Expand Down
2 changes: 1 addition & 1 deletion sentinel/src/main/res/layout/sentinel_fragment_bundles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:minHeight="?attr/actionBarSize"
app:menu="@menu/sentinel_bundle_monitor"
app:navigationIcon="@drawable/sentinel_ic_close"
app:title="@string/sentinel_bundle_monitor" />
app:title="@string/sentinel_bundle_monitor_name" />

</com.google.android.material.appbar.AppBarLayout>

Expand Down
2 changes: 1 addition & 1 deletion sentinel/src/main/res/layout/sentinel_fragment_crashes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:minHeight="?attr/actionBarSize"
app:menu="@menu/sentinel_crash_monitor"
app:navigationIcon="@drawable/sentinel_ic_close"
app:title="@string/sentinel_crash_monitor" />
app:title="@string/sentinel_crash_monitor_name" />

</com.google.android.material.appbar.AppBarLayout>

Expand Down
4 changes: 2 additions & 2 deletions sentinel/src/main/res/layout/sentinel_fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp"
android:text="@string/sentinel_bundle_monitor"
android:text="@string/sentinel_bundle_monitor_name"
android:textAllCaps="true"
android:textColor="@color/sentinel_primary" />

Expand Down Expand Up @@ -325,7 +325,7 @@
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp"
android:text="@string/sentinel_crash_monitor"
android:text="@string/sentinel_crash_monitor_name"
android:textAllCaps="true"
android:textColor="@color/sentinel_primary" />

Expand Down
6 changes: 3 additions & 3 deletions sentinel/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<string name="sentinel_permissions">Permissions</string>
<string name="sentinel_settings">Settings</string>
<string name="sentinel_app_info">App info</string>
<string name="sentinel_bundle_monitor">Bundle monitor</string>
<string name="sentinel_crash_monitor">Crash monitor</string>
<string name="sentinel_bundle_monitor_name">Bundle monitor</string>
<string name="sentinel_crash_monitor_name">Crash monitor</string>
<string name="sentinel_certificates">Certificates</string>
<string name="sentinel_share">Share</string>
<string name="sentinel_notify">Notify</string>
Expand All @@ -28,7 +28,7 @@
<string name="sentinel_bluetooth">Bluetooth</string>
<string name="sentinel_distribution">Distribution</string>
<string name="sentinel_design">Design</string>
<string name="sentinel_logger">Logger</string>
<string name="sentinel_logger_name">Logger</string>

<string name="sentinel_triggers">Triggers</string>
<string name="sentinel_share_format">Share format</string>
Expand Down
4 changes: 0 additions & 4 deletions tool-appgallery/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ android {
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode releaseConfig.versionCode
versionName releaseConfig.version
}

buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
}
Expand Down
4 changes: 0 additions & 4 deletions tool-chucker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ android {
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode releaseConfig.versionCode
versionName releaseConfig.version
}

buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
}
Expand Down
4 changes: 0 additions & 4 deletions tool-collar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ android {
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode releaseConfig.versionCode
versionName releaseConfig.version
}

buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
}
Expand Down
Loading
Loading