Skip to content

Commit

Permalink
Merge pull request #2 from you-apps/main
Browse files Browse the repository at this point in the history
Merge main
  • Loading branch information
dominik-masson authored Dec 4, 2024
2 parents d5e01b0 + d0cf31c commit d428f4b
Show file tree
Hide file tree
Showing 207 changed files with 7,685 additions and 2,170 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and release app

on:
workflow_dispatch:
push:
tags:
- 'v*.*'

jobs:
build:
name: Build, sign and release app
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
cache: "gradle"

- name: Build APK
run: ./gradlew assembleRelease --no-daemon

- name: Sign APK
uses: ilharp/sign-android-release@v1
id: sign
with:
signingKey: ${{ secrets.KEYSTORE }}
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}

- name: Rename signed APK
run: |
mv "${{ steps.sign.outputs.signedFile }}" "app-release.apk"
- name: Create changelog
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

- name: Create release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changes }}
files: "app-release.apk"
fail_on_unmatched_files: true
make_latest: true
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.

1 change: 1 addition & 0 deletions .idea/gradle.xml

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

36 changes: 36 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

48 changes: 47 additions & 1 deletion .idea/misc.xml

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

68 changes: 43 additions & 25 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.kapt")
kotlin("android")
id("com.google.devtools.ksp")
id("kotlin-parcelize")
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.23"
}

android {
namespace = "com.bnyro.contacts"
compileSdk = 33
compileSdk = 34

androidResources {
generateLocaleConfig = true
}

defaultConfig {
applicationId = "com.bnyro.contacts"
minSdk = 21
minSdk = 23
targetSdk = 33
versionCode = 28
versionName = "9.0"
Expand All @@ -20,10 +26,8 @@ android {
useSupportLibrary = true
}

kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
}

Expand Down Expand Up @@ -52,7 +56,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.2"
kotlinCompilerExtensionVersion = "1.5.11"
}
packagingOptions {
resources {
Expand All @@ -64,43 +68,57 @@ android {
dependencies {
val compose_version: String by rootProject.extra
// Core & Lifecycle
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
implementation("androidx.documentfile:documentfile:1.0.1")
implementation("androidx.work:work-runtime-ktx:2.8.1")
implementation("androidx.work:work-runtime-ktx:2.9.0")

// Compose & UI
implementation("androidx.activity:activity-compose:1.7.2")
implementation("androidx.compose.ui:ui:$compose_version")
implementation("androidx.compose.ui:ui-tooling-preview:$compose_version")
implementation("androidx.compose.material3:material3:1.2.0-alpha02")
implementation("androidx.compose.material:material-icons-extended:1.4.3")
implementation("androidx.activity:activity-compose:1.9.0")
implementation(platform("androidx.compose:compose-bom:2024.05.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material:material-icons-extended:1.6.7")
implementation("com.github.nanihadesuka:LazyColumnScrollbar:1.9.0")
implementation("androidx.navigation:navigation-compose:2.8.0-alpha08")

// VCard
implementation("com.googlecode.ez-vcard:ez-vcard:0.11.3")
implementation("net.lingala.zip4j:zip4j:2.11.5")

// Image parsing
implementation("androidx.exifinterface:exifinterface:1.3.6")
implementation("androidx.exifinterface:exifinterface:1.3.7")
implementation("io.coil-kt:coil-compose:2.6.0")

// Phone number formatting
implementation("com.googlecode.libphonenumber:libphonenumber:8.2.0")
implementation("com.googlecode.libphonenumber:libphonenumber:8.13.35")

// Biometrics
implementation("androidx.biometric:biometric-ktx:1.2.0-alpha05")

// Markdown support for notes
implementation("com.halilibo.compose-richtext:richtext-ui-material3:0.17.0")
implementation("com.halilibo.compose-richtext:richtext-commonmark:0.17.0")

// Room database
implementation("androidx.room:room-ktx:2.5.1")
kapt("androidx.room:room-compiler:2.5.1")
val roomVersion = "2.6.1"

implementation("androidx.room:room-runtime:$roomVersion")
implementation("androidx.room:room-ktx:$roomVersion")
annotationProcessor("androidx.room:room-compiler:$roomVersion")
ksp("androidx.room:room-compiler:$roomVersion")

implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")

// Testing
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$compose_version")
debugImplementation("androidx.compose.ui:ui-tooling:$compose_version")
debugImplementation("androidx.compose.ui:ui-test-manifest:$compose_version")
androidTestImplementation(platform("androidx.compose:compose-bom:2024.05.00"))
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-tooling")
debugImplementation("androidx.compose.ui:ui-test-manifest")
}
Loading

0 comments on commit d428f4b

Please sign in to comment.