Skip to content

Commit 132f6f3

Browse files
committed
2 parents e536144 + dc2d04c commit 132f6f3

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,6 @@ The version 2.0.3 is only for Android , Its 3.0.0 and afterwards for multiplatfo
1616

1717
You can either get this from github packages or jitpack
1818

19-
#### Step 1. Make sure you have jitpack repository in your build file
20-
21-
```groovy
22-
allprojects {
23-
repositories {
24-
maven { url 'https://jitpack.io' }
25-
}
26-
}
27-
```
28-
29-
#### Step 2. Add the dependency
30-
31-
```groovy
32-
dependencies {
33-
implementation 'com.github.qawaz:compose-code-editor:2.0.3'
34-
}
35-
```
36-
3719
### Multiplatform Dependency
3820

3921
#### Step 1 : Add the Github Packages Repo
@@ -45,9 +27,8 @@ githubProperties.load(FileInputStream(rootProject.file("github.properties")))
4527

4628
allprojects {
4729
repositories {
48-
maven {
30+
maven("https://maven.pkg.github.com/username/repo") {
4931
name = "GitHubPackages"
50-
url = uri("https://maven.pkg.github.com/username/repo")
5132
credentials {
5233
username = (githubProperties["gpr.usr"] ?: System.getenv("GPR_USER")).toString()
5334
password = (githubProperties["gpr.key"] ?: System.getenv("GPR_API_KEY")).toString()
@@ -72,6 +53,26 @@ gpr.key=yourgithubpersonalaccesstoken
7253
implementation("com.wakaztahir:codeeditor:3.0.5")
7354
```
7455

56+
### Android Only Dependency
57+
58+
#### Step 1. Make sure you have jitpack repository in your build file
59+
60+
```groovy
61+
allprojects {
62+
repositories {
63+
maven { url 'https://jitpack.io' }
64+
}
65+
}
66+
```
67+
68+
#### Step 2. Add the dependency
69+
70+
```groovy
71+
dependencies {
72+
implementation 'com.github.qawaz:compose-code-editor:2.0.3'
73+
}
74+
```
75+
7576
## Usage
7677

7778
```kotlin

0 commit comments

Comments
 (0)