Commit Graph

1763 Commits

Author SHA1 Message Date
Calcitem 3023ec95f6 flutter: Refactor setWhoIsAi() 2021-02-28 11:39:47 +08:00
Calcitem 7172e9bdb2 Change option name to upper camel case style 2021-02-28 10:55:30 +08:00
Calcitem 6a5ff653e1 flutter: config: Change config name style 2021-02-28 10:27:02 +08:00
Calcitem 8eae369275 flutter: Remove bgmEnabled settings 2021-02-28 10:24:01 +08:00
Calcitem 83eb96ece5 flutter: Remove algorithm.dart 2021-02-28 10:21:07 +08:00
Calcitem dc66cbbe83 flutter: Center font size change from 36 to 48 2021-02-28 09:56:46 +08:00
Calcitem 63149d8508 flutter: Modify restart dialog button text 2021-02-28 09:56:07 +08:00
Calcitem e90eca6c6f Support aiIsLazy (WIP) [Sample]
Known Issue: Flutter and Qt self play is not same.
Last few moves are different.
2021-02-28 01:12:17 +08:00
Calcitem 54d18eb02f qt: Fix skillLevel do not have default value (20) 2021-02-27 23:42:11 +08:00
Calcitem ef7653005e flutter: Refactor navigation_home_screen.dart 2021-02-27 22:27:32 +08:00
Calcitem ca53cc41f0 flutter: Draw piece count in center of board when placing 2021-02-27 22:10:47 +08:00
Calcitem 8600263061 flutter: Fix warnings 2021-02-27 20:47:53 +08:00
Calcitem 36b422634c flutter: audio: Change pause and seed(0) to stop 2021-02-27 12:54:27 +08:00
Calcitem 691f464fda flutter: Remove unused dependencies 2021-02-27 12:19:31 +08:00
Calcitem 5d52250532 flutter: Change audioplayers to just_audio
Because of following audioplayers exception:

Error: PlatformException(Unexpected error!, null, java.lang.IllegalStateException at android.media.MediaPlayer._setDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1305)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1288)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1242)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1218)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1185)
at xyz.luan.audioplayers.WrappedMediaPlayer.setUrl(WrappedMediaPlayer.kt:37)
at xyz.luan.audioplayers.AudioplayersPlugin.handleMethodCall(AudioplayersPlugin.kt:62)
at xyz.luan.audioplayers.AudioplayersPlugin.onMethodCall(AudioplayersPlugin.kt:37)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:332)
at android.os.Looper.loop(Looper.java:168)
at android.app.ActivityThread.main(ActivityThread.java:6878)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) , null)

And remove BGM Settings.

Stack trace:
package:flutter/src/services/message_codecs.dart 581:7
StandardMethodCodec.decodeEnvelope package:flutter/src/services/platform_channel.dart 158:18
MethodChannel._invokeMethod
===== asynchronous gap ===========================
dart:async/zone.dart 1294:19
_CustomZone.registerBinaryCallback dart:async-patch/async_patch.dart 51:8
_asyncErrorWrapperHelper package:sanmill/services/audios.dart 79:19
Audios.playTone. package:stack_trace/src/chain.dart 94:24
Chain.capture. dart:async/zone.dart 1354:13 _rootRun dart:async/zone.dart 1258:19
_CustomZone.run dart:async/zone.dart 1789:10 _runZoned dart:async/zone.dart 1711:10
runZoned package:stack_trace/src/chain.dart 92:12 Chain.capture package:sanmill/services/audios.dart 78:11
Audios.playTone
2021-02-27 12:11:19 +08:00
Calcitem 46f1815cd1 flutter: stack_trace: Add chain to _tonePlayer.play(fileName) 2021-02-27 11:03:37 +08:00
Calcitem e6634c24ca flutter: audio: Remove onBoardTap()'s duplicate play audio
putPiece() and removePiece() has played.
2021-02-27 10:51:15 +08:00
Calcitem 6f1e7f7d74 flutter: stack_trace: Add chain to more code 2021-02-27 10:11:39 +08:00
Calcitem 26e89124fb flutter: Settings color is fixed 2021-02-27 01:55:06 +08:00
Calcitem 943ef77087 flutter: appName: Use animated_text_kit 2021-02-26 22:44:20 +08:00
Calcitem 79c6ebaf7b flutter: Allow to save color settings
Rename Color to PieceColor.
2021-02-26 01:25:54 +08:00
Calcitem 6939e916ff flutter: settings: Support choose color 2021-02-25 01:52:42 +08:00
Calcitem 3d975c2a86 flutter: color: Change to crusoeColor and burlyWoodColor 2021-02-25 01:02:03 +08:00
Calcitem d3ab21b257 flutter: board: Change innerLineWidth from 1 to 1.5 2021-02-25 01:00:51 +08:00
Calcitem c068728a1e flutter: help: Change color 2021-02-22 01:12:18 +08:00
Calcitem 110c0016e4 flutter: Clear unused code
Note: Config.loadProfile is not await.
2021-02-22 01:07:36 +08:00
Calcitem e830513aa3 flutter: about: Move from game_settings_page.dart to navigation_home_screen.dart 2021-02-22 00:50:47 +08:00
Calcitem 6909151597 flutter: Change FlatButton to TextButton 2021-02-22 00:39:03 +08:00
Calcitem 46007d76fb flutter: Add rule settings page 2021-02-21 13:09:10 +08:00
Calcitem d25baa2d9a config: Define USE_POPCNT only if not defined 2021-02-21 11:41:57 +08:00
Calcitem c86e2887a0 depth: Return 0 if d is 0 2021-02-21 11:31:27 +08:00
Calcitem b196bee4ba flutter: Try to fix element._debugcheckstateisactiveforancestorlookup. anonymous closure
See: https://stackoverflow.com/questions/59579640/flutter-looking-up-a-deactivated-widgets-ancestor-is-unsafe-with-provider-pac
2021-02-21 10:57:47 +08:00
Calcitem 7eea26b8fb flutter: Upgrade cupertino_icons and uuid version
See:
https://pub.dev/packages/cupertino_icons/changelog
https://pub.dev/packages/uuid/changelog
2021-02-21 10:02:05 +08:00
Calcitem 6fdb6b71d2 flutter: Skip packageInfo and audioplayer (WAR)
Waiting packages upgrade to fix them.
2021-02-21 09:57:31 +08:00
Calcitem 92691ce55d flutter: Upgrade packages version
Android minSdkVersion 19 -> 23, targetSdkVersion: 28 -> 30
audioplayers: ^0.14.0 -> ^0.17.4
path_provider: ^1.6.1 -> ^0.16.27
package_info: ^0.4.0+16 -> ^0.4.3+4

See:
https://pub.dev/packages/audioplayers/changelog
https://pub.dev/packages/path_provider/changelog
https://pub.dev/packages/package_info/changelog
2021-02-21 09:46:00 +08:00
Calcitem be4fd0246e flutter: Android: Set splash screen color to aths_special 2021-02-21 02:16:52 +08:00
Calcitem 2cf96079cc monkey.sh: cd to adb path first (Windows) 2021-02-21 01:44:42 +08:00
Calcitem 4f0da829f8 flutter: Use part of Best-Flutter-UI-Templates
See: https://github.com/mitesh77/Best-Flutter-UI-Templates
2021-02-21 01:42:41 +08:00
Calcitem e402a69826 flutter: Change dialog to transparent when showing move history
And allow to copy to Clipboard.
2021-02-19 00:11:07 +08:00
Calcitem 63276fa9cc win32: Disable warning 4996 and do not use strncpy_s 2021-02-18 22:05:18 +08:00
Calcitem abaa4d65d9 flutter: Android: Fix EngineState build failed 2021-02-18 00:07:31 +08:00
Calcitem b8fc7c6211 flutter: android: Fix CMakeList.txt lost
Lost when rename flutter dir to flutter_app.
2021-02-18 00:06:33 +08:00
Calcitem 026db0f141 Win32: Change strncpy_s()'s 2 argument from sizeof() to 256 2021-02-17 23:45:18 +08:00
Calcitem a96268d720 flutter: Catcher: Only enable on Android or iOS 2021-02-17 23:45:15 +08:00
Calcitem ffa1bf986c flutter: Windows: Support Platform Channel 2021-02-17 23:44:32 +08:00
Calcitem ea7c65fa88 Fix VC build warnings 2021-02-17 22:00:31 +08:00
Calcitem f5d3009cb0 flutter: Windows: Change title to Mill Game 2021-02-17 18:49:19 +08:00
Calcitem 88428f3ea2 flutter: Windows: Adjust window size to 428 * 926 (19:9) 2021-02-17 18:28:08 +08:00
Calcitem d0cd188028 flutter: Windows: Replace app_icon.ico 2021-02-17 18:15:10 +08:00
Calcitem cb6ca25c79 flutter: Deal with getExternalStorageDirectory and profile file reading exceptions 2021-02-17 12:16:37 +08:00