Skip to content

Commit 515d14c

Browse files
committed
Update workflow to build only for arm64 and comment out experimental feature
1 parent 9aef994 commit 515d14c

4 files changed

Lines changed: 27 additions & 30 deletions

File tree

.github/workflows/flutter_ci_cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ jobs:
4141

4242
- name: Build APK (Release - Unsigned)
4343
run: |
44-
flutter build apk --release --no-shrink
44+
flutter build apk --release --target-platform android-arm64
4545
echo "APK built successfully!"
4646
ls -la build/app/outputs/flutter-apk/
4747
4848
- name: Upload APK artifact
4949
uses: actions/upload-artifact@v4
5050
with:
5151
name: app-release-unsigned
52-
path: build/app/outputs/flutter-apk/app-release.apk
52+
path: build/app/outputs/flutter-apk/app-release-arm64.apk
5353
retention-days: 2
5454

5555
- name: Create GitHub Release
5656
if: startsWith(github.ref, 'refs/tags/v')
5757
uses: softprops/action-gh-release@v1
5858
with:
59-
files: build/app/outputs/flutter-apk/app-release.apk
59+
files: build/app/outputs/flutter-apk/app-release-arm64.apk
6060
generate_release_notes: true
6161
prerelease: false
6262
draft: false

lib/features/tool/text_editor/text_editor_tool_base.dart

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import 'dart:async';
2-
import 'dart:io' as io;
32

4-
import 'package:flutter/foundation.dart';
53
import 'package:flutter/material.dart';
64
import 'package:flutter_quill/flutter_quill.dart';
75
import 'package:hive_ce/hive.dart';
8-
import 'package:path/path.dart' as path;
96
import 'package:rxdart/rxdart.dart';
107
import 'package:sengthaite_blog/constants/app.constants.dart';
118
import 'package:sengthaite_blog/shared/file/hiveeditor.dart';
@@ -57,24 +54,24 @@ class _TextEditorToolState extends State<TextEditorTool> {
5754
void initState() {
5855
TextEditorTool.quillController = QuillController.basic(
5956
config: QuillControllerConfig(
60-
clipboardConfig: QuillClipboardConfig(
61-
enableExternalRichPaste: true,
62-
onImagePaste: (imageBytes) async {
63-
if (kIsWeb) {
64-
return null;
65-
}
66-
final newFileName =
67-
'image-file-${DateTime.now().toIso8601String()}.png';
68-
final newPath = path.join(
69-
io.Directory.systemTemp.path,
70-
newFileName,
71-
);
72-
final file = await io.File(
73-
newPath,
74-
).writeAsBytes(imageBytes, flush: true);
75-
return file.path;
76-
},
77-
),
57+
// clipboardConfig: QuillClipboardConfig(
58+
// enableExternalRichPaste: true,
59+
// onImagePaste: (imageBytes) async {
60+
// if (kIsWeb) {
61+
// return null;
62+
// }
63+
// final newFileName =
64+
// 'image-file-${DateTime.now().toIso8601String()}.png';
65+
// final newPath = path.join(
66+
// io.Directory.systemTemp.path,
67+
// newFileName,
68+
// );
69+
// final file = await io.File(
70+
// newPath,
71+
// ).writeAsBytes(imageBytes, flush: true);
72+
// return file.path;
73+
// },
74+
// ),
7875
),
7976
);
8077
loadMarkdown();

lib/features/tool/text_editor/text_editor_tool_desktop.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class TextEditorToolDesktop extends TextEditorTool {
77
config: QuillEditorConfig(
88
minHeight: 300,
99
autoFocus: false,
10-
searchConfig: QuillSearchConfig(
11-
searchEmbedMode: SearchEmbedMode.plainText,
12-
),
10+
// searchConfig: QuillSearchConfig(
11+
// searchEmbedMode: SearchEmbedMode.plainText,
12+
// ),
1313
),
1414
);
1515
}

lib/features/tool/text_editor/text_editor_tool_mobile.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class TextEditorToolMobile extends TextEditorTool {
66
: super(
77
config: QuillEditorConfig(
88
autoFocus: false,
9-
searchConfig: QuillSearchConfig(
10-
searchEmbedMode: SearchEmbedMode.plainText,
11-
),
9+
// searchConfig: QuillSearchConfig(
10+
// searchEmbedMode: SearchEmbedMode.plainText,
11+
// ),
1212
),
1313
);
1414
}

0 commit comments

Comments
 (0)