Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ global_job_config:
# print some debug info
- ping fel.localhost -c 1
- ping fel.flowcrypt.test -c 1
# use JAVA 17 by default
- sem-version java 17
# use JAVA 21 by default
- sem-version java 21
# general settings
- export PATH=${ANDROID_HOME}/emulator:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools:${PATH}
- sudo rm -rf ~/.rbenv ~/.phpbrew
Expand Down
25 changes: 17 additions & 8 deletions FlowCrypt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,15 @@ android {

compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

buildFeatures {
buildConfig = true
viewBinding = true
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn")
}

packaging {
resources.excludes += setOf(
"META-INF/DEPENDENCIES",
Expand Down Expand Up @@ -328,6 +323,20 @@ easylauncher {
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}


kotlin {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
}
}

tasks.register("checkCorrectBranch") {
if (!grgit.branch.current().name.equals("master")) {
throw GradleException("Please use 'master' branch to generate a release build")
Expand Down Expand Up @@ -436,7 +445,7 @@ dependencies {
testImplementation("com.squareup.okhttp3:mockwebserver:5.1.0")
testImplementation("com.flextrade.jfixture:jfixture:2.7.2")
testImplementation("com.shazam:shazamcrest:0.11")
testImplementation("org.robolectric:robolectric:4.14.1")
testImplementation("org.robolectric:robolectric:4.16")
//we need it to test Parcelable implementation
testImplementation("org.jetbrains.kotlin:kotlin-reflect:2.2.10")
testImplementation("junit:junit:4.13.2")
Expand Down