mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
ML-61 Try using buildTypes.release.ndk.debugSymbolLevel 'FULL'
(#79)
* Replaced zipping action thedoctor0/zip-release@0.7.1 -> vimtor/action-zip@v1.1 * typo * recursive: false * typo * typo * debugSymbolLevel 'FULL' * Update build.gradle
This commit is contained in:
parent
74d0a7101c
commit
02ece15c5d
3 changed files with 15 additions and 19 deletions
20
.github/workflows/cd_prod.yml
vendored
20
.github/workflows/cd_prod.yml
vendored
|
@ -8,6 +8,9 @@ name: Build prod .aab & .apk
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
|
@ -70,7 +73,7 @@ jobs:
|
||||||
flutter pub run intl_utils:generate
|
flutter pub run intl_utils:generate
|
||||||
|
|
||||||
- name: Build apk
|
- name: Build apk
|
||||||
run: flutter build apk --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
|
run: flutter build apk $BUILD_ARGS
|
||||||
|
|
||||||
- name: Upload apk to artifacts
|
- name: Upload apk to artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -79,23 +82,10 @@ jobs:
|
||||||
path: build/app/outputs/flutter-apk/app-prod-release.apk
|
path: build/app/outputs/flutter-apk/app-prod-release.apk
|
||||||
|
|
||||||
- name: Build appbundle
|
- name: Build appbundle
|
||||||
run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
|
run: flutter build appbundle $BUILD_ARGS
|
||||||
|
|
||||||
- name: Upload app bundle to artifacts
|
- name: Upload app bundle to artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_bundle
|
name: m3_lightmeter_bundle
|
||||||
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab
|
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab
|
||||||
|
|
||||||
- name: Zip merged_native_libs folder
|
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
|
||||||
with:
|
|
||||||
type: 'zip'
|
|
||||||
path: 'build/app/intermediates/merged_native_libs/prodRelease/out/lib/'
|
|
||||||
filename: 'merged_native_libs.zip'
|
|
||||||
|
|
||||||
- name: Upload merged_native_libs to artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: merged_native_libs
|
|
||||||
path: merged_native_libs.zip
|
|
|
@ -56,8 +56,11 @@ android {
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
ndk.abiFilters 'armeabi-v7a', 'arm64-v8a'
|
ndk {
|
||||||
|
debugSymbolLevel 'FULL'
|
||||||
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
||||||
|
}
|
||||||
/// legacy material-lightmeter ap stopped updating after 60022
|
/// legacy material-lightmeter ap stopped updating after 60022
|
||||||
/// 7xxxx means that it is a new app
|
/// 7xxxx means that it is a new app
|
||||||
versionCode 70000 + flutterVersionCode.toInteger()
|
versionCode 70000 + flutterVersionCode.toInteger()
|
||||||
|
@ -95,7 +98,10 @@ android {
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
ndk.abiFilters 'armeabi-v7a', 'arm64-v8a'
|
ndk {
|
||||||
|
debugSymbolLevel 'FULL'
|
||||||
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.1.2'
|
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||||
classpath 'com.google.gms:google-services:4.3.10'
|
classpath 'com.google.gms:google-services:4.3.10'
|
||||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
Loading…
Reference in a new issue