Change ndk setup

This commit is contained in:
problematicconsumer
2023-10-15 15:56:26 +03:30
parent e584f0bf44
commit 2bf613c29a
3 changed files with 17 additions and 3 deletions

View File

@@ -16,8 +16,11 @@ on:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
CHANNEL: ${{ github.ref_type == 'tag' && endsWith(github.ref_name, 'dev') && 'dev' || github.ref_type != 'tag' && 'dev' || 'prod' }}
NDK_VERSION: '26.1.10909125'
jobs:
build:
permissions: write-all
@@ -75,6 +78,15 @@ jobs:
distribution: 'zulu'
java-version: 11
- name: Setup NDK
if: startsWith(matrix.platform,'android')
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: ${{ env.NDK_VERSION }}
add-to-path: true
link-to-sdk: true
- name: Setup Flutter Distributor
if: ${{ !startsWith(matrix.platform,'android') }}
run: |

View File

@@ -35,14 +35,15 @@ sync_translate:
cd .github && bash sync_translate.sh
make translate
android-release: android-apk-release
android-apk-release:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET) $(BUILD_ARGS)
ls -R build/app/outputs
android-aab-release:
flutter build appbundle --target $(TARGET) $(BUILD_ARGS) --dart-define release=google-play
ls -R build/app/outputs
windows-release:
flutter_distributor package --platform windows --targets exe $(DISTRIBUTOR_ARGS)

View File

@@ -46,7 +46,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "com.hiddify.hiddify"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
ndkVersion "26.1.10909125"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
@@ -102,6 +102,7 @@ android {
ndk {
//noinspection ChromeOsAbiSupport
abiFilters "x86_64", "armeabi-v7a", "arm64-v8a"
debugSymbolLevel 'FULL'
}
}
}