Skip to content

Commit be8b449

Browse files
author
Devendra
committed
read version from VERSION, handle 403
1 parent e4ae74a commit be8b449

36 files changed

Lines changed: 66 additions & 49 deletions

‎VERSION‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4

‎android/3.4/Pubnub-Android-3.4.jar‎

18 Bytes
Binary file not shown.

‎android/3.4/build.xml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<project basedir="." default="build" name="PubnubApi">
33
<property environment="env"/>
4+
<loadfile property="VERSION" srcFile="../../VERSION"><filterchain><striplinebreaks/></filterchain></loadfile>
5+
<property name="pubnub_lib_jar" value="Pubnub-Android-${VERSION}.jar"/>
46
<property name="java_3.4_path" value="../../java/3.4"/>
57
<property name="src_pubnub_api_path" value="${java_3.4_path}/srcPubnubApi"/>
68
<property name="src_java_path" value="${java_3.4_path}/src1"/>
@@ -36,17 +38,17 @@
3638
</target>
3739
<target name="clean">
3840
<delete dir="bin"/>
39-
<delete file="Pubnub-Android-3.4.jar"/>
41+
<delete file="${pubnub_lib_jar}"/>
4042
</target>
4143
<target depends="clean" name="cleanall"/>
4244
<target depends="copy_jars_to_examples" name="build"/>
4345
<target depends="create-jar" name="copy_jars_to_examples">
44-
<copy file="Pubnub-Android-3.4.jar" todir="./examples/PubnubExample/libs/"/>
45-
<copy file="Pubnub-Android-3.4.jar" todir="./examples/SubscribeAtBoot/libs/"/>
46+
<copy file="${pubnub_lib_jar}" todir="./examples/PubnubExample/libs/"/>
47+
<copy file="${pubnub_lib_jar}" todir="./examples/SubscribeAtBoot/libs/"/>
4648
</target>
4749

4850
<target depends="build-project" name="create-jar">
49-
<jar destfile="Pubnub-Android-3.4.jar"
51+
<jar destfile="${pubnub_lib_jar}"
5052
basedir="bin"
5153
includes="**/**"
5254
/>
18 Bytes
Binary file not shown.
18 Bytes
Binary file not shown.

‎android/3.4/examples/SubscribeAtBoot/project.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
14-
target=android-16
14+
target=Google Inc.:Google APIs:17

‎blackberry/3.4/build.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<project basedir="." default="build" name="PubnubApi">
33
<property environment="env"/>
4+
<loadfile property="VERSION" srcFile="../../VERSION"><filterchain><striplinebreaks/></filterchain></loadfile>
5+
<property name="pubnub_lib_jar" value="Pubnub-Blackberry-${VERSION}.jar"/>
46
<property name="srcPubnubApi.link" value="../../java/3.4/srcPubnubApi"/>
57
<property name="j2me.link" value="../../j2me/3.4"/>
68
<property name="target" value="1.1"/>
@@ -39,7 +41,7 @@
3941
<target depends="clean" name="cleanall"/>
4042
<target depends="create-jar, clean" name="build"/>
4143
<target depends="build-project" name="create-jar">
42-
<jar destfile="Pubnub-Blackberry-3.4.jar"
44+
<jar destfile="${pubnub_lib_jar}"
4345
basedir="bin"
4446
includes="**/**"
4547
/>

‎build.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<project basedir="." default="build">
3+
<property name="VERSION" value="3.4.0"/>
34
<target name="build">
4-
<subant target="build">
5+
<subant target="build" >
56
<fileset dir="." includes="*/build.xml" />
67
</subant>
78
</target>
8-
<target name="clean">
9+
<target name="clean" >
910
<subant target="clean">
1011
<fileset dir="." includes="*/build.xml" />
1112
</subant>
0 Bytes
Binary file not shown.

‎j2me/3.4/build.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<project basedir="." default="build" name="PubnubApi">
33
<property environment="env"/>
4+
<loadfile property="VERSION" srcFile="../../VERSION"><filterchain><striplinebreaks/></filterchain></loadfile>
5+
<property name="pubnub_lib_jar" value="Pubnub-Microedition-${VERSION}.jar"/>
46
<property name="srcPubnubApi.link" value="../../java/3.4/srcPubnubApi"/>
57
<property name="target" value="1.1"/>
68
<property name="source" value="1.3"/>
@@ -38,7 +40,7 @@
3840
<target depends="clean" name="cleanall"/>
3941
<target depends="create-jar, clean" name="build"/>
4042
<target depends="build-project" name="create-jar">
41-
<jar destfile="Pubnub-Microedition-3.4.jar"
43+
<jar destfile="${pubnub_lib_jar}"
4244
basedir="bin"
4345
includes="**/**"
4446
/>

0 commit comments

Comments
 (0)