Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 404 page to handle redirect #2303

Closed
wants to merge 926 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
926 commits
Select commit Hold shift + click to select a range
0272e45
TF-1961 Refactor html transformer
dab246 Aug 16, 2023
b57c93f
TF-1961 Add script handle lazy loading image in html
dab246 Aug 16, 2023
9ec81d0
TF-1961 Left align signature and title header reply/forward email
dab246 Aug 18, 2023
f5470c1
TF-1961 Transform html email content in composer
dab246 Aug 18, 2023
767a4c2
Migrate branch upgrade to master for dependency
dab246 Aug 18, 2023
1545e2c
Bump version to `v0.9.0`
dab246 Aug 18, 2023
0c97ade
TF-2099 Fix Quota information are missing
dab246 Aug 21, 2023
0bed553
TF-1974 Fix refresh token oidc failed
dab246 Aug 22, 2023
5d497b2
TF-1974 Set default OIDC_SCOPE
dab246 Aug 22, 2023
b7280c3
Bump version to `v0.9.1`
dab246 Aug 23, 2023
b941d36
TF-1845 Fix the searching result is not correct with the condition `D…
dab246 Aug 24, 2023
b180275
TF-1844 Automatically perform search action after user fills in input…
dab246 Aug 23, 2023
80b7da0
TF-1844 Highlight autocomplete suggestion item when hovering in advan…
dab246 Aug 23, 2023
8b0feba
TF-1844 Update hint text input advanced search
dab246 Aug 23, 2023
5711f01
TF-1844 Fix mailbox not selected in advanced search
dab246 Aug 23, 2023
3fa17e2
tf-1946 add swipe to thread
hieutbui Aug 28, 2023
8936208
Disable swipe right-to-left on thread
hieutbui Aug 29, 2023
b6be26e
TF-1977 Redirect to Inbox when clicking on logo
dab246 Aug 29, 2023
388f062
TF-1977 Disable highlight color when clicking logo
dab246 Aug 29, 2023
41c854c
TF-1977 Rename the method for clarity
dab246 Aug 29, 2023
843c703
TF-1977 Close email view and scroll to position inbox when clicking o…
dab246 Aug 29, 2023
b1413bc
Fix the login screen freezes when pasting the link in the browser add…
dab246 Aug 28, 2023
16d0c8b
Fix TextEditingController was used after being disposed in LoginView
dab246 Aug 28, 2023
3322703
Make the beautify logging tool
dab246 Aug 28, 2023
b3d87bd
Replace all `png` icon to `svg` icon
dab246 Aug 28, 2023
38b6632
Remove NoAuthenticatedAccountFailure state unnecessary
dab246 Aug 29, 2023
2580e86
Check OIDC available when no account is logged in
dab246 Aug 29, 2023
b7c41f1
Convert LoginTextInputBuilder functional to StatefulWidget
dab246 Aug 30, 2023
da70fe0
TF-1984 Show `Empty` action for Trash and Spam mailbox
dab246 Aug 30, 2023
7504d6e
TF-1984 Show popup dialog when clicking on Empty button
dab246 Aug 30, 2023
22b810d
TF-1984 Move `Get.find()` outside the build method
dab246 Aug 30, 2023
08110ff
TF-1984 Update logger by standard format
dab246 Aug 30, 2023
de8f9c4
TF-1984 Handle empty Trash and Spam mailbox action
dab246 Aug 30, 2023
f319001
TF-2026 Add `SaveToDraftAndClose` method
dab246 Aug 30, 2023
cf03def
TF-2026 Implement `SaveToDraft` method
dab246 Aug 30, 2023
b35f090
TF-2129 Fix cannot attach file on mobile
dab246 Sep 7, 2023
a40f9ae
TF-2129 Fix print log on mobile
dab246 Sep 7, 2023
ea47ea9
TF-2129 Show full attachment for the first time
dab246 Sep 7, 2023
09a93ef
Handle call retry up to 3 time when `statusCode=401`
dab246 Sep 8, 2023
f50bc50
Add `adr` to fix oidc refresh token using `QueuedInterceptor`
dab246 Sep 11, 2023
dd3e263
TF-2083 add RuleFilterConditionWidget
hieutbui Aug 30, 2023
6fde253
TF-2083 change condition widget to RuleFilterConditionWidget
hieutbui Aug 31, 2023
dad160a
TF-2083 Add listRuleCondition
hieutbui Aug 31, 2023
1ac91dc
tf-2083 make each rule condition can change value field separately
hieutbui Sep 6, 2023
cbb5aea
tf-2083 add swipe to remove condition on mobile
hieutbui Sep 6, 2023
4faec0c
TF-2083 Change input field arguments
hieutbui Sep 8, 2023
40ebc31
TF-2083 Add condition row widget and condition remove button widget
hieutbui Sep 11, 2023
5fca1a1
TF-2089 Add `dash-dash-space` to signature delimiter
dab246 Sep 11, 2023
7739f1b
Change license to AGPL-V3 - drop the OpenPaaS clause
chibenwa Sep 12, 2023
f454603
Add badges for downloads (#2140)
chibenwa Sep 13, 2023
b886950
TF-2134 Remove the leading hash(#) from the URL of web
dab246 Sep 11, 2023
7bb8954
TF-2134 Add MailtoURLView page
dab246 Sep 11, 2023
d2d3acf
TF-2134 Add mailto page router
dab246 Sep 11, 2023
b8dc3ca
TF-2134 Handle navigation route from mailto URL
dab246 Sep 11, 2023
964013f
TF-2134 Open composer from mailto uri
dab246 Sep 11, 2023
da3c613
TF-2135 Add splash screen for web
dab246 Sep 13, 2023
db89e44
Translated using Weblate (German)
Atalanttore Sep 3, 2023
e9e896d
Translated using Weblate (Russian)
tprudentova Sep 6, 2023
f0bad42
Translated using Weblate (French)
chibenwa Sep 12, 2023
0f2fed3
Hotfix: Temporarily hide `Add condition` in filter rule for release n…
dab246 Sep 14, 2023
817ee6f
Bump version to `v0.9.2`
dab246 Sep 14, 2023
a4c7eea
TF-2116 Add icon, color and base widget
dab246 Sep 6, 2023
df2b913
TF-2116 Sync all icon and remove icon unused
dab246 Sep 6, 2023
24be032
TF-2116 Create RecipientComposer widget and style
dab246 Sep 6, 2023
e56b2c2
TF-2116 Create TitleComposer widget and style
dab246 Sep 6, 2023
9458edb
TF-2116 Create SubjectComposer widget and style
dab246 Sep 6, 2023
6ea82d6
TF-2116 Create WebEditorComposer widget and style
dab246 Sep 6, 2023
8ff3f7e
TF-2116 Create AppBar/BottomBarComposer widget and style
dab246 Sep 6, 2023
d034974
TF-2116 Create ContainerViewComposer for all platform on web
dab246 Sep 6, 2023
1295eb5
TF-2116 Apply new design for web composer
dab246 Sep 6, 2023
8245f07
TF-2116 Create AttachmentComposer widget and style
dab246 Sep 6, 2023
0e07731
TF-2116 Apply new design attachment in web composer
dab246 Sep 6, 2023
c78992d
TF-2116 Create MobileEditor view
dab246 Sep 7, 2023
a8f9993
TF-2116 Create Mobile/Tablet container view
dab246 Sep 7, 2023
fe4ec14
TF-2116 Apply new design composer mobile
dab246 Sep 7, 2023
5f9eb6b
TF-2116 Add RequestReadReceipt and more option
dab246 Sep 7, 2023
4d8a759
TF-2116 Apply new design attachment in mobile composer
dab246 Sep 7, 2023
3ff79dc
TF-2116 Support expanded/collapsed for Signature in composer
dab246 Sep 7, 2023
cb347e5
TF-2116 Insert image at mouse cursor position
dab246 Sep 8, 2023
4bf72a6
TF-2116 Persist new signature when open draft email
dab246 Sep 12, 2023
5046f48
TF-2116 Remove log message unnecessary
dab246 Sep 12, 2023
4f0bb84
TF-2116 Support show collapse/expand signature for email view
dab246 Sep 12, 2023
e62655a
TF-2116 UnFocus input field when click collapse/expand signature on web
dab246 Sep 14, 2023
40ed96a
TF-2116 Update dependencies pubspec.lock
dab246 Sep 14, 2023
8f7298a
TF-2119 Add DraggableEmailAddress model
dab246 Sep 13, 2023
8148bc6
TF-2119 Create DraggableRecipientTag widget
dab246 Sep 13, 2023
958940c
TF-2119 Implement drag and drop between recipients
dab246 Sep 14, 2023
d1760db
TF-2119 Disable drag and drop recipients on mobile
dab246 Sep 14, 2023
12a63c6
TF-2119 Remove log console unnecessary in WebView
dab246 Sep 14, 2023
153e168
Fix built release but nginx route 404 not found on web
dab246 Sep 19, 2023
81f4b7d
Bump version to `v0.9.3`
dab246 Sep 19, 2023
873211a
TF-2120 Fix drag and drop text inside the composer on web
dab246 Sep 20, 2023
2948f3f
TF-1608 Add `messageId/inReplyTo/references` to properties in jmap re…
dab246 Sep 20, 2023
775c248
TF-1608 Set `references` and `inReplyTo` fields for reply/replyAll email
dab246 Sep 20, 2023
45eff18
TF-1608 Set `references` and `inReplyTo` fields for forward email
dab246 Sep 20, 2023
1f58a81
TF-1608 Add `references` and `inReplyTo` fields to email offline
dab246 Sep 20, 2023
72cba37
TF-1608 Upgrade hive database version to `6`
dab246 Sep 20, 2023
c8b233e
TF-2157 Remove `collapsed/expanded` signature in EmailView
dab246 Sep 20, 2023
013902f
Add a security.md file (#2163)
chibenwa Sep 21, 2023
c908607
Fix not found object in bindings
dab246 Sep 25, 2023
f5c569a
Fix can not open new tab for email
dab246 Sep 25, 2023
e53a91d
README: credit Linagora
chibenwa Sep 20, 2023
c559dae
TF-2168 Fix mailto invalid recipient
dab246 Sep 26, 2023
b8974ee
TF-2168 Add unit-test for `parseMapMailtoFromUri`
dab246 Sep 26, 2023
366be23
README: refresh the roadmap
chibenwa Sep 20, 2023
e9ce9e6
TF-2167 Support `CTRL+SHIFT+Z` to be able to restore the user input (…
dab246 Sep 28, 2023
045cd38
TF-2160 Fix email content is cut off
dab246 Sep 26, 2023
88362ca
TF-2160 Use `loading` attribute replace `IntersectionObserver`
dab246 Sep 26, 2023
2eb6ad6
TF-2118 Handle drop n drop image as inline
dab246 Sep 27, 2023
cb1f15d
TF-2118 Handle drop n drop file as attachment
dab246 Sep 28, 2023
f4d844b
TF-2118 Set width/height for drop zone view
dab246 Sep 28, 2023
7236909
TF-2118 Handle js code in `html_editor_enhanced` library
dab246 Sep 29, 2023
1450cc1
TF-2179 Add TitleAppBarThread widget/style
dab246 Sep 29, 2023
2c66cbf
TF-2179 Add MobileAppBarThread widget/style
dab246 Sep 29, 2023
7e8dca0
TF-2179 Add `maxLines/mainAxisSize` properties for TMailButtonWidget
dab246 Sep 29, 2023
5d1a436
TF-2179 Add DefaultWebAppBarThread widget/style
dab246 Sep 29, 2023
a8fbb1d
TF-2179 Add SelectionWebAppBarThread widget/style
dab246 Sep 29, 2023
66997fb
TF-2179 Update AppBarThread widget
dab246 Sep 29, 2023
783a94d
TF-2179 Set title align left on web
dab246 Sep 29, 2023
924490b
TF-2180 Fix suggestion list being hidden once user use device with sm…
dab246 Sep 29, 2023
72f5f04
TF-2172 Add DropZone widget
dab246 Oct 2, 2023
1d10593
TF-2172 Add DraggableAttachmentItem widget
dab246 Oct 2, 2023
13a88cc
TF-2172 Display DropZone view when drag active
dab246 Oct 2, 2023
a9c2b8d
TF-2172 Handle add attachment from drop zone
dab246 Oct 2, 2023
2fdbc6a
TF-2172 Disable focus of HtmlContentView when dragging attachment
dab246 Oct 2, 2023
451ebbd
TF-2202 Use `InternetConnectionChecker` to check internet connection …
dab246 Oct 3, 2023
2e0b5ca
TF-2202 Store `SendingEmail` to queue when get error `NoInternetConne…
dab246 Oct 3, 2023
3aad768
TF-2199 show suggestion for unknown email when suggestion list is empty
hieutbui Oct 4, 2023
89a86c7
TF-2199 show suggestion for unknown email when suggestion list is not…
hieutbui Oct 4, 2023
a818b91
TF-2189 Keep composer available before click on proceed
dab246 Oct 3, 2023
c0a7af2
TF-2189 Handle click cancel on dialog
dab246 Oct 3, 2023
7052f3e
TF-2189 Avoid compile runtime InternetConnectionChecker on web
dab246 Oct 4, 2023
7ea91d5
TF-2182 Fix no blue bar for calendar events
dab246 Oct 4, 2023
9ab9a9b
TF-2182 Add video conferences for google event
dab246 Oct 5, 2023
3ca22fd
TF-2182 Add event actions for google event
dab246 Oct 5, 2023
5b44a00
TF-2182 Enable hyperlink for event description
dab246 Oct 5, 2023
fb802e5
TF-2188 Add `Canceled` sending state
dab246 Oct 5, 2023
04af133
TF-2188 Allow editable waiting/running/canceled status
dab246 Oct 5, 2023
cec4ccb
TF-2188 Disable sending queue on iOS
dab246 Oct 5, 2023
03d03dd
TF-2188 Remove radius and background color bottom bar sending queue
dab246 Oct 5, 2023
47d1c2e
TF-2190 Add top padding for confirm dialog
dab246 Oct 5, 2023
95dfd0e
TF-2187 Handle click system back button to back to Inbox
dab246 Oct 5, 2023
2104bad
TF-2176 Update app grid icons default
dab246 Oct 6, 2023
7906766
TF-2194 Add newSubfolder to MailboxActions
hieutbui Oct 5, 2023
71eff81
TF-2094 add newSubFolder action to list action for default and person…
hieutbui Oct 5, 2023
c8b2dc1
TF-2194 Update mailbox creator for pre-selected mailbox parent
hieutbui Oct 5, 2023
6f41eb6
TF-2194 Add case newSubfolder to handleMailboxAction
hieutbui Oct 5, 2023
84ca809
TF-2194 Update create new mailbox without pre-selected parent mailbox
hieutbui Oct 5, 2023
ee0b9b3
TF-2194 Add case subFolder to search mailbox
hieutbui Oct 5, 2023
14b0ff9
Set default mimeType is `application/octet-stream`
dab246 Oct 6, 2023
ad223e1
Fix some file with mimeType is empty cannot drag n drop attachment
dab246 Oct 6, 2023
7032784
Translated using Weblate (Vietnamese)
dieptran88 Sep 14, 2023
878c336
Translated using Weblate (German)
Atalanttore Sep 22, 2023
44e7b6f
Translated using Weblate (Vietnamese)
dab246 Oct 6, 2023
13d4a5f
Translated using Weblate (Vietnamese)
dab246 Oct 9, 2023
595e37d
Fix email view height greater then content height
dab246 Oct 9, 2023
75b1181
Split styles file for some widget in email view
dab246 Oct 9, 2023
7e03a63
Bump version to `v0.10.0`
dab246 Oct 9, 2023
880c7f1
TF-2191 Fix keyboard disappear when switch focus from subject to body…
dab246 Oct 10, 2023
003d567
TF-1017 Add icon for scroll to top button
hieutbui Oct 9, 2023
32e1de5
TF-1017 Add scrollToTopButtonWidget
hieutbui Oct 9, 2023
7033462
TF-1017 Add scrollToTopButton to thread view
hieutbui Oct 9, 2023
443196f
TF-1017 Add function handle when press scrollToTop
hieutbui Oct 9, 2023
aa688c5
Added support for arm64 builds
Oct 11, 2023
109f457
Write a privacy.md page (#2224)
chibenwa Oct 11, 2023
5056584
TF-2253 Fix missing email content on mobile
dab246 Oct 11, 2023
e6e8e35
More details in Contact usage in TeamMail iOS
hoangdat Oct 11, 2023
1829d46
Bump version to v0.10.1
hoangdat Oct 11, 2023
c39e932
Add script trigger content size changed on android
dab246 Oct 13, 2023
2091224
Move CupertinoLoadingWidget to core module
dab246 Oct 13, 2023
cb53edf
Fix long email content is cut off on android
dab246 Oct 13, 2023
7f1a3b2
Add lazy loading for html tag use background-image
dab246 Oct 16, 2023
800f4c8
Add lazy loading background-image on web
dab246 Oct 16, 2023
ef5da05
Remove lazy loading background-image on composer
dab246 Oct 17, 2023
1aee8b4
TF-1301 Add font size dropdown menu button
dab246 Oct 13, 2023
194ccd3
TF-1301 Handle select font size while compose email
dab246 Oct 13, 2023
3103df2
- Spelling fixes
patHyatt Oct 19, 2023
0dd22e5
TF-2189 Only store email to sending queue when offline on iOS
dab246 Oct 19, 2023
1aecd40
TF-2189 Delete sending email in Sending Queue on iOS
dab246 Oct 19, 2023
79e1e2d
TF-2189 Edit sending email in Sending Queue on iOS
dab246 Oct 19, 2023
5160ff8
TF-2189 Resend sending email in Sending Queue on iOS
dab246 Oct 19, 2023
4f5e821
TF-2189 Create collapsed signature when edit email in Sending Queue o…
dab246 Oct 20, 2023
295b196
TF-2189 Update sending state in Sending Queue when send email failure…
dab246 Oct 20, 2023
7e09895
TF-2261 Fix bottom bar email view broken
dab246 Oct 20, 2023
5e26472
TF-2261 Fix app bar email view broken
dab246 Oct 20, 2023
8b7f087
Remove collapse expand signature button in Email View
dab246 Oct 20, 2023
8073083
Only make 1 PR deployment run at the time
Oct 6, 2023
20350c9
TF-1801 Add new attachment design text
hieutbui Oct 17, 2023
a22147f
TF-1801 Change icon download attachment
hieutbui Oct 17, 2023
48acd80
TF-1801 Add new attachment design colors
hieutbui Oct 17, 2023
d2700ab
TF-1801 Change design of email attachment
hieutbui Oct 17, 2023
1ed637b
TF-1801 Add attachment list dialog
hieutbui Oct 17, 2023
a698333
TF-1801 Add attachment list bottom sheet
hieutbui Oct 17, 2023
ea1f34a
TF-1801 Add styles for attachment list
hieutbui Oct 17, 2023
bdbe545
TF-1801 Add attachment list items
hieutbui Oct 17, 2023
5e3e021
TF-1801 Add function handle open attachment list
hieutbui Oct 17, 2023
28da0d8
TF-1801 Add attachment list body builder
hieutbui Oct 19, 2023
1bdaa41
Change from mailbox to folder (#2156)
hoangdat Oct 23, 2023
35fdd9b
Change forwarding setting explaination (#2270)
hoangdat Oct 23, 2023
a89e5bf
Change from empty to clean Trash/Spam
hoangdat Oct 23, 2023
242122d
TF-1793 Add spam mailbox to canDeletePermanently condition
hieutbui Oct 24, 2023
09cbfe5
TF-2177 Fix download attachment not working on web
dab246 Oct 23, 2023
a02cb14
TF-2177 Add loading bar progress when download attachment
dab246 Oct 23, 2023
91b7e54
TF-2177 Upgrade hive database version and clear all account data
dab246 Oct 24, 2023
3fff318
TF-2177 Update account cache when store new account
dab246 Oct 24, 2023
adb1792
TF-2177 Remove import unnecessary avoid build failed on CI
dab246 Oct 24, 2023
829a82c
Remove config work manager in sending ios
dab246 Oct 24, 2023
436887d
Fix sending queue return failure on Android
dab246 Oct 24, 2023
038be7a
TF-2233 Remove mark as read for trash folder
hieutbui Oct 24, 2023
2d8abfd
TF-1017 Enable scroll to top button for web
hieutbui Oct 25, 2023
0b2ab3c
TF-2245 Fix upload attachment when token expired on web
dab246 Oct 24, 2023
f866a38
TF-2245 Fix upload attachment when token expired on mobile
dab246 Oct 24, 2023
68f7eff
TF-2245 Upload image with cid when drag n drop image
dab246 Oct 24, 2023
d879dba
TF-2245 Only use bytes when insert image in identity creator on web
dab246 Oct 24, 2023
17d5b73
Bump version to v0.10.2
hoangdat Oct 27, 2023
81b194f
Hot fix build release ios failed
dab246 Oct 27, 2023
8bc7b50
Bump version to v0.10.3
dab246 Oct 27, 2023
caab5a8
TF-2280 Fix mark as read mailbox when token expired on mobile
dab246 Oct 27, 2023
a48e68b
TF-2280 Fix empty trash when token expired on mobile
dab246 Oct 27, 2023
320a758
TF-2280 Fix upload attachment when token expired on mobile
dab246 Oct 27, 2023
c2bcbd6
TF-2280 Call `BackgroundIsolateBinaryMessenger.ensureInitialized` on …
dab246 Oct 30, 2023
21b69c6
TF-2215 Support communicating L18n to remote servers
dab246 Oct 30, 2023
ff1d0d7
TF-2237 Add sending text
hieutbui Oct 24, 2023
d9db8f4
TF-2237 Add loading circular for send button
hieutbui Oct 24, 2023
24ffd71
TF-2237 Limit send button clickable only one time
hieutbui Oct 24, 2023
5f287f1
Bump version to v0.10.4
dab246 Oct 31, 2023
d6e642f
TF-2085 Add RuleConditionGroup
hieutbui Sep 20, 2023
ec96c10
TF-2085 Add Dropdown select condition group
hieutbui Sep 20, 2023
6730b21
TF-2085 Update CreateNewEmailRuleFilterRequest for ConditionGroup
hieutbui Sep 21, 2023
2eea2fd
TF-2084 update EmailRuleFilterAction
hieutbui Sep 24, 2023
0917989
TF-2084 Add select action hint
hieutbui Sep 24, 2023
4087e82
TF-2084 Change title for multi actions + add action hint, error text
hieutbui Sep 29, 2023
04dd5c9
TF-2084 Add RuleFilterActionArguments
hieutbui Oct 2, 2023
9635cfb
TF-2084 Add styles for rule filter action
hieutbui Oct 2, 2023
aef42f4
TF-2084 Add widget for action row
hieutbui Oct 2, 2023
ac47571
TF-2084 Add widget for multi actions
hieutbui Oct 2, 2023
f885b44
TF-2084 Update rule filter creator view for multi actions
hieutbui Oct 2, 2023
a6b70ca
TF-2084 Update rule filter creator controller for multi actions
hieutbui Oct 2, 2023
8f5067e
TF-2084 Hide Forward action
hieutbui Oct 2, 2023
b2352e0
TF-2184 Update RuleAction with multiple actions
hieutbui Oct 3, 2023
9651188
TF-2184 Update creator controller for creating rule with multiple act…
hieutbui Oct 3, 2023
1efc364
TF-2184 Change the order of multi actions
hieutbui Oct 10, 2023
e92eceb
Fix missing id field when create new email rule
hieutbui Oct 10, 2023
a9a9f05
FIx cannot edit email rule
hieutbui Oct 10, 2023
0fcd049
Fix cannot delete email rule
hieutbui Oct 10, 2023
213963a
feat: Rename mailbox to folder
dab246 Nov 1, 2023
1da276c
Added 404 page to handle redirect
Nov 2, 2023
fba93bb
Also trigger on asset changes
Nov 2, 2023
52e1289
Switched to copy after building
Nov 2, 2023
e6da9d3
Some changes to trigger rebuild
Nov 2, 2023
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
  •  
  •  
  •  
28 changes: 7 additions & 21 deletions .github/workflows/analyze-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
on:
workflow_call:
pull_request:
paths-ignore:
- ".github/**"
- "docs"
- "Jenkinsfile"
- "**/*.md"

name: Analyze and test

Expand All @@ -25,7 +30,7 @@ jobs:
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.5"
flutter-version: "3.10.6"
channel: "stable"
cache: true
cache-key: "deps-${{ hashFiles('**/pubspec.lock') }}"
Expand Down Expand Up @@ -56,22 +61,3 @@ jobs:
with:
name: test-reports
path: test-report*.json

report:
runs-on: ubuntu-latest
if: success() || failure() # Always upload report
needs:
- analyze-test
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: test-reports

- uses: dorny/test-reporter@v1
with:
name: Flutter Tests
path: "*.json"
reporter: flutter-json
only-summary: "true"
57 changes: 15 additions & 42 deletions .github/workflows/ci.yaml → .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
on:
workflow_dispatch:
pull_request:
paths-ignore:
- ".github/**"
- "docs"
- "Jenkinsfile"
- "**/*.md"

name: CI
name: Build dev binaries

jobs:
analyze-test:
name: Analyze and test
uses: ./.github/workflows/analyze-test.yaml

build-app:
name: Build app
needs:
- analyze-test
runs-on: ${{ matrix.runner }}
strategy:
matrix:
Expand All @@ -35,27 +23,24 @@ jobs:
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.5"
flutter-version: "3.10.6"
channel: "stable"
cache: true
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path

- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
bundler-cache: true
working-directory: ${{ matrix.os }}

- name: Setup Firebase env
env:
FIREBASE_ENV: ${{ secrets.FIREBASE_ENV }}
run: echo "$FIREBASE_ENV" > ./configurations/env.fcm

- name: Setup Android environment
if: matrix.os == 'android'
env:
PLAY_STORE_UPLOAD_KEY_BASE64: ${{ secrets.PLAY_STORE_UPLOAD_KEY_BASE64 }}
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: |
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
working-directory: ${{ matrix.os }}

- name: Setup Java
if: matrix.os == 'android'
uses: actions/setup-java@v3
Expand All @@ -65,37 +50,25 @@ jobs:

- name: Setup iOS environment
if: matrix.os == 'ios'
env:
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
PROVISION_PROFILE_BASE64: ${{ secrets.PROVISION_PROFILE_BASE64 }}
SHAREEXT_PROVISION_PROFILE_BASE64: ${{ secrets.SHAREEXT_PROVISION_PROFILE_BASE64 }}
run: |
echo -n "$CERTIFICATE_BASE64" | base64 --decode --output cert.p12
echo -n "$PROVISION_PROFILE_BASE64" | base64 --decode --output buildpp.mobileprovision
echo -n "$SHAREEXT_PROVISION_PROFILE_BASE64" | base64 --decode --output shareextpp.mobileprovision
flutter pub get && pod install
flutter pub get
pod install && pod update
working-directory: ${{ matrix.os }}

- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
bundler-cache: true
working-directory: ${{ matrix.os }}

- name: Run prebuild
run: bash prebuild.sh

- name: Build
env:
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
run: bundle exec fastlane dev
working-directory: ${{ matrix.os }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: tmail-dev-pr-${{ github.event.pull_request.number }}
name: tmail-dev
path: |
build/app/outputs/flutter-apk/app-release.apk
build/app/outputs/flutter-apk/app-debug.apk
ios/Runner.ipa
79 changes: 79 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
on:
pull_request:
paths:
- "**/*.dart"
- "**/*.html"
- "**/*.js"
- "**/*.css"
- "**/*.png"
- "**/*.svg"

name: Deploy PR on Github Pages

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy:
name: Build web version and deploy
runs-on: ubuntu-latest
environment:
name: PR-${{ github.event.pull_request.number }}
url: ${{ steps.configure.outputs.URL }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.6"
channel: "stable"
cache: true
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path

- name: Run prebuild
run: bash prebuild.sh

- name: Configure environments
id: configure
env:
FOLDER: ${{ github.event.pull_request.number }}
run: |
sed -i "s|SERVER_URL=.*|SERVER_URL=https://apisix.upn.integration-open-paas.org/|g" env.file
sed -i "s|DOMAIN_REDIRECT_URL=.*|DOMAIN_REDIRECT_URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER|g" env.file
echo "URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER" >> $GITHUB_OUTPUT

- name: Build
env:
FOLDER: ${{ github.event.pull_request.number }}
run: |
flutter build web --profile --verbose --base-href "/${GITHUB_REPOSITORY##*/}/$FOLDER/"
cp build/web/index.html build/web/404.html

- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: ${{ github.event.pull_request.number }}
keep_files: true
publish_dir: "build/web"

- name: Find deployment comment
uses: peter-evans/find-comment@v2
id: fc
with:
comment-author: "github-actions[bot]"
issue-number: ${{ github.event.pull_request.number }}
body-includes: "This PR has been deployed to"

- name: Create or update deployment comment
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
This PR has been deployed to ${{ steps.configure.outputs.URL }}.
edit-mode: replace
100 changes: 100 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
on:
push:
branches:
- "master"
tags:
- "v*.*.*"

name: Build Docker images

jobs:
build-dev-image:
name: Build development image
if: github.ref_type == 'branch' && github.ref_name == 'master'
runs-on: ubuntu-latest
environment: dev

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ github.repository_owner }}/tmail-web
ghcr.io/${{ github.repository_owner }}/tmail-web
tags: |
type=ref,event=branch

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v4
with:
push: true
platforms: "linux/amd64,linux/arm64"
cache-from: |
type=gha
cache-to: |
type=gha
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-release-image:
name: Build release image
if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: prod

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ github.repository_owner }}/tmail-web
ghcr.io/${{ github.repository_owner }}/tmail-web
tags: |
type=ref,event=tag
type=raw,value=release

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v4
with:
push: true
platforms: "linux/amd64,linux/arm64"
cache-from: |
type=gha
cache-to: |
type=gha
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading
Loading