Skip to content

Commit 0858a54

Browse files
committed
fix builder
1 parent c33f479 commit 0858a54

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/build_apk.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
APP_NAME: ${{ matrix.flavor.env.APP_NAME }}
7070
AGIXT_SERVER: ${{ matrix.flavor.env.AGIXT_SERVER }}
7171
APP_URI: ${{ matrix.flavor.env.APP_URI }}
72+
APP_FLAVOR: ${{ matrix.flavor.name }}
7273
steps:
7374
- name: Checkout code
7475
uses: actions/checkout@v4
@@ -110,14 +111,10 @@ jobs:
110111
GITHUB_USERNAME="${{ github.actor }}"
111112
if [ "$GITHUB_USERNAME" = "Josh-XT" ]; then
112113
DISCORD_NAME="<@381837595522367488>"
113-
elif [ "$GITHUB_USERNAME" = "waiscodes" ]; then
114-
DISCORD_NAME="<@670762167037067304>"
115114
elif [ "$GITHUB_USERNAME" = "birdup000" ]; then
116115
DISCORD_NAME="<@856308374567256074>"
117116
elif [ "$GITHUB_USERNAME" = "Nick-XT" ]; then
118117
DISCORD_NAME="<@381908912951001088>"
119-
elif [ "$GITHUB_USERNAME" = "rm4453" ]; then
120-
DISCORD_NAME="<@1104215954356969512>"
121118
elif [ "$GITHUB_USERNAME" = "Luke-XT" ]; then
122119
DISCORD_NAME="<@334703813967740938>"
123120
else

android/app/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ if (keystorePropertiesFile.exists()) {
1616
useReleaseKeys = keystoreFile != null && keystoreFile.exists()
1717
}
1818

19+
// Read APP_FLAVOR from environment to set a unique applicationId per flavor.
20+
// This allows all flavor APKs to be installed side-by-side on the same device.
21+
// Defaults to 'agixt' for local development when the env var is not set.
22+
def appFlavor = System.getenv('APP_FLAVOR') ?: 'agixt'
23+
1924
android {
2025
namespace = "dev.agixt.agixt"
2126
compileSdk = flutter.compileSdkVersion
22-
ndkVersion = "27.0.11902837"
27+
ndkVersion = "28.2.13676358"
2328

2429
// Add signing configs for release builds
2530
signingConfigs {
@@ -56,8 +61,7 @@ android {
5661
}
5762

5863
defaultConfig {
59-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
60-
applicationId = "dev.agixt.agixt"
64+
applicationId = "dev.agixt.${appFlavor}"
6165
// You can update the following values to match your application needs.
6266
// For more information, see: https://flutter.dev/to/review-gradle-config.
6367
minSdk = 24 // minimum SDK version for speech_to_text
@@ -71,7 +75,7 @@ android {
7175

7276
// Add the required manifest placeholders
7377
manifestPlaceholders = [
74-
'appAuthRedirectScheme': 'agixt',
78+
'appAuthRedirectScheme': appFlavor,
7579
'applicationName': 'io.flutter.app.FlutterApplication'
7680
]
7781
}
@@ -108,7 +112,7 @@ subprojects {
108112
if (project.plugins.hasPlugin("com.android.application") ||
109113
project.plugins.hasPlugin("com.android.library")) {
110114
project.android {
111-
compileSdkVersion 34
115+
compileSdkVersion 35
112116
}
113117
}
114118
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pluginManagement {
2222

2323
plugins {
2424
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
25-
id "com.android.application" version "8.6.0" apply false
25+
id "com.android.application" version "8.9.1" apply false
2626
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
2727
}
2828

0 commit comments

Comments
 (0)