Skip to content

Commit e13fa9d

Browse files
author
Devendra
committed
merging scala work, cn1 work, and IV constructor fixes
2 parents 42a30b8 + b55a454 commit e13fa9d

98 files changed

Lines changed: 6943 additions & 55 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎android/Pubnub-Android-3.5.2.jar‎

46 Bytes
Binary file not shown.
46 Bytes
Binary file not shown.
46 Bytes
Binary file not shown.
87 Bytes
Binary file not shown.
11.5 KB
Binary file not shown.
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--build_version=1.3-->
3+
4+
5+
<project name="PubnubClientSDK" default="build" basedir=".">
6+
<description>Builds, tests, and runs the project PubnubClientSDK.</description>
7+
<import file="nbproject/build-impl.xml"/>
8+
<loadfile property="VERSION" srcFile="../../VERSION"><filterchain><striplinebreaks/></filterchain></loadfile>
9+
<property file="codenameone_settings.properties"/>
10+
11+
<target name="create-src">
12+
<mkdir dir="src"/>
13+
<copy includeemptydirs="true" todir="src">
14+
<fileset dir="../../java/srcPubnubApi"/>
15+
</copy>
16+
<copy includeemptydirs="true" todir="src/com/codename1">
17+
<fileset dir="../src/com/codename1"/>
18+
</copy>
19+
<copy includeemptydirs="true" todir="src/com/pubnub/api">
20+
<fileset dir="../src/com/pubnub/api/"/>
21+
</copy>
22+
</target>
23+
<target name="delete-src">
24+
<delete dir="src"/>
25+
</target>
26+
<target name="copy-lib">
27+
<copy file="dist/PubnubClientSDK.cn1lib" tofile="../pubnub-codenameone-${VERSION}.cn1lib"/>
28+
</target>
29+
30+
31+
<target depends="create-src, default, delete-src, copy-lib, clean" name="build">
32+
</target>
33+
34+
<target depends="init,compile,jar" name="compile-test">
35+
</target>
36+
37+
<target depends="compile-test" name="-do-test-run">
38+
</target>
39+
40+
<target depends="-do-test-run" description="Run unit tests." name="test">
41+
<echo>Currently testing a library project isn't supported</echo>
42+
</target>
43+
44+
<target depends="create-src" name="-pre-compile">
45+
<echo>Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
46+
code size and wider device support</echo>
47+
<mkdir dir="build/tmp"/>
48+
<javac destdir="build/tmp"
49+
source="1.5"
50+
target="1.5"
51+
bootclasspath="lib/CLDC11.jar"
52+
classpath="${javac.classpath}:${build.classes.dir}">
53+
<src path="${src.dir}"/>
54+
</javac>
55+
</target>
56+
57+
58+
<target name="-pre-init">
59+
<property name="javac.source" value="1.5" />
60+
<property name="javac.target" value="1.5" />
61+
</target>
62+
63+
<target name="run">
64+
<echo>You can't run a library project</echo>
65+
</target>
66+
67+
<target name="debug">
68+
<echo>You can't run a library project</echo>
69+
</target>
70+
71+
<target name="Stubs">
72+
<delete dir="build/stubs"/>
73+
<javadoc sourcepath="src"
74+
classpath="lib/CodenameOne.jar:lib/CLDC11.jar:lib/bccn1/bouncycastle.zip:lib/json/json.zip"
75+
docletpath="Stubber.jar"
76+
doclet="com.codename1.build.client.StubGenerator">
77+
<fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
78+
<filename name="**/*.java"/>
79+
</fileset>
80+
</javadoc>
81+
</target>
82+
83+
<target name="jar" depends="compile, Stubs">
84+
<mkdir dir="build/lib" />
85+
<zip basedir="${build.classes.dir}" compress="false" destfile="build/lib/main.zip" />
86+
<zip basedir="build/stubs" compress="false" destfile="build/lib/stubs.zip" />
87+
<copy file="manifest.properties" todir="build/lib" />
88+
<!--<antcall target="buildNativeIOS" />
89+
<antcall target="buildNativeRIM" />
90+
<antcall target="buildNativeAND" />
91+
<antcall target="buildNativeWIN" />
92+
<antcall target="buildNativeME" /> -->
93+
<mkdir dir="dist" />
94+
<zip basedir="build/lib" compress="true" destfile="dist/${application.title}.cn1lib" />
95+
</target>
96+
97+
<target name="buildNativeRIM">
98+
<path id="rimNativeDir">
99+
<fileset dir="native/rim"/>
100+
</path>
101+
<property name="test.rimDir.property" refid="rimNativeDir"/>
102+
<condition property="doesntHaveRimFiles">
103+
<equals arg1="" arg2="${test.rimDir.property}"/>
104+
</condition>
105+
106+
<antcall target="createRimZip" />
107+
</target>
108+
109+
<target name="createRimZip"
110+
unless="doesntHaveRimFiles">
111+
<echo>Zipping rim native code</echo>
112+
<zip basedir="native/rim" compress="false" destfile="build/lib/nativerim.zip" />
113+
</target>
114+
115+
<target name="buildNativeAND">
116+
<path id="andNativeDir">
117+
<fileset dir="native/android"/>
118+
</path>
119+
<property name="test.andDir.property" refid="andNativeDir"/>
120+
<condition property="doesntHaveAndFiles">
121+
<equals arg1="" arg2="${test.andDir.property}"/>
122+
</condition>
123+
124+
<antcall target="createAndZip" />
125+
</target>
126+
127+
<target name="createAndZip"
128+
unless="doesntHaveAndFiles">
129+
<echo>Zipping Android native code</echo>
130+
<zip basedir="native/android" compress="false" destfile="build/lib/nativeand.zip" />
131+
</target>
132+
133+
<target name="buildNativeWIN">
134+
<path id="winNativeDir">
135+
<fileset dir="native/win"/>
136+
</path>
137+
<property name="test.winDir.property" refid="winNativeDir"/>
138+
<condition property="doesntHaveWinFiles">
139+
<equals arg1="" arg2="${test.winDir.property}"/>
140+
</condition>
141+
142+
<antcall target="createWinZip" />
143+
</target>
144+
145+
<target name="createWinZip"
146+
unless="doesntHaveWinFiles">
147+
<echo>Zipping win native code</echo>
148+
<zip basedir="native/win" compress="false" destfile="build/lib/nativewin.zip" />
149+
</target>
150+
151+
<target name="buildNativeIOS">
152+
<path id="iosNativeDir">
153+
<fileset dir="native/ios"/>
154+
</path>
155+
<property name="test.iosDir.property" refid="iosNativeDir"/>
156+
<condition property="doesntHaveIosFiles">
157+
<equals arg1="" arg2="${test.iosDir.property}"/>
158+
</condition>
159+
160+
<antcall target="createIosZip" />
161+
</target>
162+
163+
<target name="createIosZip"
164+
unless="doesntHaveIosFiles">
165+
<echo>Zipping ios native code</echo>
166+
<zip basedir="native/ios" compress="false" destfile="build/lib/nativeios.zip" />
167+
</target>
168+
169+
<target name="buildNativeME">
170+
<path id="meNativeDir">
171+
<fileset dir="native/j2me"/>
172+
</path>
173+
<property name="test.meDir.property" refid="meNativeDir"/>
174+
<condition property="doesntHaveMeFiles">
175+
<equals arg1="" arg2="${test.meDir.property}"/>
176+
</condition>
177+
178+
<antcall target="createMeZip" />
179+
</target>
180+
181+
<target name="createMeZip"
182+
unless="doesntHaveMeFiles">
183+
<echo>Zipping me native code</echo>
184+
<zip basedir="native/j2me" compress="false" destfile="build/lib/nativeme.zip" />
185+
</target>
186+
187+
</project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
#Wed Jan 09 17:59:31 IST 2013
3+
codename1.languageLevel=5
4+
codename1.version=1.0
681 KB
Binary file not shown.
2.03 MB
Binary file not shown.
2.44 MB
Binary file not shown.

0 commit comments

Comments
 (0)