Skip to content

Commit a743ccc

Browse files
authored
chore: add "quick start" section to the README and update it (#1009)
1 parent 37ae544 commit a743ccc

File tree

4 files changed

+61
-12
lines changed

4 files changed

+61
-12
lines changed

README.md

Lines changed: 59 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,70 @@
11
# OUDS Android
22

3-
[![minSdkVersion](https://img.shields.io/badge/minSdkVersion-21-yellowgreen?logo=android&logoColor=white)](https://apilevels.com)
3+
[![minSdkVersion](https://img.shields.io/badge/minSdkVersion-23-yellowgreen?logo=android&logoColor=white)](https://apilevels.com)
44
[![License](https://img.shields.io/github/license/Orange-OpenSource/ouds-android)](LICENSE)
55
[![Documentation](https://img.shields.io/badge/documentation-7F52FF?logo=kotlin&logoColor=white)](https://android.unified-design-system.orange.com/)
66

77
This repository contains the OUDS Android library that provides Orange Android components, but also a demo application showcasing these different components.
88

99
OUDS stands for "Orange Unified Design System". Its aim is to merge all the requirements of Orange brands and affiliates to provide a unique Design System,
1010
unified across all platforms and all countries.
11-
It should replace internal frameworks and also [ODS](https://github.com/Orange-OpenSource/ods-android) in the near future.
1211

13-
## Documentation
12+
OUDS Android documentation is available at [android.unified-design-system.orange.com](https://android.unified-design-system.orange.com/).
1413

15-
Documentation for OUDS Android is available at [android.unified-design-system.orange.com](https://android.unified-design-system.orange.com/)
14+
To see OUDS Android in action, you can download the [Design Toolbox demo app](http://oran.ge/designtoolbox). The `app` module contains the code for this
15+
application.
1616

17-
<!-- TODO ## Get started with OUDS Android -->
17+
## :rocket: Quick Start
1818

19-
## Design Toolbox app
19+
### Add OUDS Android to your project
20+
21+
OUDS Android is available through [Maven Central Repository](https://central.sonatype.com/search?q=com.orange.ouds.android). To use it, add the OUDS Android
22+
library core and the theme you want to use in the `dependencies` section of your app build script:
23+
24+
<details open>
25+
<summary>Kotlin DSL</summary>
26+
27+
```kotlin
28+
dependencies {
29+
// ...
30+
implementation("com.orange.ouds.android:ouds-core:1.0.0")
31+
implementation("com.orange.ouds.android:ouds-theme-orange:1.0.0")
32+
// ...
33+
}
34+
```
35+
36+
</details>
37+
38+
<details>
39+
<summary>Groovy DSL</summary>
40+
41+
```shell
42+
dependencies {
43+
// ...
44+
implementation 'com.orange.ouds.android:ouds-core:1.0.0'
45+
implementation 'com.orange.ouds.android:ouds-theme-orange:1.0.0'
46+
// ...
47+
}
48+
```
49+
50+
</details>
51+
52+
### Select and apply your theme
53+
54+
To access OUDS components and tokens throughout your app, you must wrap your UI hierarchy with `OudsTheme` instead of `MaterialTheme`.
55+
This composable requires a `theme` parameter to define the visual identity to apply (e.g., `OrangeTheme`, `SoshTheme`, `WireframeTheme`).
56+
57+
```kotlin
58+
OudsTheme(theme = OrangeTheme()) {
59+
// Use OUDS Android or Material components here for an interface
60+
// matching the Orange Unified Design System with the Orange theme
61+
}
62+
```
63+
64+
> [!WARNING]
65+
> Make sure to add the corresponding theme as a Gradle dependency.
66+
67+
## :iphone: Design Toolbox App
2068

2169
The `app` directory of this repository contains Design Toolbox app which is a showcase of what OUDS Android library offers.
2270
It allows you to benefit from sample codes to help you learn about OUDS Android use.
@@ -36,23 +84,23 @@ The Design Toolbox app allows you to test OUDS components in several themes in L
3684
</tr>
3785
</table>
3886

39-
## Bugs and feature requests
87+
## :beetle: Bugs and Feature Requests
4088

4189
Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed
4290
yet, [please open a new issue](https://github.com/Orange-OpenSource/ouds-android/issues/new/choose).
4391

44-
## Contributing
92+
## :handshake: Contributing
4593

4694
Please read through our [contributing guidelines](https://github.com/Orange-OpenSource/ouds-android/blob/main/CONTRIBUTING.md).
4795
Included are directions for opening issues, coding standards, and notes on development.
4896

49-
## Data privacy
97+
## :lock: Data Privacy
5098

5199
The Orange Unified Design System library is an SDK that allows a developer to create Orange branded mobile application. As such:
52100

53101
- this SDK does not handle any personal data.
54102
- this SDK does not require any device permission to work.
55103

56-
## Copyright and license
104+
## :balance_scale: Copyright and License
57105

58-
Code released under the [MIT License](https://github.com/Orange-OpenSource/ouds-android/blob/main/LICENSE).
106+
Code released under the [MIT License](https://github.com/Orange-OpenSource/ouds-android/blob/main/LICENSE).

buildSrc/src/main/kotlin/release.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ fun updateDependencies(version: String) {
7474
val transform: (MatchResult) -> CharSequence = { matchResult ->
7575
"${matchResult.groupValues[1]}$version"
7676
}
77-
File("docs/index.md").replace(regex, transform)
77+
val filePaths = listOf("docs/index.md", "README.md")
78+
filePaths.forEach { File(it).replace(regex, transform) }
7879
}
7980

8081
fun updateVersionCode() {

readme/screenshot_orange.png

-573 Bytes
Loading

readme/screenshot_sosh.png

15.2 KB
Loading

0 commit comments

Comments
 (0)