You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-86Lines changed: 56 additions & 86 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,11 @@
2
2
3
3
This is an Android implementation of the Xpeho UI made with Jetpack Compose.
4
4
5
-
## Getting started
5
+
## Import the package
6
6
7
-
### Changes on the library
7
+
To import the package in your android project, follow theses steps:
8
8
9
-
- Clone the repository using `git clone`
10
-
- Launch the folder in Android Studio
11
-
- Make your changes
12
-
- Send a Pull Request
13
-
14
-
### Import and use the library in your app
15
-
16
-
- Add the following code to your gradle repositories _(pluginManagement and dependencyREsolutionManagement blocks)_ :
9
+
- Add the following code to your gradle file on your project _(pluginManagement and dependencyREsolutionManagement blocks)_ :
17
10
18
11
```gradle
19
12
maven {
@@ -25,40 +18,48 @@ This is an Android implementation of the Xpeho UI made with Jetpack Compose.
25
18
}
26
19
```
27
20
28
-
- As you can see we don't set username and password, that's because we can't compute from a `github.properties` file in that type of block so we add the following code after these two blocks :
21
+
- As you can see we don't set username and password, that's because we can't compute from an other file in that type of block so we add the following code after these two blocks :
- For the creation of the `github.properties` refer to the linked section in the **Deployment** part.
48
+
- Add the needed environment variables :
49
+
50
+
- On a mac/linux you can add them to your `.zshrc`/`.bashrc`
51
+
52
+
```zshrc
53
+
#Github
54
+
export GITHUB_USER="your_github_username"
55
+
export GITHUB_TOKEN="your_github_token"
56
+
```
57
+
58
+
To fill the GITHUB_TOKEN, make sure to generate a PAT (Personal Access Token) on your github account following the [documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic).
59
+
60
+
You need to allow the following rights :
61
+

62
+

62
63
63
64
- Now we can add in our **dependencies** block of the `build.gradle` file the following implementation :
64
65
@@ -73,54 +74,7 @@ This is an Android implementation of the Xpeho UI made with Jetpack Compose.
After that you can relaunch your terminale or type:
90
-
```shell
91
-
source~/.zshrc
92
-
```
93
-
94
-
### Github properties
95
-
96
-
Define at the root of the repository a file `github.properties` following this structure :
97
-
98
-
```
99
-
gpr.user=YOUR_USERNAME
100
-
gpr.key=YOUR_PERSONAL_ACCESS_TOKEN
101
-
```
102
-
103
-
Make sure to generate a PAT (Personal Access Token) on your github account following the [documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic).
104
-
105
-
You need to allow the following rights :
106
-

107
-

108
-
109
-
> [!WARNING]
110
-
> Make sure to have the right access to the repository to be able to deploy.
111
-
112
-
### Process
113
-
114
-
Make sure to update the version code in the [build.gradle.kts](xpeho_ui_android/build.gradle.kts) file, it will be the version code of the package on github.
115
-
116
-
Now launch a terminal in the root of the directory and type :
117
-
118
-
- `./gradlew assembleRelease`
119
-
- `./gradlew publish`
120
-
121
-
You can check the deployment by looking at the repository page, it should have your deployment on the packages section.
A workflow has been created on this repository to automatically deploy the package in artifacts on creating a new release.
279
+
280
+
The only thing you need to do so is to create a new release on the repository following the [GitHub documentation](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
312
281
282
+
You can check the deployed packages by looking at the repository page, it should have your packages on the packages section.
0 commit comments