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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,11 @@ The repo is structured in the following projects (ordered by dependencies):
18
18
***build/project-template** - this is an empty placeholder Android Application project, used by the [NativeScript CLI](https://github.com/NativeScript/nativescript-cli) when building an Android project.
19
19
20
20
# Build Prerequisites
21
-
The source in this repo is organized in Android Studio projects.
21
+
Following are the minimal prerequisites to build the runtime package.
22
22
23
23
* Install the latest [Android Studio ](https://developer.android.com/studio/index.html).
24
-
* Install Android API Level 22 from Android Studio -> Tools -> Android -> SDK Manager
25
-
*Install the Android NDK from Android Studio -> Tools -> Android -> SDK Manager
24
+
* Install Android API Level 22, 23, 24, 25 from Android Studio -> Tools -> Android -> SDK Manager
Copy file name to clipboardExpand all lines: android-static-binding-generator/project/staticbindinggenerator/src/main/java/org/nativescript/staticbindinggenerator/Generator.java
+71-44Lines changed: 71 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,16 @@
7
7
importjava.io.IOException;
8
8
importjava.io.InputStreamReader;
9
9
importjava.io.PrintStream;
10
+
importjava.nio.file.Files;
11
+
importjava.nio.file.Paths;
10
12
importjava.util.ArrayDeque;
11
13
importjava.util.ArrayList;
12
14
importjava.util.Arrays;
13
15
importjava.util.HashMap;
14
16
importjava.util.HashSet;
15
17
importjava.util.List;
16
18
importjava.util.Map;
19
+
importjava.util.Objects;
17
20
importjava.util.Queue;
18
21
importjava.util.Set;
19
22
importjava.util.jar.JarInputStream;
@@ -24,6 +27,8 @@
24
27
importorg.apache.bcel.classfile.Method;
25
28
importorg.apache.bcel.generic.Type;
26
29
30
+
importjavafx.util.Pair;
31
+
27
32
publicclassGenerator {
28
33
privatestaticfinalStringJAVA_EXT = ".java";
29
34
@@ -45,18 +50,23 @@ public Generator(String outputDir, String[] libs, boolean throwOnError) throws I
thrownewIOException("File already exists. This may lead to undesired behavior.\nPlease change the name of one of the extended classes.\n" + b.getFile());
System.out.println("Warning: File already exists. This could mean the same code has been parsed more than once from two or more different files. \nFile:" + b.getFile());
67
+
} else {
68
+
thrownewIOException("File already exists. This may lead to undesired behavior.\nPlease change the name of one of the extended classes.\nFile:" + b.getFile() + " Class: " + b.getClassname());
Copy file name to clipboardExpand all lines: android-static-binding-generator/project/staticbindinggenerator/src/test/java/org/nativescript/staticbindinggenerator/test/GeneratorTest.java
0 commit comments