flutter: Rename dir flutter to flutter_app
|
@ -36,7 +36,7 @@ jobs:
|
||||||
run: flutter --version
|
run: flutter --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd src/ui/flutter; flutter pub get; flutter pub global activate intl_utils; flutter --no-color pub global run intl_utils:generate
|
run: cd src/ui/flutter_app; flutter pub get; flutter pub global activate intl_utils; flutter --no-color pub global run intl_utils:generate
|
||||||
|
|
||||||
# Uncomment this step to verify the use of 'dart format' on each commit.
|
# Uncomment this step to verify the use of 'dart format' on each commit.
|
||||||
# - name: Verify formatting
|
# - name: Verify formatting
|
||||||
|
@ -50,11 +50,11 @@ jobs:
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
- name: Build apk
|
- name: Build apk
|
||||||
run: cd src/ui/flutter; flutter build apk
|
run: cd src/ui/flutter_app; flutter build apk
|
||||||
|
|
||||||
# Archive
|
# Archive
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: sanmill-flutter-apk-release
|
name: sanmill-flutter-apk-release
|
||||||
path: src/ui/flutter/build/app/outputs/flutter-apk/app-release.apk
|
path: src/ui/flutter_app/build/app/outputs/flutter-apk/app-release.apk
|
|
@ -17,7 +17,7 @@ This distribution of Sanmill consists of the following files:
|
||||||
|
|
||||||
* src, a subdirectory containing the full source code, including a Makefile that can be used to compile Sanmill CUI on Unix-like systems.
|
* src, a subdirectory containing the full source code, including a Makefile that can be used to compile Sanmill CUI on Unix-like systems.
|
||||||
|
|
||||||
* src/ui/flutter, a subdirectory containing a Flutter frontend.
|
* src/ui/flutter_app, a subdirectory containing a Flutter frontend.
|
||||||
|
|
||||||
* src/ui/qt, a subdirectory containing a Qt frontend.
|
* src/ui/qt, a subdirectory containing a Qt frontend.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd src/ui/flutter
|
cd src/ui/flutter_app
|
||||||
flutter pub get
|
flutter pub get
|
||||||
flutter pub global activate intl_utils
|
flutter pub global activate intl_utils
|
||||||
flutter --no-color pub global run intl_utils:generate
|
flutter --no-color pub global run intl_utils:generate
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.4.1)
|
|
||||||
|
|
||||||
add_definitions(-g -O2 -std=c++17 -D FLUTTER_UI)
|
|
||||||
|
|
||||||
add_library( # Sets the name of the library.
|
|
||||||
engine
|
|
||||||
|
|
||||||
# Sets the library as a shared library.
|
|
||||||
SHARED
|
|
||||||
|
|
||||||
# Provides a relative path to your source file(s).
|
|
||||||
src/main/cpp/mill_engine.cpp
|
|
||||||
../../command/command_channel.cpp
|
|
||||||
../../command/command_queue.cpp
|
|
||||||
../../command/engine_main.cpp
|
|
||||||
../../../../bitboard.cpp
|
|
||||||
../../../../endgame.cpp
|
|
||||||
../../../../evaluate.cpp
|
|
||||||
../../../../main.cpp
|
|
||||||
../../../../mills.cpp
|
|
||||||
../../../../misc.cpp
|
|
||||||
../../../../movegen.cpp
|
|
||||||
../../../../movepick.cpp
|
|
||||||
../../../../option.cpp
|
|
||||||
../../../../position.cpp
|
|
||||||
../../../../rule.cpp
|
|
||||||
../../../../search.cpp
|
|
||||||
../../../../thread.cpp
|
|
||||||
../../../../tt.cpp
|
|
||||||
../../../../uci.cpp
|
|
||||||
../../../../ucioption.cpp)
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../../command
|
|
||||||
../../../../../include
|
|
||||||
../../../../
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library( # Sets the name of the path variable.
|
|
||||||
log-lib
|
|
||||||
|
|
||||||
# Specifies the name of the NDK library that
|
|
||||||
# you want CMake to locate.
|
|
||||||
log)
|
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries( # Specifies the target library.
|
|
||||||
engine
|
|
||||||
|
|
||||||
# Links the target library to the log library
|
|
||||||
# included in the NDK.
|
|
||||||
${log-lib})
|
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 873 B After Width: | Height: | Size: 873 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |