9 Commits

Author SHA1 Message Date
soraefir
517f0240e3 CI release 2024-03-23 15:12:15 +01:00
soraefir
b02920ca41 CI Autorelease 2024-03-23 15:03:09 +01:00
soraefir
b289648260 CI Artifact 2024-03-23 14:25:04 +01:00
soraefir
b6de7ca409 CI fix tag 2024-03-23 14:13:37 +01:00
soraefir
12fb04974e CI on tag 2024-03-23 14:09:54 +01:00
soraefir
cdd4d6db1b Fix CI 2024-03-23 13:59:01 +01:00
soraefir
a403bdea61 CI testing 2024-03-23 13:50:35 +01:00
657489e255 Merge pull request 'Update plugin com.android.library to v8.3.1' (#4) from renovate/com.android.library-8.x into main
Reviewed-on: #4
2024-03-23 13:32:22 +01:00
Renovate Bot
cd8a84531e Update plugin com.android.library to v8.3.1 2024-03-23 01:05:33 +00:00
4 changed files with 75 additions and 5 deletions

54
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: CI-Android APK
env:
main_project_module: app
playstore_name: KeepassFidelity
on:
push:
branches: [ release ]
tags:
- '**'
pull_request:
branches: [ release ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- name: create and checkout branch
if: github.event_name == 'pull_request'
env:
BRANCH: ${{ github.head_ref }}
run: git checkout -B "$BRANCH"
- name: set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
cache: 'gradle'
- name: Build APK
run: ./gradlew assemble
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app.apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
app/build/outputs/apk/release/app-release-unsigned.apk

2
.gitignore vendored
View File

@@ -7,6 +7,8 @@ local.properties/
.DS_Store
build/
app/build/
app/debug/
app/release/
captures/
.externalNativeBuild
.cxx

View File

@@ -11,6 +11,7 @@ android {
defaultConfig {
applicationId 'net.helcel.fidelity'
resValue "string", "app_name", "Keepass Fideity"
minSdk 28
targetSdk 34
versionCode 1
@@ -18,18 +19,29 @@ android {
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
encoding 'utf-8'
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = JavaVersion.VERSION_17
}
buildFeatures {
viewBinding true
}
@@ -37,6 +49,8 @@ android {
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.0.4'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.preference:preference-ktx:1.2.1'

View File

@@ -2,6 +2,6 @@
plugins {
id 'com.android.application' version '8.3.1' apply false
id 'com.android.library' version '8.3.0' apply false
id 'com.android.library' version '8.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.9.23' apply false
}