Skip to content

Commit

Permalink
Update build script to version apk file
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Dec 21, 2024
1 parent 3502b19 commit b37cc6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/actions/build_android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ runs:
- name: list dependencies
shell: bash
run: cd android && ./gradlew app:dependencies --configuration releaseCompileClasspath
- name: Rename APK
shell: bash
if: inputs.build-mode == 'apk'
run: cd build/app/outputs/apk/release/ && mv apk-release.apk tailCompanyApp-${{ inputs.version }}-${{ inputs.build-number }}.apk
- uses: actions/upload-artifact@v4
continue-on-error: true
if: runner.os == 'Linux' && inputs.build-mode == 'apk'
if: inputs.build-mode == 'apk'
with:
name: artifact-${{ runner.os }}
path: build/app/outputs/apk
name: artifact-${{ inputs.version }}-${{ inputs.build-number }}
path: build/app/outputs/apk/release
4 changes: 2 additions & 2 deletions lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool _didInitFlutterBluePlus = false;
FlutterBluePlusMockable flutterBluePlus = FlutterBluePlusMockable();

@Riverpod(keepAlive: true)
class initFlutterBluePlus extends _$initFlutterBluePlus {
class InitFlutterBluePlus extends _$InitFlutterBluePlus {
StreamSubscription<OnServicesResetEvent>? _onServicesResetStreamSubscription;
StreamSubscription<BluetoothAdapterState>? _adapterStateStreamSubscription;

Expand Down Expand Up @@ -388,7 +388,7 @@ class _OnCharacteristicReceived extends _$OnCharacteristicReceived {
}
}

@Riverpod(keepAlive: true, dependencies: [initFlutterBluePlus])
@Riverpod(keepAlive: true, dependencies: [InitFlutterBluePlus])
class _KeepGearAwake extends _$KeepGearAwake {
StreamSubscription? streamSubscription;

Expand Down

0 comments on commit b37cc6a

Please sign in to comment.