Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gradle fatJar on the YetToYes2 directory. Also fix NPE bug on YetFileInput when there is a xref/footnote references but there are 0 xref/footnotes defined.
- Loading branch information
Showing
46 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
package android.os; | |||
|
|||
// Stub version of Android's Parcel | |||
public final class Parcel { | |||
public void writeInt(int a) {} | |||
public void writeIntArray(int[] a) {} | |||
public void writeString(String a) {} | |||
public int readInt() { return 0; } | |||
public int[] createIntArray() { return null; } | |||
public String readString() { return null; } | |||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
// | |||
// Script to build YetToYes2.jar | |||
// | |||
// Call gradle fatJar to compile this with dependencies included. | |||
// | |||
|
|||
apply plugin: 'application' | |||
|
|||
mainClassName = 'yuku.alkitabconverter.yet.YetToYes2' | |||
|
|||
repositories { | |||
mavenCentral() | |||
} | |||
|
|||
configurations { | |||
provided | |||
} | |||
|
|||
dependencies { | |||
compile fileTree(dir: 'libs', include: ['*.jar']) | |||
compile 'net.sf.trove4j:trove4j:3.0.3' | |||
provided files(System.getenv("ANDROID_HOME") + '/platforms/android-22/android.jar') | |||
} | |||
|
|||
sourceSets { | |||
main { | |||
java { | |||
srcDirs += '../AlkitabConverter/src/main/java' | |||
srcDirs += '../AlkitabIo/src/main/java' | |||
srcDirs += '../AlkitabModel/src/main/java' | |||
srcDirs += '../AlkitabYes2/src/main/java' | |||
srcDirs += '../BintexReader/src/main/java' | |||
srcDirs += '../BintexWriter/src/main/java' | |||
srcDirs += '../Snappy/src/main/java' | |||
} | |||
} | |||
} | |||
|
|||
// Include provided for compilation | |||
sourceSets.main.compileClasspath += [configurations.provided] | |||
|
|||
|
|||
// create a single Jar with all dependencies | |||
task fatJar(type: Jar) { | |||
manifest { | |||
attributes 'Main-Class': mainClassName | |||
} | |||
|
|||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |||
with jar | |||
} | |||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.