Skip to content

Feature/mage 1398 #78

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
merged 3 commits into from
Mar 26, 2025
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
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout Specified Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.appBranch }}
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout App Branch
run: git checkout ${{ github.event.inputs.appBranch }}
cache: 'gradle'
- name: Setup Keystore
run: |
echo "${{ secrets.KEYSTORE }}" > release.b64
base64 -d release.b64 > release.keystore
- name: Create Version Code
id: version_code
run: |
echo "value=$(git rev-list --count HEAD)" >>$GITHUB_OUTPUT
echo "VERSION_CODE $(git rev-list --count HEAD)"
- name: Build Application
run: |
./gradlew clean assembleRelease \
-PKEYSTORE=../release.keystore \
-PKEYSTORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \
-PKEY_ALIAS=${{ secrets.KEY_ALIAS }} \
-PKEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \
-PRELEASE_MAPS_API_KEY=${{ secrets.MAPS_API_KEY }} \
-PVERSION_CODE=${{ steps.version_code.outputs.value }}
-PRELEASE_MAPS_API_KEY=${{ secrets.MAPS_API_KEY }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mage-release.apk
path: mage/build/outputs/apk/release/mage-release.apk
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -21,21 +20,14 @@ jobs:
run: |
echo "${{ secrets.KEYSTORE }}" > release.b64
base64 -d release.b64 > release.keystore
- name: Create Version Code
id: version_code
run: |
git checkout master
echo "value=$(git rev-list --count HEAD)" >>$GITHUB_OUTPUT
echo "VERSION_CODE $(git rev-list --count HEAD)"
- name: Build Application
run: |
./gradlew clean assembleRelease \
-PKEYSTORE=../release.keystore \
-PKEYSTORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \
-PKEY_ALIAS=${{ secrets.KEY_ALIAS }} \
-PKEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \
-PRELEASE_MAPS_API_KEY=${{ secrets.MAPS_API_KEY }} \
-PVERSION_CODE=${{ steps.version_code.outputs.value }}
-PRELEASE_MAPS_API_KEY=${{ secrets.MAPS_API_KEY }}
- name: Get Upload URL
id: url
run: |
Expand All @@ -49,4 +41,4 @@ jobs:
upload_url: ${{ steps.url.outputs.upload_url }}
asset_path: mage/build/outputs/apk/release/mage-release.apk
asset_name: mage-release.apk
asset_content_type: application/octet-stream
asset_content_type: application/vnd.android.package-archive
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ android.enableJetifier=true
org.gradle.jvmargs=-Xmx4096m

# Application properties
VERSION_CODE=1
android.nonTransitiveRClass=false
android.nonFinalResIds=false
13 changes: 6 additions & 7 deletions mage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ plugins {
}

group 'mil.nga.giat.mage'
version '7.2.3'
ext {
sourceRefspec = Grgit.open(currentDir: project.rootDir).head().id

Expand Down Expand Up @@ -52,16 +51,16 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlin {
jvmToolchain(21)
jvmToolchain(17)
}

kotlinOptions {
jvmTarget = "21"
jvmTarget = "17"
freeCompilerArgs = ["-Xcontext-receivers"]
freeCompilerArgs += [
"-P",
Expand Down Expand Up @@ -90,8 +89,8 @@ android {

defaultConfig {
applicationId "mil.nga.giat.mage"
versionName project.version
versionCode VERSION_CODE as int
versionCode 1951
versionName '7.2.3'
minSdkVersion 27
targetSdkVersion 34
multiDexEnabled true
Expand Down
Loading