Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
d83398e
Added macOS support to Flet View
FeodorFitsner Apr 8, 2022
2bafb46
macOS app renamed
FeodorFitsner Apr 8, 2022
957bda7
Correctly spawn flet server process
FeodorFitsner Apr 8, 2022
2b2ed90
Opening Flet View works on macOS
FeodorFitsner Apr 8, 2022
14bddcf
Exiting Flet View on Windows
FeodorFitsner Apr 8, 2022
0a8acdd
Flet Server renamed to "fletd"
FeodorFitsner Apr 8, 2022
8b2aabf
Windows, Web clients renamed
FeodorFitsner Apr 8, 2022
eb5a59e
Flet Windows app renamed
FeodorFitsner Apr 8, 2022
647dd01
Change the name of Flet View executable
FeodorFitsner Apr 8, 2022
f536ce1
macOS renamed
FeodorFitsner Apr 9, 2022
ebbda8f
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 9, 2022
c2ce924
Flet.app
FeodorFitsner Apr 9, 2022
7a1983e
macos build
FeodorFitsner Apr 9, 2022
1ed0a2d
quietly unzip
FeodorFitsner Apr 9, 2022
fb60b39
build macOS client
FeodorFitsner Apr 9, 2022
9545597
flutter config --enable-macos-desktop
FeodorFitsner Apr 9, 2022
a265f4c
Add Flet.app to artifacts
FeodorFitsner Apr 9, 2022
225b02d
Package Flet for Windows
FeodorFitsner Apr 9, 2022
701d085
Download Flet client artifact
FeodorFitsner Apr 10, 2022
9f01ed9
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 10, 2022
e72d69f
Rename flet client artifacts
FeodorFitsner Apr 10, 2022
615d257
Fix call to rehash_record_lines
FeodorFitsner Apr 10, 2022
14edbbc
Fix downloading client
FeodorFitsner Apr 10, 2022
d921244
Fix path to fletd
FeodorFitsner Apr 10, 2022
6413cbc
Optimize build
FeodorFitsner Apr 10, 2022
e9b5e8e
Fix Build Fletd job
FeodorFitsner Apr 10, 2022
3d86270
Packaging improvements
FeodorFitsner Apr 10, 2022
e1fa95c
Fix Flet unpack
FeodorFitsner Apr 10, 2022
2b6b61f
Control.disabled property
FeodorFitsner Apr 11, 2022
db711f6
Remove unnecessary python files
FeodorFitsner Apr 11, 2022
cd72c0d
Remove most of the tests
FeodorFitsner Apr 11, 2022
7a1320e
More controls described
FeodorFitsner Apr 11, 2022
df065ea
Python: Control and Page - S1
FeodorFitsner Apr 11, 2022
e5553be
Python: Row, Column and Container - S1
FeodorFitsner Apr 11, 2022
7968bba
Python: Removed all border props
FeodorFitsner Apr 11, 2022
3514063
Python: ListView and GridView - S1
FeodorFitsner Apr 11, 2022
a2242f4
Python: Text control - S1
FeodorFitsner Apr 11, 2022
24b195d
Python: Icon and Image - S1
FeodorFitsner Apr 11, 2022
b6e5db8
Python: ProgressBar and ProgressRing - S1
FeodorFitsner Apr 11, 2022
8db29cc
Python: Buttons - S1
FeodorFitsner Apr 11, 2022
9627fe5
Python: Checkbox, Slider, Switch - S1
FeodorFitsner Apr 11, 2022
cb18c8e
Python: Dropdown, TextField - S1
FeodorFitsner Apr 11, 2022
a103148
Cleanup
FeodorFitsner Apr 12, 2022
860cea2
Update roadmap.md
FeodorFitsner Apr 12, 2022
2ac857b
SnackBar prototype
FeodorFitsner Apr 12, 2022
1b1844f
Fix controls hierarchy
FeodorFitsner Apr 13, 2022
39d3f23
Fix control props
FeodorFitsner Apr 13, 2022
d151ce4
SnackBar control complete
FeodorFitsner Apr 13, 2022
7b6c27c
Started working on Row control
FeodorFitsner Apr 13, 2022
89bb5db
Fix page props update. Theme selection.
FeodorFitsner Apr 13, 2022
1bb3a6b
Update page's width and height on window resize
FeodorFitsner Apr 14, 2022
478e351
Parsing colors
FeodorFitsner Apr 14, 2022
44fbced
Working with themes
FeodorFitsner Apr 14, 2022
9f2f6f6
OptionalNumber everywhere
FeodorFitsner Apr 14, 2022
59283f1
Row control
FeodorFitsner Apr 14, 2022
8aacdec
Stack control
FeodorFitsner Apr 14, 2022
f36e346
Icon control
FeodorFitsner Apr 14, 2022
b4bdc2f
Text control
FeodorFitsner Apr 14, 2022
4687127
Fix expandable
FeodorFitsner Apr 14, 2022
659cb3c
Themed colors support
FeodorFitsner Apr 14, 2022
bdd4688
Control sizes
FeodorFitsner Apr 15, 2022
82c6f12
Support inf size
FeodorFitsner Apr 15, 2022
396d5d6
Fletd cleanup
FeodorFitsner Apr 15, 2022
0022bd8
Remove Command.Lines
FeodorFitsner Apr 15, 2022
f8bdf48
Optimize command json size
FeodorFitsner Apr 15, 2022
2d39155
Load page in store reducer
FeodorFitsner Apr 15, 2022
3021160
Fix for Python 3.7
FeodorFitsner Apr 15, 2022
8c8fbf2
Disable python 3.7 tests
FeodorFitsner Apr 15, 2022
598977c
Configure assets path and serve static assets
FeodorFitsner Apr 15, 2022
40101fd
Image control
FeodorFitsner Apr 16, 2022
1f1c979
Scrollbar for column and row
FeodorFitsner Apr 16, 2022
3d555cd
ElevatedButton
FeodorFitsner Apr 16, 2022
b00fc55
Fix Fletd content
FeodorFitsner Apr 16, 2022
65b516c
Do not create server/server/content
FeodorFitsner Apr 16, 2022
e5262bf
OutlinedButton, TextButton, IconButton
FeodorFitsner Apr 16, 2022
3fb6069
Check copied content
FeodorFitsner Apr 16, 2022
9946d57
Remove content folder
FeodorFitsner Apr 16, 2022
048587e
Get index.html back
FeodorFitsner Apr 16, 2022
c7198d7
Opacity implemented
FeodorFitsner Apr 17, 2022
f3171b0
Container, padding, margin from JSON
FeodorFitsner Apr 17, 2022
31fa0f1
Container control
FeodorFitsner Apr 17, 2022
14e9afe
Image rounded corners
FeodorFitsner Apr 17, 2022
73bca4f
GridView
FeodorFitsner Apr 17, 2022
f0cec29
ProgressRing
FeodorFitsner Apr 17, 2022
edabac0
Imports sorted
FeodorFitsner Apr 17, 2022
fef1b70
Checkbox
FeodorFitsner Apr 20, 2022
098e126
RadioGroup and Radio
FeodorFitsner Apr 20, 2022
2d549ad
TextField and Dropdown with decoration
FeodorFitsner Apr 20, 2022
f25872a
Fix doubles parsing for Windows client
FeodorFitsner Apr 20, 2022
2bb988a
Slider control
FeodorFitsner Apr 20, 2022
6aca794
Colors for Python
FeodorFitsner Apr 21, 2022
e181947
Shift-Enter mode for TextField
FeodorFitsner Apr 21, 2022
5aabf0c
Open some examples in Desktop
InesaFitsner Apr 21, 2022
8fa6f16
setWindowTitle, counter example for home page
FeodorFitsner Apr 21, 2022
37bcc43
Offstage controls
FeodorFitsner Apr 22, 2022
b8572de
Alert dialog finished
FeodorFitsner Apr 22, 2022
488fe0d
Added elevated button example
InesaFitsner Apr 22, 2022
1e5bf3a
Banner control added
FeodorFitsner Apr 22, 2022
293c3d3
Auto-scrollable ListView
FeodorFitsner Apr 22, 2022
4d5790e
Tabs control
FeodorFitsner Apr 23, 2022
0d7a1b5
Tabs completed
FeodorFitsner Apr 24, 2022
f000b2b
Fix tabs changing size
FeodorFitsner Apr 24, 2022
04554f0
Tabs control finished
FeodorFitsner Apr 25, 2022
9f88865
FAB, scrollable page
FeodorFitsner Apr 25, 2022
f4bb1ce
To-Do app complete
FeodorFitsner Apr 25, 2022
59f0455
GITHUB_TOKEN updated [skip ci]
FeodorFitsner Apr 25, 2022
ffc1934
Bump Go to 1.18.1
FeodorFitsner Apr 25, 2022
7925e87
Ignore server/server/content/
FeodorFitsner Apr 25, 2022
e590662
Ignore server/content/
FeodorFitsner Apr 25, 2022
2748805
Remove index.html
FeodorFitsner Apr 25, 2022
2e05d18
mkdir server/server/content
FeodorFitsner Apr 25, 2022
6f401f4
Open Flet client on Windows and MacOS only
FeodorFitsner Apr 25, 2022
239a3f7
Wait for sessions
FeodorFitsner Apr 25, 2022
8961a47
elevatedbutton examples
InesaFitsner Apr 25, 2022
e7dd14d
App icons changed for web, windows and macos
FeodorFitsner Apr 25, 2022
3381553
Todo icons updated
FeodorFitsner Apr 26, 2022
13c768c
version: 0.0.{build}
FeodorFitsner Apr 26, 2022
6d746b3
macOS icons updated
FeodorFitsner Apr 26, 2022
34c605e
Update flet.md
FeodorFitsner Apr 26, 2022
4961497
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 26, 2022
75bd2e3
macos icons updated
FeodorFitsner Apr 26, 2022
9fa90a5
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 26, 2022
277dfcb
counter app updated
FeodorFitsner Apr 27, 2022
4aeeefa
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 27, 2022
68cb70d
Bump new build
FeodorFitsner Apr 27, 2022
de4c584
Outlined buttons examples
InesaFitsner Apr 27, 2022
7d8b197
Alignment parsing fixed
FeodorFitsner Apr 28, 2022
4f962ac
Rollback listview
FeodorFitsner Apr 28, 2022
94afb26
Dynamic lazy building ListView and GridView controls
FeodorFitsner Apr 28, 2022
57ab0bc
GridView child_aspect_ratio
FeodorFitsner Apr 28, 2022
4ce83fa
Icons browser with outlined buttons
FeodorFitsner Apr 28, 2022
f367b0f
Tooltip property added to all visible controls
FeodorFitsner Apr 28, 2022
c79054b
Make tooltip delay longer
FeodorFitsner Apr 28, 2022
8635793
Clipboard control draft
FeodorFitsner Apr 28, 2022
c1dc6cc
Clipboard
FeodorFitsner Apr 29, 2022
d14ae27
Update container.dart
FeodorFitsner Apr 29, 2022
da72cfe
ignoreChange sometimes
FeodorFitsner Apr 29, 2022
effb4a2
Remove tooltip from iconbutton
FeodorFitsner Apr 29, 2022
82e04d7
autofocus, focus, blur to all form controls
FeodorFitsner Apr 29, 2022
70b2570
Default Flet color theme
FeodorFitsner Apr 29, 2022
9827890
autofocus, on_focus, on_blur to Python classes
FeodorFitsner Apr 29, 2022
4de9377
Icon browser done
FeodorFitsner Apr 30, 2022
24d1734
More general wheel package tags for Linux
FeodorFitsner Apr 30, 2022
7603c28
Add package for Alpine distro
FeodorFitsner Apr 30, 2022
aabe29b
Create a separate package for Alpine
FeodorFitsner Apr 30, 2022
6daabb2
Merge pull request #3 from flet-dev/s1-lazy-builders
FeodorFitsner Apr 30, 2022
b68a8af
Merge branch 's1' of https://github.com/flet-dev/flet into s1
FeodorFitsner Apr 30, 2022
ef697ef
Icons-browser v2 with page-level locks
FeodorFitsner May 1, 2022
e8b09f4
Multiline textboxes done right
FeodorFitsner May 1, 2022
940fed8
Upgrade to Flutter 2.10.5
FeodorFitsner May 1, 2022
5a740c4
Use canvaskit even on mobile for now
FeodorFitsner May 1, 2022
fb06a2d
Re-connecting flow
FeodorFitsner May 2, 2022
1e31b5e
Exponential reconnection logic, PWA icons
FeodorFitsner May 3, 2022
8c0ff47
Icons updated
FeodorFitsner May 3, 2022
a17493e
Large logo on an icon
FeodorFitsner May 3, 2022
3253bcd
Icon button examples
InesaFitsner May 3, 2022
ef3070e
Merge branch 's1' into s1-examples
InesaFitsner May 3, 2022
481f612
Temp remove icons
FeodorFitsner May 4, 2022
8a2f30e
PWA icons all good
FeodorFitsner May 4, 2022
95c269e
container examples
InesaFitsner May 4, 2022
21c95c7
CircleAvatar control added
FeodorFitsner May 5, 2022
218f5ca
bgColor for ImageButton
FeodorFitsner May 5, 2022
89661d0
container alignment examples
InesaFitsner May 5, 2022
5cb537a
FAB
FeodorFitsner May 6, 2022
5adb8b8
Update containers-borders.py
InesaFitsner May 6, 2022
bdd2b12
container padding example
InesaFitsner May 6, 2022
97d0650
Expand can be True
FeodorFitsner May 6, 2022
141c566
container examples
InesaFitsner May 6, 2022
7002390
page.content -> page.controls
FeodorFitsner May 6, 2022
8b632e1
Fix page size parsing
FeodorFitsner May 6, 2022
d9f636c
Progress indicator samples
FeodorFitsner May 11, 2022
c1c814b
Upgraded to Flutter 3.0
FeodorFitsner May 11, 2022
20ab93c
Filled elevated button
FeodorFitsner May 12, 2022
38c5482
Filled buttons, dividers
FeodorFitsner May 12, 2022
8c11922
Dividers example
FeodorFitsner May 13, 2022
8110110
PopupMenuButton control
FeodorFitsner May 13, 2022
f0e3d19
Squashed commit of the following:
InesaFitsner May 13, 2022
a662e13
examples
InesaFitsner May 14, 2022
05446c2
Merge branch 's1' into s1-examples
InesaFitsner May 14, 2022
4751be9
AppBar, NavigationRail - Python
FeodorFitsner May 14, 2022
fe2d6ae
AppBar
FeodorFitsner May 14, 2022
56b18a7
AppBar
FeodorFitsner May 15, 2022
0e60f56
NavigationRail control
FeodorFitsner May 15, 2022
fd8728b
NavigationRail selected_index
FeodorFitsner May 16, 2022
d2f5dfa
Check collection controls for visibility
FeodorFitsner May 16, 2022
b397650
Tabs selected_index
FeodorFitsner May 16, 2022
dbcaca1
Control._set_attr_json
FeodorFitsner May 16, 2022
4b70802
Slight protocol optimization
FeodorFitsner May 16, 2022
03548c5
Card control
FeodorFitsner May 16, 2022
afc67a5
ListTile
FeodorFitsner May 16, 2022
a5c7190
Update container-margin.py
InesaFitsner May 16, 2022
b457260
Squashed commit of the following:
InesaFitsner May 16, 2022
6a6ae7f
Fix setting clipboard
FeodorFitsner May 16, 2022
391f00a
Text max_lines
FeodorFitsner May 17, 2022
576796c
More control examples
FeodorFitsner May 17, 2022
946d31d
Row python examples
FeodorFitsner May 17, 2022
2a7c29e
Merge branch 's1' into s1-examples
InesaFitsner May 17, 2022
2a08d28
button examples
InesaFitsner May 17, 2022
ef853fd
More samples
FeodorFitsner May 17, 2022
f9ecd39
Merge branch 's1' into s1-examples
InesaFitsner May 17, 2022
7737e94
Merge pull request #4 from flet-dev/s1-examples
InesaFitsner May 17, 2022
75e6fa3
Playground stuff moved to Examples
FeodorFitsner May 18, 2022
8d60ab1
Tabs, Text examples
FeodorFitsner May 18, 2022
4d8fd27
Update Info.plist
FeodorFitsner May 18, 2022
7ffd8df
Checkbox tristate fix
FeodorFitsner May 18, 2022
ba25f5b
Checkbox, Radio, Switch, Slider examples
FeodorFitsner May 19, 2022
1a0d0fd
Built for iOS
FeodorFitsner May 19, 2022
87810f0
iOS app updated
FeodorFitsner May 20, 2022
1435e44
Android app updated
FeodorFitsner May 20, 2022
3b92159
Build for iOS
FeodorFitsner May 20, 2022
3472729
Trying fastlane
FeodorFitsner May 20, 2022
8db79bc
cd client/ios
FeodorFitsner May 20, 2022
210ee05
set LANG to UTF8
FeodorFitsner May 20, 2022
e9a668a
Install cocoapods with fastlane
FeodorFitsner May 20, 2022
eaaa18f
Trying match
FeodorFitsner May 21, 2022
95cef87
Fix build
FeodorFitsner May 21, 2022
67fe179
Set profile
FeodorFitsner May 21, 2022
864732f
Try Ad-Hoc profile
FeodorFitsner May 21, 2022
ce598bc
Add xcargs
FeodorFitsner May 21, 2022
1f97bd0
Match development
FeodorFitsner May 21, 2022
b163b47
Collect ipa artifact
FeodorFitsner May 21, 2022
8acc3d2
flutter_launcher_icons
FeodorFitsner May 21, 2022
a7e6c72
Update iOS icons
FeodorFitsner May 21, 2022
b492389
Build ad-hoc and appstore
FeodorFitsner May 22, 2022
758a4cc
Fix Fastfile
FeodorFitsner May 22, 2022
619f426
Fix export_method
FeodorFitsner May 22, 2022
f5325ca
Try publishing to App Store
FeodorFitsner May 23, 2022
c4cdb7c
Skip screenshots
FeodorFitsner May 23, 2022
dc9f5bb
skip_metadata upload
FeodorFitsner May 23, 2022
b15ddc7
Disable precheck
FeodorFitsner May 23, 2022
50ed9b9
Do build IPA on PR builds
FeodorFitsner May 23, 2022
c08bee7
Fix PR check and update version number, not build
FeodorFitsner May 23, 2022
0bf133c
Update Info.plist
FeodorFitsner May 23, 2022
e243b96
Restore complete yaml
FeodorFitsner May 23, 2022
26f3468
Fix iOS building for PR builds
FeodorFitsner May 23, 2022
5a02b3a
Fix FLET_PACKAGE_VERSION
FeodorFitsner May 23, 2022
b5df750
Config flutter
FeodorFitsner May 24, 2022
ea4cbb6
Merge pull request #5 from flet-dev/s1-ios
FeodorFitsner May 24, 2022
073c824
Python samples cleanup
FeodorFitsner May 25, 2022
ca5dbc8
TextField and Dropdown unlim size fix
FeodorFitsner May 26, 2022
49620dd
Create homepage-icons.cdr
FeodorFitsner May 28, 2022
1aa65aa
Building and publishing iOS Flutter app on AppVeyor
FeodorFitsner May 28, 2022
7548300
Update Fastlane
FeodorFitsner May 28, 2022
232dc74
Build to client's "build" folder
FeodorFitsner May 28, 2022
5ac13ad
Update AndroidManifest.xml
FeodorFitsner May 30, 2022
b583eba
Upgrade Flutter 3.0.1
FeodorFitsner May 30, 2022
baba334
index.html with loading animation
FeodorFitsner May 30, 2022
ec6a12a
app_store_connect_api_key with base64 key
FeodorFitsner May 30, 2022
08859fc
Fix expand for TextField and Dropdown
FeodorFitsner May 31, 2022
7b74a8a
Create greeter.py
FeodorFitsner Jun 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
225 changes: 137 additions & 88 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 0.0.{build}

skip_branch_with_pr: true

skip_commits:
Expand All @@ -7,55 +9,52 @@ skip_commits:
- "*.md"

environment:
GO_VERSION: 1.18
GO_VERSION: 1.18.1
GO_TAGS: --tags release
python_version: 3.10
GITHUB_TOKEN:
secure: uX7wMPjOz72c6zs4QS2/m3vsOE5Fh7e68YqMNSf0mRmb6hP9Ij8haCefQjxBDlEb
secure: doX0dwjWhBmT56aJqR9NCbtMFJpDpdYxPCIB4vQoHfSR+nTa+pLCo6Yv5qWpD/90
DOCKER_REGISTRY_USER:
secure: NJVK0u9M6ZhmQKUeR6Gnxg==
DOCKER_REGISTRY_PASS:
secure: V9nRzVDlIGS0a+dhkC2/vw==

matrix:
# - job_name: Windows
# job_group: tests
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- job_name: Build Flet for Windows
job_group: build_flet
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019

- job_name: Build Flet for macOS
job_group: build_flet
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey

- job_name: Build Flet for iOS
job_group: build_flet
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey

# - job_name: Linux
# job_group: tests
# APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

# - job_name: macOS
# job_group: tests
# APPVEYOR_BUILD_WORKER_IMAGE: macOS

- job_name: Build Server binaries
job_group: build_server
job_depends_on: tests
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

- job_name: Test Python 3.7
job_group: python_tests
job_depends_on: build_server
python_version: 3.7
- job_name: Build Fletd
job_group: build_flet
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

- job_name: Test Python 3.8
job_group: python_tests
job_depends_on: build_server
job_depends_on: build_flet
python_version: 3.8
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

- job_name: Test Python 3.9
job_group: python_tests
job_depends_on: build_server
job_depends_on: build_flet
python_version: 3.9
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

- job_name: Test Python 3.10
job_group: python_tests
job_depends_on: build_server
job_depends_on: build_flet
python_version: 3.10
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu

Expand All @@ -77,97 +76,146 @@ stack: python $python_version

for:
# ======================================
# Windows
# Build Flet View for Windows
# ======================================

- matrix:
only:
- job_name: Windows
- job_name: Build Flet for Windows

environment:
VC_REDIST_DIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.29.30133\x64\Microsoft.VC142.CRT'

install:
- ps: .\install_go.ps1
- set GOPATH=%USERPROFILE%\go
- set PATH=%GOPATH%\bin;%PATH%
- echo %GOPATH%
- echo %GOROOT%
- go version
- ps: .\ci\install_flutter.ps1
- set PATH=C:\flutter\bin;%PATH%
- flutter --version

build_script:
- ps: Install-Product node 12 x64
- cd client
- yarn
- yarn build
- cd ..
- mkdir internal\server\content
- xcopy client\build internal\server\content\ /E /Y
- .\build.cmd
- dir %USERPROFILE%\Go\bin
- flutter test
- flutter build windows
- set RELEASE_DIR=build\windows\runner\Release
- copy "%VC_REDIST_DIR%\msvcp140.dll" %RELEASE_DIR%
- copy "%VC_REDIST_DIR%\vcruntime140.dll" %RELEASE_DIR%
- copy "%VC_REDIST_DIR%\vcruntime140_1.dll" %RELEASE_DIR%
- dir %RELEASE_DIR%
- ren build\windows\runner\Release flet
- cd build\windows\runner
- 7z a flet.zip flet
- cd %APPVEYOR_BUILD_FOLDER%

test_script:
- run-tests.cmd
test: off

artifacts:
- path: client\build\windows\runner\flet.zip
name: flet_windows

# ======================================
# Linux
# Build Flet View for macOS
# ======================================

- matrix:
only:
- job_name: Linux
- job_name: Build Flet for macOS

install:
- gvm install go${GO_VERSION} -B
- gvm use go${GO_VERSION}
- go version
- brew install cocoapods
- curl https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.0.1-stable.zip -o flutter_macos_stable.zip
- unzip -qq flutter_macos_stable.zip
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter --version
- flutter config --enable-macos-desktop
- flutter doctor

build_script:
- nvm use 12
# Flutter macOS client
- cd client
- yarn
- yarn build
- cd ..
- mkdir server/content
- cp -r client/build/* server/content
- ./build.sh
- ls $GOPATH/bin
- flutter test
- flutter build macos
- tar -czvf flet.app.tar.gz -C build/macos/Build/Products/Release Flet.app

test_script:
- ./run-tests.sh
artifacts:
- path: client/flet.app.tar.gz
name: flet_macos

# ======================================
# macOS
# Build Flet View for iOS
# ======================================

- matrix:
only:
- job_name: macOS
- job_name: Build Flet for iOS

install:
- gvm install go${GO_VERSION} -B
- gvm use go${GO_VERSION}
- go version
- HOMEBREW_NO_AUTO_UPDATE=1 brew install yarn
- export LANG=en_US.UTF-8
- curl https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.0.1-stable.zip -o flutter_macos_stable.zip
- unzip -qq flutter_macos_stable.zip
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter --version
- flutter doctor

build_script:
- nvm use 14
# Flutter iOS client
- cd client
- yarn
- yarn build
- cd ..
- mkdir server/content
- cp -r client/build/* server/content
- ./build.sh
- ls $GOPATH/bin
- flutter test
- cd ios
- ruby --version
- bundle install --path vendor/bundle
- sh: |
export FLET_PACKAGE_VERSION="${APPVEYOR_BUILD_VERSION}"
if [[ ! -z "$APPVEYOR_PULL_REQUEST_NUMBER" ]]; then
bundle exec fastlane build_flutter
elif [[ "$APPVEYOR_REPO_TAG" == "true" ]]; then
if [[ "$APPVEYOR_REPO_TAG_NAME" =~ ([0-9\.]+) ]]; then
export FLET_PACKAGE_VERSION="${BASH_REMATCH[1]}"
echo "FLET_PACKAGE_VERSION: ${FLET_PACKAGE_VERSION}"
bundle exec fastlane upload_appstore
else
echo "Cannot extract version information from a tag."
exit 1
fi
else
bundle exec fastlane build_ipa
fi

test_script:
- ./run-tests.sh
artifacts:
- path: client/build/flet.ipa
name: flet_ios

# ======================================
# Linux
# ======================================

# - matrix:
# only:
# - job_name: Linux

# install:
# - gvm install go${GO_VERSION} -B
# - gvm use go${GO_VERSION}
# - go version

# build_script:
# - nvm use 12
# - cd client
# - yarn
# - yarn build
# - cd ..
# - cp -rf client/build/* server/content
# - ./build.sh
# - ls $GOPATH/bin

# test_script:
# - ./run-tests.sh

# ======================================
# Build Server binaries
# Build Fletd
# ======================================

- matrix:
only:
- job_group: build_server
- job_name: Build Fletd

install:
# Flutter SDK
Expand All @@ -186,14 +234,14 @@ for:
# Flutter Web client
- cd client
- flutter test
- flutter build web --release --web-renderer auto
- flutter build web --release --web-renderer canvaskit
- rm -rf build/web/canvaskit
- ls -alR build/web
- cd ..

# Flet Server in Go
- cd ..
- mkdir server/server/content
- cp -r client/build/web/* server/server/content
- cp -rf client/build/web/* server/server/content
- cd server
- sh: |
if [[ "$APPVEYOR_REPO_TAG" == "true" ]]; then
Expand All @@ -203,22 +251,22 @@ for:
fi
- cd ..

test_script:
- docker images
- docker run --name flet-test -d flet/server
- sleep 10
- docker logs flet-test
# test_script:
# - docker images
# - docker run --name flet-test -d flet/server
# - sleep 10
# - docker logs flet-test

# publish to docker.io on tagged builds only
- sh: |
if [[ "$APPVEYOR_REPO_TAG" == "true" ]]; then
echo "$DOCKER_REGISTRY_PASS" | docker login --username $DOCKER_REGISTRY_USER --password-stdin
docker image push --all-tags flet/server
fi
# # publish to docker.io on tagged builds only
# - sh: |
# if [[ "$APPVEYOR_REPO_TAG" == "true" ]]; then
# echo "$DOCKER_REGISTRY_PASS" | docker login --username $DOCKER_REGISTRY_USER --password-stdin
# docker image push --all-tags flet/server
# fi

artifacts:
- path: server/dist/flet-*
- path: server/dist/flet_*/*
- path: server/dist/fletd-*
- path: server/dist/fletd_*/*

######################
# Python Tests #
Expand Down Expand Up @@ -282,6 +330,7 @@ for:
# patch version
$env:PACKAGE_VERSION = $ver
(Get-Content pyproject.toml).replace("version = `"0.1.0`"", "version = `"$ver`"") | Set-Content pyproject.toml
("# this file was auto-generated by CI", "version = '$ver'") | Set-Content flet/version.py

# build package
- pdm build
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
# Dependency directories (remove the comment below to include it)
# vendor/

server/content/
# mac specific
.DS_Store
7 changes: 7 additions & 0 deletions ci/install_flutter.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$distPath = "$env:TEMP\flutter_windows_stable.zip"

Write-Host "Downloading Flutter SDK..."
(New-Object Net.WebClient).DownloadFile("https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.0.1-stable.zip", $distPath)

Write-Host "Unpacking Flutter SDK..."
7z x $distPath -o"$env:SystemDrive\" | Out-Null
3 changes: 3 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# Ruby
vendor/
24 changes: 22 additions & 2 deletions client/.metadata
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
# This file should be version controlled.

version:
revision: 7e9793dee1b85a243edd0e06cb1658e98b077561
revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
- platform: android
create_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851
base_revision: ee4e09cce01d6f2d7f4baebd247fde02e5008851

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Loading