Skip to content

Commit 6967c59

Browse files
Tayebsed93B3nz01dflorentmaitreboosted-botThelm76
authored
Prepare release 0.1.0 (#119)
* Publish version 0.0.1 of the library to pub.dev (#16)(#35) * chore: add changelog file in library * chore: move changelog to app directory * chore: update readme in library directory * chore: update DEVELOP.md file * chore: change CHANGELOG.md to library * chore: update DEVELOP.md * chore: update label from 'feature' to '🗳️ feature' (#59) Label update from feature to "🗳️ feature" * chore: setup build environment and add GitHub Actions workflow (#13)(#34) * chore: update launch icon for Android main * chore: create alpha environment and change icon * chore: create beta environment and change icon * chore: create prod android and change icon * chore: chnage name app * chore: prod env and icon update (iOS) * chore: alpha env and icon update (iOS) * chore: beta env and icon update (iOS) * chore: add firebase config google-services android * chore: add firebase config google-services ios * chore: add action.yml configuration * chore: add workflows build.yaml configuration file * chore: update tests to ensure they pass * fix: update Dart SDK version in pubspec.yaml * chore: update name demo app * chore: add dartdoc-gh-pages.yml to generate docs * chore: update GitHub Actions configuration * chore: add branch conditions to workflow * chore: add token and artifact_name for deployment * chore: deploy Dartdoc to docs directory * Set provisioning profile for alpha release and beta release * Add entitlements to fix TestFlight warning * chore: fix project dependencies to latest versions * fix : dartdoc deployment job github-pages --------- Co-authored-by: Florent Maitre <[email protected]> * chore: implement tokens architecture (#37)(#60) * chore: common cross-libraries token architecture * chore: initialize app with token architecture * refactor: update theme-contract tokens * docs: add license header to files projects * refactor: update theme modules names * chore: add semantic tokens to theme-contract * refactor: update global-raw-tokens * refactor: update ouds_buttons.dart component * chore: add border raw tokens to global raw tokens * chore: add components button tokens * chore: add border semantic tokens * chore: add key tokens * chore: retrieve theme name from OudsTheme class * chore: add color schemes to theme contract * chore: add additional raw color tokens * chore: add temporary nav bar components in library * chore: integrate navigation bar into demo app * chore: add flutter_svg package * chore: added dark mode in themes * chore: added "OrangeCountry" theme * chore: update "WhiteTheme" theme with semantic * chore: refactor themes into separate modules * chore: update global raw tokens for border * chore: update global raw tokens for color * chore: update global raw tokens for dimensions * chore: update global raw tokens for elevation * chore: update global raw tokens for font * chore: update global raw tokens for grid * chore: update global raw tokens for opacity * chore: update global raw tokens for orange color * chore: update global raw tokens for typography * chore: update semantic for border * chore: update semantic for repository token * chore: update components tokens for button * chore: update flutter color scheme dark tokens * chore: move theme_contract file * chore: update orange theme with ElevatedButton * chore: sync orange country and white label themes * chore: add themes as dependencies in library * chore: use component tokens in button component * chore: modify theme selector management in demo * chore : refactor semantic and component token * refactor: add OUDS prefix to all modules * chore: share dynamic mode in library * chore: set up test version with the tokens button * refactor: move and split packages to root * refactor: integrate providersTokens to unify token * chore: test raw token generation with tokenator * fix: remove unnecessary files after rebase * fix: update build.yml and modify test config * refactor: update raw and semantic font tokens * refactor: add fontToken to themes and providers * chore: add comments to library code * chore: add palette icon with theme-based color * refactor: move CHANGELOG to root and update README * fix: outdated code in the application * chore: rename demo app to DesignToolbox (#28)(#60) * chore: rename demo app to DesignToolbox * doc : add new entry to changelog * chore: add opacity tokens (#36)(#63) * chore: add border tokens (#38)(#64) * chore: add elevation tokens (#39)(#65) * chore: add space tokens (#40)(#66) * chore: add size tokens (#41)(#67) * chore: add grid tokens (#42)(#68) * chore: add typography tokens (#43)(#69) * chore: add color tokens (#44)(#70) * chore: add color tokens * fix: resolved warnings in the code * chore: update tokens 0.5.0 (#73) * chore: update tokens * refactor: rename tokens in color scheme * fix: update code using color scheme * refactor: theme mode in theme * fix: remove fontWeight950 raw token --------- Co-authored-by: boosted-bot <[email protected]> Co-authored-by: Tayeb Sedraia <[email protected]> * feat: add the about page in the demo app (#58)(#71) * chore: add localization key for about screen * fix: display issue and remove navigation rail * chore: create environment class to retrieve flavor * chore: add list of Material 3 components * chore: add "package_info_plus" and CHANGELOG file * chore: add new issue entry in CHANGELOG.md * chore: display new about screen * fix: font size tokens on about page * feat: fix workflow to use dart doc (#77)(#76) * fix: update workflow to use ouds_core * fix: add @Nodoc for pages not to be documented * chore: add new entry changelog * chore: update of tokens (library version 0.7.0) (#77) * chore: update tokens * fix: color scheme after Tokenator 0.7.0 update --------- Co-authored-by: boosted-bot <[email protected]> Co-authored-by: Tayeb Sedraia <[email protected]> * chore: update Flutter SDK to v3.6.0 (#81)(#82) * fix: about page spacing and add flutter label (#8O)(#83) * fix: about page spacing and add Flutter * chore: add new entry on CHANGELO.md * feat: create component button (#45)(#74) * chore: add components_button image * chore: add components screen * refactor: theme mode passed via InheritedWidget * chore: temporarily add chips component * chore: temporarily add list switch component * chore: temporarily add sheets bottom component * chore: temporarily add switch icon utilities * feat: add customization bottom sheet * feat: add demo button * refactor: update oudsbutton component * feat: add localization key for button * refactor: add button layout and enabled state * fix: change bottom sheet color * fix: resolve color issue with Orange Country theme * chore: expose onColoredSurface bool in OudsTheme * chore: updated OudsButton and added modifiers * feat: added OudsColoredBox component * chore: increment build version for new release * refactor: optimize button modifiers * chore: add textfield in button customization * chore: error handling for specific button behavior * refactor: state button customization * refactor: rename enum button * chore: add code and refactor button on demo screen * chore: use dart workspaces (#78) Co-authored-by: Mateo MARTINEZ <[email protected]> * fix: update after upgrading to SDK version ^3.5.0 * chore: added Oswald font to the white label theme * chore: added RobotoMono font * refactor: enum name and deleted layout parameter * chore: add CHANGELOG in new entry * refactor: replace localization by context.l10n * fix: replace size value with tokens * refactor: delete unused theme mode * refactor: replace InheritedWidget with model * fix: use isDarkTheme to determine ThemeData * refactor: change api OudsListSwitch * chore: add animation code display * chore: add build number 52 * review : customize layout items order * review : text in the button should be centered * review: remove the transition or visual effect * chore: increment build version 53 * chore: add assets theme-system solaris * chore: increment build number 54 * chore: update orange material color * fix: ios structure * chore: add l10n localization in ouds_core * chore: add semantics button, cards, sheets bottom * chore: add semantics to selector and mode theme * chore: add accessibility copy code * chore: increment build number 59 * fix: ios provisioning profile to certificate alpha * chore : increment build number 60 * fix: ios team alpha release * chore: increment build number 61 * fix: ios team alpha release --------- Co-authored-by: Mateo M. <[email protected]> Co-authored-by: Mateo MARTINEZ <[email protected]> * Prepare version 0.1.0 --------- Signed-off-by: Tayeb Sedraia <[email protected]> Co-authored-by: Benoit SUZANNE <[email protected]> Co-authored-by: Florent Maitre <[email protected]> Co-authored-by: OUDS Bot [bot] <[email protected]> Co-authored-by: boosted-bot <[email protected]> Co-authored-by: Mateo M. <[email protected]> Co-authored-by: Mateo MARTINEZ <[email protected]>
1 parent 2164b75 commit 6967c59

File tree

486 files changed

+17584
-9229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+17584
-9229
lines changed

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature Request
22
description: Suggest a new Epic to be added to the backlog.
33
title: "[feature]: "
4-
labels: ["feature", "🔍 triage"]
4+
labels: ["🗳️ feature", "🔍 triage"]
55
assignees: ["Tayebsed93"]
66
body:
77
- type: checkboxes

.github/actions/setup/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: setup
2+
description: Setup environment
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup Java
7+
uses: actions/setup-java@v3
8+
with:
9+
distribution: 'zulu'
10+
java-version: '17'
11+
12+
- name: Setup Flutter
13+
uses: subosito/flutter-action@v2

.github/workflows/build.yml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
tags:
9+
- '[0-9]+.[0-9]+.[0-9]+'
10+
11+
pull_request:
12+
types: [opened, synchronize, reopened]
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup environment
24+
uses: ./.github/actions/setup
25+
26+
- name: Run app tests
27+
shell: bash
28+
run: |
29+
cd app
30+
flutter test
31+
32+
- name: Run ouds_core tests
33+
shell: bash
34+
run: |
35+
cd ouds_core
36+
flutter test
37+
38+
- name: Run ouds_global_raw_tokens tests
39+
shell: bash
40+
run: |
41+
cd ouds_global_raw_tokens
42+
flutter test
43+
44+
- name: Run ouds_theme_contract tests
45+
shell: bash
46+
run: |
47+
cd ouds_theme_contract
48+
flutter test
49+
50+
- name: Run ouds_theme_orange tests
51+
shell: bash
52+
run: |
53+
cd ouds_theme_orange
54+
flutter test
55+
56+
- name: Run ouds_theme_orange_country tests
57+
shell: bash
58+
run: |
59+
cd ouds_theme_orange_country
60+
flutter test
61+
62+
- name: Run ouds_theme_white_label tests
63+
shell: bash
64+
run: |
65+
cd ouds_theme_white_label
66+
flutter test
67+
68+
build-android:
69+
runs-on: ubuntu-latest
70+
needs: test
71+
steps:
72+
- name: Checkout code
73+
uses: actions/checkout@v3
74+
with:
75+
fetch-depth: 0
76+
77+
- name: Setup environment
78+
uses: ./.github/actions/setup
79+
80+
- name: Determine build flavor
81+
id: determine_flavor
82+
run: echo "::set-output name=flavor::$(if [[ ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} ]]; then echo "prod"; else echo "beta"; fi)"
83+
84+
- name: Build Android app
85+
shell: bash
86+
run: |
87+
cd app
88+
flutter build apk --flavor=${{ steps.determine_flavor.outputs.flavor }}
89+
flutter build appbundle --flavor=${{ steps.determine_flavor.outputs.flavor }}
90+
91+
- name: Store Android app artifacts
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: android-app
95+
path: |
96+
app/build/app/outputs/flutter-apk/*.apk
97+
app/build/app/outputs/bundle/*/*.aab
98+
99+
build-ios:
100+
runs-on: macos-latest
101+
needs: test
102+
steps:
103+
- name: Checkout code
104+
uses: actions/checkout@v3
105+
with:
106+
fetch-depth: 0
107+
108+
- name: Setup environment
109+
uses: ./.github/actions/setup
110+
111+
- name: Determine build flavor
112+
id: determine_flavor
113+
run: echo "::set-output name=flavor::$(if [[ ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} ]]; then echo "prod"; else echo "beta"; fi)"
114+
115+
- name: Build iOS app
116+
shell: bash
117+
run: |
118+
cd app
119+
flutter build ios --no-codesign --flavor=${{ steps.determine_flavor.outputs.flavor }}
120+
121+
- name: Store iOS app artifacts
122+
uses: actions/upload-artifact@v4
123+
with:
124+
name: ios-app
125+
path: app/build/ios/iphoneos/Runner.app
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Deploy Dartdoc with GitHub Pages dependencies preinstalled
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
with:
28+
submodules: recursive
29+
- name: Setup Dart
30+
uses: dart-lang/setup-dart@v1
31+
with:
32+
sdk: stable
33+
- name: Setup environment
34+
uses: ./.github/actions/setup
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v3
37+
- name: Setup Ruby
38+
uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: 3.3.5
41+
- name: Build with Dartdoc
42+
run: |
43+
cd ouds_core
44+
dart pub get
45+
dart doc .
46+
- name: Move DartDoc output
47+
run: |
48+
mkdir -p ./docs
49+
mv ouds_core/doc/api/* ./docs
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: ./docs
54+
55+
deploy:
56+
runs-on: ubuntu-latest
57+
needs: build
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v2
61+
62+
- name: Download artifact
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: github-pages
66+
67+
- name: List files in current directory (to verify artifact)
68+
run: |
69+
ls -la
70+
71+
- name: Create docs directory if not exists
72+
run: |
73+
mkdir -p ./docs
74+
75+
- name: Extract artifact into docs directory
76+
run: |
77+
tar -xvf artifact.tar -C ./docs
78+
ls -la ./docs
79+
80+
- name: Commit changes and push to gh-pages
81+
run: |
82+
git config --global user.name "GitHub Actions"
83+
git config --global user.email "[email protected]"
84+
git checkout gh-pages || git checkout -b gh-pages
85+
git rm -rf .
86+
echo "flutter.unified-design-system.orange.com" > docs/CNAME
87+
git add ./docs/*
88+
commit_message="doc: deploy site to GitHub Pages - Version $(date +%Y%m%d)"
89+
git commit -m "$commit_message" || echo "No changes to commit"
90+
git push origin gh-pages --force
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+

CHANGELOG.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

DEVELOP.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
# Developer guide
22

33
## Documentation
4+
5+
OUDS Flutter documentation is generated using [Dart documentation generator](https://pub.dev/packages/dartdoc).
6+
Open the `ouds-flutter/library/doc/api` directory.
7+
8+
More technical information about Dart documentation generator is available [here](https://pub.dev/packages/dartdoc)
9+
10+
## Installation
11+
12+
The `dart` tool, with the `dart doc` command, is part of the Dart SDK.
13+
14+
### Generating Docs
15+
16+
Run `dart doc .` from the `library/doc/api` directory of the package. You must first run `dart pub get` or `flutter pub get`, and your package must analyze without errors with `dart analyze` or `flutter analyze` as appropriate. Here's an example of `dartdoc` documenting itself:
17+
18+
```bash
19+
$ dart doc .
20+
```
21+
22+
By default, the documentation is generated to the doc/api directory as static HTML files.
23+
24+
To view the generated documentation, you must load them with an HTTP server. To learn more, follow the Viewing docs guide.
25+
26+
Run dart help doc to see the available command-line options.
27+
28+
### Viewing docs
29+
To enable navigation and search, the generated docs must be served with an HTTP server.
30+
31+
An easy way to run an HTTP server locally is to use package:dhttpd. For example:
32+
33+
```bash
34+
$ dart pub global activate dhttpd
35+
$ dart pub global run dhttpd --path doc/api
36+
```
37+
38+
To then read the generated docs in your browser, open the link that dhttpd outputs, usually http://localhost:8080.
39+

THIRD_PARTY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ Copyright 2006 Ivan Sagalaev Authors
1212
[https://pub.dev/packages/dartdoc#dart-documentation-generator](https://pub.dev/packages/dartdoc#dart-documentation-generator)
1313
BSD-3-Clause License
1414

15+
### Flutter SVG
16+
17+
Copyright 2018 Flutter SVG
18+
[https://pub.dev/packages/flutter_svg](https://pub.dev/packages/flutter_svg)
19+
Apache License 2.0
20+
21+
22+
1523
## In the OUDS Playground app
1624

1725
### Flutter Localizations Framework

app/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# OUDS Flutter changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [0.1.0](https://github.com/Orange-OpenSource/ouds-ios/compare/0.0.0...0.1.0) - 2025-03-20
8+
9+
### Added
10+
11+
- [DemoApp] Create component - Button ([#45](https://github.com/Orange-OpenSource/ouds-flutter/issues/45))
12+
- [DemoApp] About page correct spacing and add flutter label ([#80](https://github.com/Orange-OpenSource/ouds-flutter/issues/80))
13+
- [DemoApp] Update Flutter SDK to v3.6.0 ([#81](https://github.com/Orange-OpenSource/ouds-flutter/issues/81))
14+
- [Library] Fix workflow to use dart doc ([#75](https://github.com/Orange-OpenSource/ouds-flutter/issues/75))
15+
- [DemoApp] Add the about page ([#58](https://github.com/Orange-OpenSource/ouds-flutter/issues/58))
16+
- [Library] Add typography tokens ([#43](https://github.com/Orange-OpenSource/ouds-flutter/issues/43))
17+
- [Library] Add grid tokens ([#42](https://github.com/Orange-OpenSource/ouds-flutter/issues/42))
18+
- [Library] Add size tokens ([#41](https://github.com/Orange-OpenSource/ouds-flutter/issues/41))
19+
- [Library] Add space tokens ([#40](https://github.com/Orange-OpenSource/ouds-flutter/issues/40))
20+
- [Library] Add elevation tokens ([#39](https://github.com/Orange-OpenSource/ouds-flutter/issues/39))
21+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
22+
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
23+
- [DemoApp] Rename demo app to DesignToolbox ([#28](https://github.com/Orange-OpenSource/ouds-flutter/issues/28))
24+
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
25+
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))
26+
- [Library] Create the basic architecture of the library ([#4](https://github.com/Orange-OpenSource/ouds-flutter/issues/4))
27+
- [DemoApp] Distribute demo app for validation ([#5](https://github.com/Orange-OpenSource/ouds-flutter/issues/13))
28+
- [DemoApp] Create the basic architecture of the demo application ([#5](https://github.com/Orange-OpenSource/ouds-flutter/issues/5))
29+
30+
### Changed
31+
32+
### Fixed

app/NOTICE.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,34 @@ in whole or part of, in any medium, except as required for reasonable and custom
88
and reproducing the content of the NOTICE and DOCUMENTATION files.
99
Any use or displaying shall constitute an infringement under intellectual property laws of France and international conventions.
1010

11+
ouds-flutter/app/assets/1.5x/ic_theme-system.png
12+
ouds-flutter/app/assets/1.5x/ic_palette.png
13+
ouds-flutter/app/assets/1.5x/il_components_button.png
14+
ouds-flutter/app/assets/1.5x/il_components_button_dark.png
15+
ouds-flutter/app/assets/1.5x/ic_copy.png
16+
17+
ouds-flutter/app/assets/2.0x/ic_theme-system.png
18+
ouds-flutter/app/assets/2.0x/ic_palette.png
19+
ouds-flutter/app/assets/2.0x/il_components_button.png
20+
ouds-flutter/app/assets/2.0x/il_components_button_dark.png
21+
ouds-flutter/app/assets/2.0x/ic_copy.png
22+
23+
ouds-flutter/app/assets/3.0x/ic_theme-system.png
24+
ouds-flutter/app/assets/3.0x/ic_palette.png
25+
ouds-flutter/app/assets/3.0x/il_components_button.png
26+
ouds-flutter/app/assets/3.0x/il_components_button_dark.png
27+
ouds-flutter/app/assets/3.0x/ic_copy.png
28+
29+
ouds-flutter/app/assets/4.0x/ic_theme-system.png
30+
ouds-flutter/app/assets/4.0x/ic_palette.png
31+
ouds-flutter/app/assets/4.0x/il_components_button.png
32+
ouds-flutter/app/assets/4.0x/il_components_button_dark.png
33+
ouds-flutter/app/assets/4.0x/ic_copy.png
34+
35+
ouds-flutter/app/assets/ic_theme-system.png
36+
ouds-flutter/app/assets/ic_copy.png
37+
ouds-flutter/app/assets/il_components_button_dark.png
38+
ouds-flutter/app/assets/il_components_button.png
1139
ouds-flutter/app/assets/ic_palette.png
1240
ouds-flutter/app/assets/ic_about.svg
1341
ouds-flutter/app/assets/ic_atom.svg

0 commit comments

Comments
 (0)