Skip to content

Commit

Permalink
Bump version for F-Droid
Browse files Browse the repository at this point in the history
Tested-by: Pranav Purwar <[email protected]>
Signed-off-by: PranavPurwar <[email protected]>
  • Loading branch information
PranavPurwar committed Oct 3, 2023
1 parent 68cb7c8 commit dc36a82
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
13 changes: 8 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ android {
namespace = "org.cosmicide"
compileSdk = 34

moveSdkToAssetsIfNeeded()

defaultConfig {
val commit = getGitCommit()
applicationId = "org.cosmicide"
minSdk = 26
targetSdk = 34
versionCode = 22
versionName = "2.2"
versionCode = 23
versionName = "2.2.1"
buildConfigField("String", "GIT_COMMIT", "\"$commit\"")
}

Expand Down Expand Up @@ -98,12 +96,17 @@ android {
}
}

tasks.assemble {
dependsOn("copySdk")
}

// Copies `android.jar` and `core-lambda-stubs.jar` from Android SDK to app's assets.
// Note: The version used is the latest one installed on the machine.
fun moveSdkToAssetsIfNeeded() {
tasks.create("copySdk") {
val assets = File(System.getProperty("user.dir") + "/app/src/main/assets")

val androidJar = assets.resolve("android.jar")

if (androidJar.exists().not()) {
println("Copying SDK android.jar to ${androidJar.absolutePath}")
getAndroidJar().copyTo(androidJar)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<string name="app_name">Cosmic IDE Rewrite</string>
<string name="action_settings">Settings</string>

<!-- Strings used for fragments for navigation -->
<string name="import_project">Import Project</string>
<string name="app_theme">App theme</string>
Expand Down Expand Up @@ -86,7 +87,7 @@
<string name="class_name">Class name</string>
<string name="no_projects_found_create_one_now">No projects found. Create one now!</string>
<string name="install_resource_description">Cosmic IDE requires certain resources to build and run your projects. Press the button below to initiate the download process and configure them.</string>
<string name="resource_description">This will download and configure the following resources: \n• android.jar (Required for compilation)\n• core-lambdas-stubs.jar (Required for using lambdas in java)\n• index.json (Required for Java code completion)</string>
<string name="resource_description">This will download and configure the following resources: \n• index.json (Required for Java code completion)</string>
<string name="install">Install</string>
<string name="navigation_item_kind">Navigation Item Kind</string>
<string name="clear">Clear</string>
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.1.1" apply false
id("com.android.library") version "8.1.1" apply false
id("com.android.application") version "8.1.2" apply false
id("com.android.library") version "8.1.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.10" apply false
id("org.jetbrains.kotlin.jvm") version "1.9.10" apply false
id("dev.rikka.tools.materialthemebuilder") version "1.3.3" apply false
Expand Down

0 comments on commit dc36a82

Please sign in to comment.