Skip to content

Commit e5d0264

Browse files
authored
Merge pull request #564 from namehillsoftware/chore/upgrade-sdk-36
[Chore] Upgrade SDK 36
2 parents 4c21605 + fec0784 commit e5d0264

File tree

6 files changed

+27
-25
lines changed

6 files changed

+27
-25
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gradle:8.13.0-jdk17
1+
FROM gradle:8.14.2-jdk17
22

33
# Install system dependencies
44
RUN apt-get update -qq && apt-get install -qq -y --no-install-recommends \
@@ -18,7 +18,7 @@ ENV ANDROID_SDK_HOME=${ANDROID_HOME}
1818
ENV PATH ${ANDROID_HOME}/cmdline-tools/cmdline-tools/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}
1919

2020
# set default build arguments
21-
ARG SDK_VERSION=commandlinetools-linux-12266719_latest.zip
21+
ARG SDK_VERSION=commandlinetools-linux-12700392_latest.zip
2222

2323
# Full reference at https://dl.google.com/android/repository/repository2-1.xml
2424
# Download and unpack android SDKs
@@ -29,15 +29,18 @@ RUN curl -sSL https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sd
2929
&& yes | sdkmanager --licenses
3030

3131
# Set these to the same versions as in build.gradle to avoid downloading updated tools
32-
ARG ANDROID_BUILD_VERSION=35
33-
ARG ANDROID_TOOLS_VERSION=35.0.0
32+
ARG ANDROID_BUILD_VERSION=36
33+
ARG ANDROID_TOOLS_VERSION=36.0.0
3434

35-
RUN yes | sdkmanager "platform-tools" \
35+
COPY projectBlueWater/src/test/resources/robolectric.properties ./
36+
37+
RUN . ./robolectric.properties && (yes | sdkmanager "platform-tools" \
3638
# "emulator" \ # keeping just in case it is needed
3739
"platforms;android-${ANDROID_BUILD_VERSION}" \
3840
"build-tools;${ANDROID_TOOLS_VERSION}" \
41+
"build-tools;${sdk}.0.0" \
3942
# "add-ons;addon-google_apis-google-23" \ # keeping in case addons are needed
40-
"extras;android;m2repository"
43+
"extras;android;m2repository")
4144

4245
WORKDIR /src
4346

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = '2.0.20'
3+
ext.kotlin_version = '2.2.0'
44

55
repositories {
66
mavenCentral()
@@ -10,8 +10,8 @@ buildscript {
1010
}
1111

1212
plugins {
13-
id 'com.android.application' version '8.11.0' apply false
14-
id 'com.android.library' version '8.11.0' apply false
13+
id 'com.android.application' version '8.11.1' apply false
14+
id 'com.android.library' version '8.11.1' apply false
1515
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
1616
id 'org.jetbrains.kotlin.plugin.compose' version "$kotlin_version" apply false
1717
}

projectBlueWater/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
id "de.mannodermaus.android-junit5" version "1.13.0.0"
4+
id "de.mannodermaus.android-junit5" version "1.13.1.0"
55
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.0'
66
}
77

@@ -26,11 +26,11 @@ if (!hasAndroidStorePassword()) {
2626
def isSignedExternally = { hasKeyStorePassword() && hasAndroidStorePassword() }
2727

2828
android {
29-
compileSdk 35
29+
compileSdk 36
3030

3131
defaultConfig {
3232
minSdkVersion 21
33-
targetSdkVersion 35
33+
targetSdkVersion 36
3434
versionName gitVersion()
3535
archivesBaseName = "project-blue-" + gitVersion()
3636
}
@@ -170,7 +170,7 @@ dependencies {
170170
def compose_version = '1.8.3'
171171
def media3_version = '1.7.1'
172172
def lifecycle_version = '2.9.1'
173-
def junit5_version = '5.13.2'
173+
def junit5_version = '5.13.3'
174174

175175
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
176176

@@ -192,13 +192,13 @@ dependencies {
192192
implementation 'org.slf4j:slf4j-api:2.0.17'
193193
implementation 'com.github.tony19:logback-android:3.0.0'
194194
implementation 'com.namehillsoftware:handoff:0.30.1'
195-
implementation 'io.reactivex.rxjava3:rxjava:3.1.10'
195+
implementation 'io.reactivex.rxjava3:rxjava:3.1.11'
196196
implementation 'com.namehillsoftware:lazy-j:0.11.0'
197197
implementation 'org.jsoup:jsoup:1.21.1'
198198
implementation "androidx.media3:media3-exoplayer:$media3_version"
199199
implementation "androidx.media3:media3-datasource-okhttp:$media3_version"
200-
implementation 'com.squareup.okio:okio:3.13.0'
201-
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.16'
200+
implementation 'com.squareup.okio:okio:3.15.0'
201+
implementation 'com.squareup.okhttp3:okhttp:5.1.0'
202202
implementation 'com.namehillsoftware:querydroid:0.6.0'
203203
implementation "androidx.compose.ui:ui:$compose_version"
204204
implementation "androidx.compose.material:material:$compose_version"
@@ -223,7 +223,6 @@ dependencies {
223223
testImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
224224
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
225225
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"
226-
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
227226
androidTestImplementation "org.assertj:assertj-core:3.27.3"
228227
androidTestImplementation 'androidx.test.ext:junit-ktx:1.2.1'
229228
androidTestImplementation 'androidx.test:core:1.6.1'

projectBlueWater/proguard-rules.pro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
-keep class android.arch.lifecycle.** {*;}
2626

2727
# okhttp rules
28-
-dontwarn okhttp3.**
29-
-dontwarn okio.**
30-
-dontwarn javax.annotation.**
28+
#-dontwarn okhttp3.**
29+
#-dontwarn okio.**
30+
#-dontwarn javax.annotation.**
3131
# A resource is loaded with a relative path so the package of this class must be preserved.
32-
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
32+
#-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
3333

3434
-keep class * implements android.os.Parcelable {
3535
public static final ** CREATOR;
3636
}
3737

3838
-keepclassmembers class ch.qos.logback.core.rolling.helper.* { <init>(); }
39-
-keepclassmembers class ch.qos.logback.classic.pattern.* { <init>(); }
39+
-keepclassmembers class ch.qos.logback.classic.pattern.* { <init>(); }
4040

4141
# -printseeds /home/david/sandbox/projectBlue/projectBlueWater/release/seeds.txt # print out classes that are kept
4242
# -printusage /home/david/sandbox/projectBlue/projectBlueWater/release/usage.txt # print out classes that are obfuscated

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/client/browsing/files/cached/persistence/DiskFileCachePersistence.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DiskFileCachePersistence(
5656

5757
return cachedFilesProvider
5858
.promiseCachedFile(libraryId, uniqueKey)
59-
.eventually<CachedFile?> { cachedFile ->
59+
.eventually { cachedFile ->
6060
cachedFile
6161
?.let {
6262
if (it.fileName == canonicalFilePath) diskFileAccessTimeUpdater.promiseFileAccessedUpdate(it)
@@ -93,7 +93,7 @@ class DiskFileCachePersistence(
9393
}
9494
}
9595

96-
private fun promiseFilePathUpdate(cachedFile: CachedFile): Promise<CachedFile> = promiseTableMessage<CachedFile> {
96+
private fun promiseFilePathUpdate(cachedFile: CachedFile): Promise<CachedFile> = promiseTableMessage {
9797
val cachedFileId = cachedFile.id
9898
val cachedFilePath = cachedFile.fileName
9999
RepositoryAccessHelper(context).use { repositoryAccessHelper ->

projectBlueWater/src/test/java/com/lasthopesoftware/bluewater/client/browsing/files/properties/GivenALibraryId/AndStoredFileProperties/AndAReadOnlyConnection/WhenUpdatingFileProperties.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class WhenUpdatingFileProperties {
4040
every { promiseIsReadOnly(LibraryId(libraryId)) } returns true.toPromise()
4141
},
4242
mockk {
43-
every { promiseRevision(LibraryId(libraryId)) } returns 836.toPromise()
43+
every { promiseRevision(LibraryId(libraryId)) } returns 836L.toPromise()
4444
},
4545
filePropertiesContainer,
4646
recordingApplicationMessageBus,

0 commit comments

Comments
 (0)