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