Visitar URL original
added some instructions on importing artifact · processing/processing-android@3df2ef2 · GitHub
Skip to content

Commit 3df2ef2

Browse files
committed
added some instructions on importing artifact
1 parent 2fa2649 commit 3df2ef2

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,35 @@ Place the processing-core-x.y.z.jar from building the core library into ../pkgs
1212

1313
```
1414
./release.sh x.y.z
15+
```
16+
17+
## Importing into Gradle projects
18+
19+
In the settings.gradle file of the project, add https://raw.github.com/processing/processing-android/repository/ as a maven repository, under the dependencyResolutionManagement block:
20+
21+
```
22+
dependencyResolutionManagement {
23+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
24+
repositories {
25+
google()
26+
mavenCentral()
27+
maven {
28+
url "https://raw.github.com/processing/processing-android/repository/"
29+
}
30+
}
31+
}
32+
```
33+
34+
Then you should able to incorporarte processing-core as a dependency in the build.gradle file:
35+
36+
```
37+
dependencies {
38+
implementation 'androidx.appcompat:appcompat:1.4.1'
39+
implementation 'com.google.android.material:material:1.5.0'
40+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
41+
implementation 'androidx.navigation:navigation-fragment:2.4.1'
42+
implementation 'androidx.navigation:navigation-ui:2.4.1'
43+
44+
implementation 'org.processing.android:processing-core:4.5.0b5'
45+
}
1546
```

0 commit comments

Comments
 (0)