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
+31-14Lines changed: 31 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,30 @@ You may wish to wait for the beta release as we will not support the alpha relea
7
7
8
8
You should start with a clean java only project without any android dependencies, preferably named `'shared'`. This must be buildable using Gradle's standard `'java'` plugin. It may start as an empty project and allows you to gradually shift over code from an existing Android application.
9
9
10
-
Within the `'shared'` project's `build.gradle`, apply the j2objc plugin before the java plugin:
11
-
12
-
// 'shared' build.gradle
13
-
plugins {
14
-
id "com.github.j2objccontrib.j2objcgradle" version "0.2.1-alpha"
10
+
Within the `'shared'` project's `build.gradle`, apply the j2objc plugin before the java plugin.
11
+
12
+
Note: the plugins {...} syntax does not work for the j2objc plugin, so you must use the old buildscript style
13
+
For more info see: https://github.com/j2objc-contrib/j2objc-gradle/issues/130
14
+
15
+
// File: shared/build.gradle
16
+
buildscript {
17
+
repositories {
18
+
maven {
19
+
url "https://plugins.gradle.org/m2/"
20
+
}
21
+
}
22
+
dependencies {
23
+
// Current Version: https://plugins.gradle.org/plugin/com.github.j2objccontrib.j2objcgradle
0 commit comments