forked from yanivnizan/android-store-amazon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module_androidstoreamazon.xml
110 lines (88 loc) · 5.04 KB
/
module_androidstoreamazon.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_androidstoreamazon" default="compile.module.androidstoreamazon">
<dirname property="module.androidstoreamazon.basedir" file="${ant.file.module_androidstoreamazon}"/>
<property name="aidl" value="${jdk.home.android.platform.tools}aidl" />
<property name="framework-aidl" value="${jdk.home.android.platform}framework.aidl" />
<property name="module.jdk.home.androidstoreamazon" value="${jdk.home.android}"/>
<property name="module.jdk.bin.androidstoreamazon" value="${jdk.bin.android}"/>
<property name="module.jdk.classpath.androidstoreamazon" value="jdk.classpath.android"/>
<property name="compiler.args.androidstoreamazon" value="-encoding UTF-8 -source 1.6 ${compiler.args}"/>
<property name="androidstoreamazon.output.dir" value="${module.androidstoreamazon.basedir}/out/production/AndroidStoreAmazon"/>
<path id="androidstoreamazon.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="androidstoreamazon.module.production.classpath">
<path refid="${module.jdk.classpath.androidstoreamazon}"/>
<pathelement location="${basedir}/libs/AndroidStore.jar"/>
<pathelement location="${basedir}/libs/SoomlaAndroidCore.jar"/>
<pathelement location="${basedir}/libs/in-app-purchasing-2.0.1.jar"/>
</path>
<path id="androidstoreamazon.runtime.production.module.classpath">
<pathelement location="${androidstoreamazon.output.dir}"/>
<pathelement location="${basedir}/libs/AndroidStore.jar"/>
<pathelement location="${basedir}/libs/SoomlaAndroidCore.jar"/>
<pathelement location="${basedir}/libs/in-app-purchasing-2.0.1.jar"/>
</path>
<path id="androidstoreamazon.module.classpath">
<path refid="${module.jdk.classpath.androidstoreamazon}"/>
<pathelement location="${androidstoreamazon.output.dir}"/>
<pathelement location="${basedir}/libs/AndroidStore.jar"/>
<pathelement location="${basedir}/libs/SoomlaAndroidCore.jar"/>
<pathelement location="${basedir}/libs/in-app-purchasing-2.0.1.jar"/>
</path>
<path id="androidstoreamazon.runtime.module.classpath">
<pathelement location="${androidstoreamazon.output.dir}"/>
<pathelement location="${basedir}/libs/AndroidStore.jar"/>
<pathelement location="${basedir}/libs/SoomlaAndroidCore.jar"/>
<pathelement location="${basedir}/libs/in-app-purchasing-2.0.1.jar"/>
</path>
<patternset id="excluded.from.module.androidstoreamazon">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.androidstoreamazon">
<patternset refid="compiler.excluded"/>
<patternset refid="excluded.from.module.androidstoreamazon"/>
</patternset>
<path id="androidstoreamazon.module.sourcepath">
<dirset dir="${module.androidstoreamazon.basedir}">
<include name="src"/>
<include name=".idea/gen/com/android"/>
</dirset>
</path>
<target name="config">
<property name="config-target-path" value="${basedir}/src/com/soomla/store/"/>
<!-- Copy the configuration file, replacing tokens in the file. -->
<copy file="config/StoreConfig.java" todir="${config-target-path}"
overwrite="true" encoding="utf-8">
<filterset>
<filter token="CONFIG.LOGGING" value="${logging}"/>
</filterset>
</copy>
<!-- Now set it to read-only, as we don't want people accidentally
editing the wrong one. NOTE: This step is unnecessary, but I do
it so the developers remember that this is not the original file. -->
<!-- <chmod file="${config-target-path}/StoreConfig.java" perm="-w"/> -->
<!-- <attrib file="${config-target-path}/StoreConfig.java" readonly="true"/> -->
</target>
<target name="compile.module.androidstoreamazon" depends="compile.module.androidstoreamazon.production" description="Compile module AndroidStoreAmazon"/>
<target name="compile.module.androidstoreamazon.production" description="Compile module AndroidStoreAmazon; production classes" >
<mkdir dir="${androidstoreamazon.output.dir}"/>
<javac destdir="${androidstoreamazon.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.androidstoreamazon}/javac">
<compilerarg line="${compiler.args.androidstoreamazon}"/>
<bootclasspath refid="androidstoreamazon.module.bootclasspath"/>
<classpath refid="androidstoreamazon.module.production.classpath"/>
<src refid="androidstoreamazon.module.sourcepath"/>
<patternset refid="excluded.from.compilation.androidstoreamazon"/>
</javac>
<copy todir="${androidstoreamazon.output.dir}">
<fileset dir="${module.androidstoreamazon.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
<patternset refid="excluded.from.compilation.androidstoreamazon"/>
</fileset>
</copy>
</target>
<target name="clean.module.androidstoreamazon" description="cleanup module">
<delete dir="${androidstoreamazon.output.dir}"/>
</target>
</project>