generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 3
[#52] Migrate build files to Kotlin DSL (KTS) #53
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
Merged
hoangnguyen92dn
merged 10 commits into
develop
from
chore/52-migrate-build-files-to-kotlin-dsl
Dec 17, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ca334fc
[#52] Migrate build files to Kotlin DSL
RkNaing b1e14aa
[#52] Migrate to use version catalog
RkNaing 059be14
[#52] Configure the detekt to align with the updated version
RkNaing 118014e
[#52] Resolve Detekt warnings
RkNaing af7f72c
[#52] Configure the `common-ktx` module to publish the release varianβ¦
RkNaing bf89739
[#52] Remove the `version.properties` file and update the `release.ymβ¦
RkNaing 78cca0a
[#52] Update the deprecated `kotlinOptions` to the new `compilerOptioβ¦
RkNaing abede84
[#52] Updates the `release.yml` and `review_pull_request.yml` workfloβ¦
RkNaing badca6f
[#52] Bump Bundler version to 2.7.1
RkNaing e2207c3
[#52] Update various Ruby gems to their latest versions, including `dβ¦
RkNaing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,33 @@ | ||
| name: Deploy Release | ||
|
|
||
| on: | ||
| # Trigger the workflow on push action in develop branch | ||
| # Trigger the workflow on push action in main branch | ||
| # So it will trigger when the PR of the feature branch was merged. | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| app_deploy: | ||
| name: Deploy and upload to JitPack | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Read version.properties | ||
| uses: madhead/read-java-properties@latest | ||
| - name: Extract version from version catalog | ||
| id: version | ||
| with: | ||
| file: version.properties | ||
| all: true | ||
| run: | | ||
| VERSION=$(grep '^libVersionName = ' gradle/libs.versions.toml | sed 's/libVersionName = "\(.*\)"/\1/') | ||
| echo "versionName=$VERSION" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create Release | ||
| id: create_release | ||
| uses: actions/create-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: '${{ steps.version.outputs.versionName }}' | ||
| release_name: 'Release ${{ steps.version.outputs.versionName }}' | ||
| name: 'Release ${{ steps.version.outputs.versionName }}' | ||
| draft: false | ||
| prerelease: false | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
|
||
| plugins { | ||
| alias(libs.plugins.android.application) | ||
| alias(libs.plugins.kotlin.android) | ||
| } | ||
|
|
||
| android { | ||
| namespace = "co.nimblehq.extensions" | ||
|
|
||
| compileSdk = libs.versions.androidCompileSdk.get().toInt() | ||
|
|
||
| defaultConfig { | ||
| applicationId = "co.nimblehq.extensions" | ||
| minSdk = libs.versions.androidMinSdk.get().toInt() | ||
| targetSdk = libs.versions.androidTargetSdk.get().toInt() | ||
| versionCode = libs.versions.androidVersionCode.get().toInt() | ||
| versionName = libs.versions.androidVersionName.get() | ||
|
|
||
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
| } | ||
|
|
||
| buildTypes { | ||
| release { | ||
| isMinifyEnabled = false | ||
| proguardFiles( | ||
| getDefaultProguardFile("proguard-android-optimize.txt"), | ||
| "proguard-rules.pro" | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| compileOptions { | ||
| sourceCompatibility = JavaVersion.VERSION_1_8 | ||
| targetCompatibility = JavaVersion.VERSION_1_8 | ||
| } | ||
|
|
||
| kotlin { | ||
| compilerOptions { | ||
| jvmTarget.set(JvmTarget.JVM_1_8) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(libs.androidx.core.ktx) | ||
| implementation(libs.androidx.appcompat) | ||
| implementation(libs.material) | ||
|
|
||
| testImplementation(libs.test.junit) | ||
| androidTestImplementation(libs.test.ext.junit) | ||
| androidTestImplementation(libs.test.espresso.core) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.