build.gradle

branch
ICAL4J_EMBED_1
changeset 22
e8c0da59391a
parent 20
dd635af15958
child 25
831fc533ed9e
equal deleted inserted replaced
5:512b0924f0b7 6:38291e2aabb2
38 exclude 'META-INF/LICENSE.txt' 38 exclude 'META-INF/LICENSE.txt'
39 exclude 'META-INF/NOTICE.txt' 39 exclude 'META-INF/NOTICE.txt'
40 } 40 }
41 productFlavors { 41 productFlavors {
42 } 42 }
43 //dexOptions {
44 // preDexLibraries = false
45 //}
46 }
47
48 // Kludgy attempt to patch ical4j
49 //task fixDeps(type: zip) {
50 // zip -d $cache/ical4j-*.jar net/fortuna/ical4j/model/TimeZoneRegistryImpl.class
51 // zip -d $cache/ical4j-*.jar net/fortuna/ical4j/util/ResourceLoader.class
52 //}
53 // Hack contains patched ical4j files
54 task patchIcal(type: Copy) {
55 from 'hack'
56 include 'model/'
57 include 'util/'
58 into 'src/net/fortuna/ical4j'
59 }
60 configure(patchIcal) {
61 group = BasePlugin.ASSEMBLE_TASK_NAME // Or BUILD_GROUP
62 description = 'Patch embedded ical4j dependency in a kludgy way'
63 }
64 task patchWipe(type: Delete) {
65 delete 'src/net'
66 }
67 configure(patchWipe) {
68 group = BasePlugin.ASSEMBLE_TASK_NAME // Or BUILD_GROUP
69 description = 'Deletes patched dependencies in a kludgy way'
70 }
71 project.afterEvaluate{
72 clean.dependsOn(patchWipe)
73 compileDebugJava.dependsOn(patchIcal)
74 compileReleaseJava.dependsOn(patchIcal)
75 } 43 }
76 44
77 dependencies { 45 dependencies {
78 compile 'com.android.support:support-v4:19.1.0' 46 compile 'com.android.support:support-v4:19.1.0'
79 compile 'org.mnode.ical4j:ical4j:1.0.6' 47 compile 'org.mnode.ical4j:ical4j:1.0.6'

mercurial