Change ndk setup
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -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: |
|
||||
|
||||
3
Makefile
3
Makefile
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user