Quellcode durchsuchen

添加不带java源码的插件工程,ipu-map-bd ipu-scan ipu-push-jpush

zhanglong7 vor 6 Jahren
Ursprung
Commit
40a2028ebf
122 geänderte Dateien mit 1153 neuen und 2 gelöschten Zeilen
  1. 9 0
      ipu-map-bd-lib/.classpath
  2. 1 0
      ipu-map-bd-lib/.gitignore
  3. 33 0
      ipu-map-bd-lib/.project
  4. 4 0
      ipu-map-bd-lib/.settings/org.eclipse.jdt.core.prefs
  5. 26 0
      ipu-map-bd-lib/AndroidManifest.xml
  6. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_base_v4_0_0.so
  7. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_cloud_v4_0_0.so
  8. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_map_v4_0_0.so
  9. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_radar_v4_0_0.so
  10. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_search_v4_0_0.so
  11. BIN
      ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_util_v4_0_0.so
  12. BIN
      ipu-map-bd-lib/libs/arm64-v8a/liblocSDK6a.so
  13. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_base_v4_0_0.so
  14. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_cloud_v4_0_0.so
  15. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_map_v4_0_0.so
  16. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_radar_v4_0_0.so
  17. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_search_v4_0_0.so
  18. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_util_v4_0_0.so
  19. BIN
      ipu-map-bd-lib/libs/armeabi-v7a/liblocSDK6a.so
  20. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_base_v4_0_0.so
  21. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_cloud_v4_0_0.so
  22. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_map_v4_0_0.so
  23. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_radar_v4_0_0.so
  24. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_search_v4_0_0.so
  25. BIN
      ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_util_v4_0_0.so
  26. BIN
      ipu-map-bd-lib/libs/armeabi/liblocSDK6a.so
  27. BIN
      ipu-map-bd-lib/libs/baidumapapi_base_v4_0_0.jar
  28. BIN
      ipu-map-bd-lib/libs/baidumapapi_cloud_v4_0_0.jar
  29. BIN
      ipu-map-bd-lib/libs/baidumapapi_map_v4_0_0.jar
  30. BIN
      ipu-map-bd-lib/libs/baidumapapi_radar_v4_0_0.jar
  31. BIN
      ipu-map-bd-lib/libs/baidumapapi_search_v4_0_0.jar
  32. BIN
      ipu-map-bd-lib/libs/baidumapapi_util_v4_0_0.jar
  33. BIN
      ipu-map-bd-lib/libs/ipu-map-bd-3.0.jar
  34. BIN
      ipu-map-bd-lib/libs/locSDK_6.13.jar
  35. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_base_v4_0_0.so
  36. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_cloud_v4_0_0.so
  37. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_map_v4_0_0.so
  38. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_radar_v4_0_0.so
  39. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_search_v4_0_0.so
  40. BIN
      ipu-map-bd-lib/libs/x86/libBaiduMapSDK_util_v4_0_0.so
  41. BIN
      ipu-map-bd-lib/libs/x86/liblocSDK6a.so
  42. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_base_v4_0_0.so
  43. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_cloud_v4_0_0.so
  44. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_map_v4_0_0.so
  45. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_radar_v4_0_0.so
  46. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_search_v4_0_0.so
  47. BIN
      ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_util_v4_0_0.so
  48. BIN
      ipu-map-bd-lib/libs/x86_64/liblocSDK6a.so
  49. 20 0
      ipu-map-bd-lib/proguard-project.txt
  50. 16 0
      ipu-map-bd-lib/project.properties
  51. BIN
      ipu-map-bd-lib/res/drawable-hdpi/ground_overlay.png
  52. BIN
      ipu-map-bd-lib/res/drawable-hdpi/icon_gcoding.png
  53. BIN
      ipu-map-bd-lib/res/drawable-hdpi/icon_geo.png
  54. BIN
      ipu-map-bd-lib/res/drawable-hdpi/map_mark.png
  55. BIN
      ipu-map-bd-lib/res/drawable-hdpi/popup.png
  56. 56 0
      ipu-map-bd-lib/res/layout/activity_bdmap.xml
  57. 40 0
      ipu-map-bd-lib/res/layout/activity_lbs.xml
  58. 48 0
      ipu-map-bd-lib/res/layout/activity_poi.xml
  59. 11 0
      ipu-map-bd-lib/res/values-v11/styles.xml
  60. 12 0
      ipu-map-bd-lib/res/values-v14/styles.xml
  61. 7 0
      ipu-map-bd-lib/res/values/dimens.xml
  62. 6 0
      ipu-map-bd-lib/res/values/strings.xml
  63. 20 0
      ipu-map-bd-lib/res/values/styles.xml
  64. 2 1
      ipu-mobile-libs/.classpath
  65. 9 0
      ipu-push-jpush-lib/.classpath
  66. 33 0
      ipu-push-jpush-lib/.project
  67. 4 0
      ipu-push-jpush-lib/.settings/org.eclipse.jdt.core.prefs
  68. 141 0
      ipu-push-jpush-lib/AndroidManifest.xml
  69. BIN
      ipu-push-jpush-lib/libs/arm64-v8a/libjcore120.so
  70. BIN
      ipu-push-jpush-lib/libs/armeabi-v7a/libjcore120.so
  71. BIN
      ipu-push-jpush-lib/libs/armeabi/libjcore120.so
  72. BIN
      ipu-push-jpush-lib/libs/ipu-push-jpush-3.0.jar
  73. BIN
      ipu-push-jpush-lib/libs/jcore-android-1.2.0.jar
  74. BIN
      ipu-push-jpush-lib/libs/jpush-android-3.1.2.jar
  75. BIN
      ipu-push-jpush-lib/libs/mips/libjcore120.so
  76. BIN
      ipu-push-jpush-lib/libs/mips64/libjcore120.so
  77. BIN
      ipu-push-jpush-lib/libs/x86/libjcore120.so
  78. BIN
      ipu-push-jpush-lib/libs/x86_64/libjcore120.so
  79. 4 0
      ipu-push-jpush-lib/lint.xml
  80. 29 0
      ipu-push-jpush-lib/proguard-project.txt
  81. 16 0
      ipu-push-jpush-lib/project.properties
  82. 2 0
      ipu-push-jpush-lib/readme.md
  83. BIN
      ipu-push-jpush-lib/res/drawable-hdpi/ic_launcher.png
  84. BIN
      ipu-push-jpush-lib/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png
  85. BIN
      ipu-push-jpush-lib/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png
  86. 21 0
      ipu-push-jpush-lib/res/drawable-hdpi/jpush_richpush_btn_selector.xml
  87. 20 0
      ipu-push-jpush-lib/res/drawable-hdpi/jpush_richpush_progressbar.xml
  88. BIN
      ipu-push-jpush-lib/res/drawable-mdpi/ic_launcher.png
  89. BIN
      ipu-push-jpush-lib/res/drawable-xhdpi/ic_launcher.png
  90. 15 0
      ipu-push-jpush-lib/res/layout/jpush_popwin_layout.xml
  91. 59 0
      ipu-push-jpush-lib/res/layout/jpush_webview_layout.xml
  92. 11 0
      ipu-push-jpush-lib/res/values-v11/styles.xml
  93. 12 0
      ipu-push-jpush-lib/res/values-v14/styles.xml
  94. 13 0
      ipu-push-jpush-lib/res/values/jpush_style.xml
  95. 5 0
      ipu-push-jpush-lib/res/values/strings.xml
  96. 20 0
      ipu-push-jpush-lib/res/values/styles.xml
  97. 10 0
      ipu-scan-lib/.classpath
  98. 3 0
      ipu-scan-lib/.gitignore
  99. 33 0
      ipu-scan-lib/.project
  100. 49 0
      ipu-scan-lib/AndroidManifest.xml
  101. BIN
      ipu-scan-lib/libs/ipu-scan-3.0.jar
  102. BIN
      ipu-scan-lib/libs/scan-code.jar
  103. 20 0
      ipu-scan-lib/proguard-project.txt
  104. 16 0
      ipu-scan-lib/project.properties
  105. 5 0
      ipu-scan-lib/res/drawable/scan_cancel.xml
  106. BIN
      ipu-scan-lib/res/drawable/scan_cancel_normal.png
  107. BIN
      ipu-scan-lib/res/drawable/scan_cancel_press.png
  108. BIN
      ipu-scan-lib/res/drawable/scan_flashlight_off.png
  109. BIN
      ipu-scan-lib/res/drawable/scan_flashlight_on.png
  110. BIN
      ipu-scan-lib/res/drawable/scan_photoalbum.png
  111. 74 0
      ipu-scan-lib/res/layout/activity_scan_multiple.xml
  112. 14 0
      ipu-scan-lib/res/layout/activity_test.xml
  113. 41 0
      ipu-scan-lib/res/layout/item_scan_result.xml
  114. 50 0
      ipu-scan-lib/res/layout/scan_zxing_capture.xml
  115. BIN
      ipu-scan-lib/res/raw/beep.ogg
  116. 11 0
      ipu-scan-lib/res/values-v11/styles.xml
  117. 12 0
      ipu-scan-lib/res/values-v14/styles.xml
  118. 32 0
      ipu-scan-lib/res/values/scan_zxing_colors.xml
  119. 31 0
      ipu-scan-lib/res/values/scan_zxing_ids.xml
  120. 6 0
      ipu-scan-lib/res/values/strings.xml
  121. 20 0
      ipu-scan-lib/res/values/styles.xml
  122. 1 1
      show-client/build/build.properties

+ 9 - 0
ipu-map-bd-lib/.classpath

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
5
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
6
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
7
	<classpathentry kind="src" path="gen"/>
8
	<classpathentry kind="output" path="bin/classes"/>
9
</classpath>

+ 1 - 0
ipu-map-bd-lib/.gitignore

@ -0,0 +1 @@
1
/gen/

+ 33 - 0
ipu-map-bd-lib/.project

@ -0,0 +1,33 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>ipu-map-bd</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
		<buildCommand>
19
			<name>org.eclipse.jdt.core.javabuilder</name>
20
			<arguments>
21
			</arguments>
22
		</buildCommand>
23
		<buildCommand>
24
			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25
			<arguments>
26
			</arguments>
27
		</buildCommand>
28
	</buildSpec>
29
	<natures>
30
		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31
		<nature>org.eclipse.jdt.core.javanature</nature>
32
	</natures>
33
</projectDescription>

+ 4 - 0
ipu-map-bd-lib/.settings/org.eclipse.jdt.core.prefs

@ -0,0 +1,4 @@
1
eclipse.preferences.version=1
2
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3
org.eclipse.jdt.core.compiler.compliance=1.6
4
org.eclipse.jdt.core.compiler.source=1.6

+ 26 - 0
ipu-map-bd-lib/AndroidManifest.xml

@ -0,0 +1,26 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    package="com.ai.ipu.map.bd"
4
    android:versionCode="1"
5
    android:versionName="1.0" >
6
7
    <uses-sdk
8
        android:minSdkVersion="8"
9
        android:targetSdkVersion="22" />
10
11
    <application
12
        android:allowBackup="true"
13
        android:label="@string/app_name"
14
        android:theme="@style/AppTheme" >
15
        <activity
16
            android:name=".MainActivity"
17
            android:label="@string/app_name" >
18
            <intent-filter>
19
                <action android:name="android.intent.action.MAIN" />
20
21
                <category android:name="android.intent.category.LAUNCHER" />
22
            </intent-filter>
23
        </activity>
24
    </application>
25
26
</manifest>

BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_base_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_cloud_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_map_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_radar_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_search_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/libBaiduMapSDK_util_v4_0_0.so


BIN
ipu-map-bd-lib/libs/arm64-v8a/liblocSDK6a.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_base_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_cloud_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_map_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_radar_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_search_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/libBaiduMapSDK_util_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi-v7a/liblocSDK6a.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_base_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_cloud_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_map_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_radar_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_search_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/libBaiduMapSDK_util_v4_0_0.so


BIN
ipu-map-bd-lib/libs/armeabi/liblocSDK6a.so


BIN
ipu-map-bd-lib/libs/baidumapapi_base_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/baidumapapi_cloud_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/baidumapapi_map_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/baidumapapi_radar_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/baidumapapi_search_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/baidumapapi_util_v4_0_0.jar


BIN
ipu-map-bd-lib/libs/ipu-map-bd-3.0.jar


BIN
ipu-map-bd-lib/libs/locSDK_6.13.jar


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_base_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_cloud_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_map_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_radar_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_search_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/libBaiduMapSDK_util_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86/liblocSDK6a.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_base_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_cloud_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_map_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_radar_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_search_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/libBaiduMapSDK_util_v4_0_0.so


BIN
ipu-map-bd-lib/libs/x86_64/liblocSDK6a.so


+ 20 - 0
ipu-map-bd-lib/proguard-project.txt

@ -0,0 +1,20 @@
1
# To enable ProGuard in your project, edit project.properties
2
# to define the proguard.config property as described in that file.
3
#
4
# Add project specific ProGuard rules here.
5
# By default, the flags in this file are appended to flags specified
6
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7
# You can edit the include path and order by changing the ProGuard
8
# include property in project.properties.
9
#
10
# For more details, see
11
#   http://developer.android.com/guide/developing/tools/proguard.html
12
13
# Add any project specific keep options here:
14
15
# If your project uses WebView with JS, uncomment the following
16
# and specify the fully qualified class name to the JavaScript interface
17
# class:
18
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19
#   public *;
20
#}

+ 16 - 0
ipu-map-bd-lib/project.properties

@ -0,0 +1,16 @@
1
# This file is automatically generated by Android Tools.
2
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3
#
4
# This file must be checked in Version Control Systems.
5
#
6
# To customize properties used by the Ant build system edit
7
# "ant.properties", and override values to adapt the script to your
8
# project structure.
9
#
10
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12
13
# Project target.
14
target=android-19
15
android.library.reference.1=../../ipu-guide/ipu-mobile-common
16
android.library=true

BIN
ipu-map-bd-lib/res/drawable-hdpi/ground_overlay.png


BIN
ipu-map-bd-lib/res/drawable-hdpi/icon_gcoding.png


BIN
ipu-map-bd-lib/res/drawable-hdpi/icon_geo.png


BIN
ipu-map-bd-lib/res/drawable-hdpi/map_mark.png


BIN
ipu-map-bd-lib/res/drawable-hdpi/popup.png


+ 56 - 0
ipu-map-bd-lib/res/layout/activity_bdmap.xml

@ -0,0 +1,56 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent" >
5
    
6
	 <com.baidu.mapapi.map.MapView 
7
        android:id="@+id/bdMapView"
8
        android:layout_width="match_parent"
9
        android:layout_height="match_parent"
10
        android:clickable="true"/>
11
	 
12
	 <LinearLayout
13
	     android:layout_width="match_parent"
14
	     android:layout_height="wrap_content"	
15
	     android:orientation="horizontal"
16
		 android:layout_above="@+id/ll_addoverlay">
17
	     
18
	     <Button 
19
		     android:id="@+id/location"
20
		     android:layout_width="wrap_content"
21
		     android:layout_height="wrap_content"
22
		     android:layout_weight="0"
23
		     android:text="定位"/>
24
	     <Button 
25
	        android:id="@+id/pointSin"
26
	        android:layout_width="wrap_content"
27
		    android:layout_height="wrap_content"
28
		    android:text="定位单点"/>
29
	     <Button 
30
	        android:id="@+id/pointMul"
31
	        android:layout_width="wrap_content"
32
		    android:layout_height="wrap_content"
33
		    android:text="定位多点"/>
34
	     
35
	 </LinearLayout>
36
	 
37
	 <LinearLayout
38
	     android:id="@+id/ll_addoverlay"
39
	     android:layout_width="match_parent"
40
	     android:layout_height="wrap_content"
41
	     android:orientation="horizontal"	
42
		 android:layout_alignParentBottom="true">
43
	     	     
44
	     <Button 
45
	         android:id="@+id/addMarker"
46
	         android:layout_width="wrap_content"
47
	         android:layout_height="wrap_content"
48
	         android:text="添加标注"/>
49
	     <Button 
50
	         android:id="@+id/addPolygon"
51
	         android:layout_width="wrap_content"
52
	         android:layout_height="wrap_content"
53
	         android:text="添加覆盖物"/>
54
	 </LinearLayout> 
55
    
56
</RelativeLayout>

+ 40 - 0
ipu-map-bd-lib/res/layout/activity_lbs.xml

@ -0,0 +1,40 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="vertical" >
6
    
7
	  <com.baidu.mapapi.map.MapView 
8
        android:id="@+id/bdLbsMapView"
9
        android:layout_width="match_parent"
10
        android:layout_height="match_parent"
11
        android:clickable="true"/>
12
    
13
    <LinearLayout 
14
        android:layout_width="match_parent"
15
        android:layout_height="wrap_content">
16
        
17
        <Button 
18
            android:id="@+id/cityLbsSearch"
19
            android:layout_width="0dp"
20
            android:layout_weight="1"
21
            android:layout_height="wrap_content"
22
            android:text="城市搜索"/>
23
        
24
        <Button 
25
            android:id="@+id/nearbyLbsSearch"
26
            android:layout_width="0dp"
27
            android:layout_weight="1"
28
            android:layout_height="wrap_content"
29
            android:text="周边搜索"/>
30
        
31
        <Button 
32
            android:id="@+id/boundsLbsSearch"
33
            android:layout_width="0dp"
34
            android:layout_weight="1"
35
            android:layout_height="wrap_content"
36
            android:text="区域搜索"/>
37
        
38
       </LinearLayout>
39
        
40
</RelativeLayout>

+ 48 - 0
ipu-map-bd-lib/res/layout/activity_poi.xml

@ -0,0 +1,48 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent" >
5
    
6
	
7
    <com.baidu.mapapi.map.MapView 
8
        android:id="@+id/bdPoiMapView"
9
        android:layout_width="match_parent"
10
        android:layout_height="match_parent"
11
        android:clickable="true"/>
12
    
13
    <LinearLayout 
14
        android:id="@+id/ll_poisearch"
15
        android:layout_width="match_parent"
16
        android:layout_height="wrap_content">
17
        
18
        <Button 
19
            android:id="@+id/cityPoiSearch"
20
            android:layout_width="0dp"
21
            android:layout_weight="1"
22
            android:layout_height="wrap_content"
23
            android:text="城市搜索"/>
24
        
25
        <Button 
26
            android:id="@+id/nearbyPoiSearch"
27
            android:layout_width="0dp"
28
            android:layout_weight="1"
29
            android:layout_height="wrap_content"
30
            android:text="周边搜索"/>
31
        
32
        <Button 
33
            android:id="@+id/boundsPoiSearch"
34
            android:layout_width="0dp"
35
            android:layout_weight="1"
36
            android:layout_height="wrap_content"
37
            android:text="区域搜索"/>
38
        
39
    </LinearLayout>
40
    
41
    <EditText 
42
        android:id="@+id/poikeyword"
43
        android:layout_width="match_parent"
44
        android:layout_height="wrap_content"
45
        android:layout_below="@+id/ll_poisearch"
46
        android:text="联通"/>
47
	 
48
</RelativeLayout>

+ 11 - 0
ipu-map-bd-lib/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="@android:style/Theme.Light.NoTitleBar">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10
11
</resources>

+ 12 - 0
ipu-map-bd-lib/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="@android:style/Theme.Light.NoTitleBar">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11
12
</resources>

+ 7 - 0
ipu-map-bd-lib/res/values/dimens.xml

@ -0,0 +1,7 @@
1
<resources>
2
3
    <!-- Default screen margins, per the Android Design guidelines. -->
4
    <dimen name="activity_horizontal_margin">16dp</dimen>
5
    <dimen name="activity_vertical_margin">16dp</dimen>
6
7
</resources>

+ 6 - 0
ipu-map-bd-lib/res/values/strings.xml

@ -0,0 +1,6 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
4
        <string name="app_name">baidumap</string>
5
6
</resources>

+ 20 - 0
ipu-map-bd-lib/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2
3
    <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="@android:style/Theme.Light.NoTitleBar">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14
15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19
20
</resources>

+ 2 - 1
ipu-mobile-libs/.classpath

@ -1,8 +1,9 @@
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	<classpathentry kind="src" path="gen"/>
4 3
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
5 4
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
6 5
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
6
	<classpathentry kind="src" path="src"/>
7
	<classpathentry kind="src" path="gen"/>
7 8
	<classpathentry kind="output" path="bin/classes"/>
8 9
</classpath>

+ 9 - 0
ipu-push-jpush-lib/.classpath

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
5
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
6
	<classpathentry kind="src" path="src"/>
7
	<classpathentry kind="src" path="gen"/>
8
	<classpathentry kind="output" path="bin/classes"/>
9
</classpath>

+ 33 - 0
ipu-push-jpush-lib/.project

@ -0,0 +1,33 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>ipu-push-jpush</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
		<buildCommand>
19
			<name>org.eclipse.jdt.core.javabuilder</name>
20
			<arguments>
21
			</arguments>
22
		</buildCommand>
23
		<buildCommand>
24
			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25
			<arguments>
26
			</arguments>
27
		</buildCommand>
28
	</buildSpec>
29
	<natures>
30
		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31
		<nature>org.eclipse.jdt.core.javanature</nature>
32
	</natures>
33
</projectDescription>

+ 4 - 0
ipu-push-jpush-lib/.settings/org.eclipse.jdt.core.prefs

@ -0,0 +1,4 @@
1
eclipse.preferences.version=1
2
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3
org.eclipse.jdt.core.compiler.compliance=1.6
4
org.eclipse.jdt.core.compiler.source=1.6

+ 141 - 0
ipu-push-jpush-lib/AndroidManifest.xml

@ -0,0 +1,141 @@
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
    package="com.ai.ipu.jpush"
3
    android:versionCode="1"
4
    android:versionName="1.0" >
5
6
    <uses-sdk
7
        android:minSdkVersion="8"
8
        android:targetSdkVersion="22" />
9
    <!-- 极光推送 start -->
10
    <permission
11
        android:name="com.ai.ipu.show.permission.JPUSH_MESSAGE"
12
        android:protectionLevel="signature" />  
13
    
14
    <uses-permission android:name="com.ai.ipu.show.permission.JPUSH_MESSAGE" />
15
    <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
16
    <uses-permission android:name="android.permission.INTERNET" />
17
    <uses-permission android:name="android.permission.WAKE_LOCK" />
18
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
19
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
21
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
22
    <uses-permission android:name="android.permission.VIBRATE" />
23
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
24
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
25
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
26
    <!-- 极光推送 end -->
27
    
28
    <application
29
        android:allowBackup="true"
30
        android:icon="@drawable/ic_launcher"
31
        android:label="@string/app_name"
32
        android:theme="@style/AppTheme" >
33
        
34
    <!-- 极光推送 start -->
35
        <activity
36
            android:name="cn.jpush.android.ui.PushActivity"
37
            android:configChanges="orientation|keyboardHidden"
38
            android:theme="@android:style/Theme.NoTitleBar"
39
            android:exported="false">
40
            <intent-filter>
41
                <action android:name="cn.jpush.android.ui.PushActivity" />
42
                <category android:name="android.intent.category.DEFAULT" />
43
                <category android:name="com.ai.ipu.show" />
44
            </intent-filter>
45
        </activity>
46
        
47
        <service
48
            android:name="cn.jpush.android.service.PushService"
49
            android:process=":mult"
50
            android:exported="false">
51
            <intent-filter>
52
                <action android:name="cn.jpush.android.intent.REGISTER" />
53
                <action android:name="cn.jpush.android.intent.REPORT" />
54
                <action android:name="cn.jpush.android.intent.PushService" />
55
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
56
            </intent-filter>
57
        </service>
58
        <!-- since 3.0.9 Required SDK 核心功能-->
59
        <provider
60
            android:authorities="com.ai.ipu.show.DataProvider"
61
            android:name="cn.jpush.android.service.DataProvider"
62
            android:exported="false"
63
        />
64
        
65
        <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
66
        <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
67
        <service
68
            android:name="cn.jpush.android.service.DaemonService"
69
            android:enabled="true"
70
            android:exported="true">
71
            <intent-filter>
72
                <action android:name="cn.jpush.android.intent.DaemonService" />
73
                <category android:name="com.ai.ipu.show" />
74
            </intent-filter>
75
76
        </service>
77
        <!-- since 3.1.0 Required SDK 核心功能-->
78
        <provider
79
            android:authorities="com.ai.ipu.show.DownloadProvider"
80
            android:name="cn.jpush.android.service.DownloadProvider"
81
            android:exported="true"
82
        />
83
        <!-- Required SDK核心功能-->
84
        <receiver
85
            android:name="cn.jpush.android.service.PushReceiver"
86
            android:enabled="true"
87
            android:exported="false">
88
            <intent-filter android:priority="1000">
89
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />   <!--Required  显示通知栏 -->
90
                <category android:name="com.ai.ipu.show" />
91
            </intent-filter>
92
            <intent-filter>
93
                <action android:name="android.intent.action.USER_PRESENT" />
94
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
95
            </intent-filter>
96
            <!-- Optional -->
97
            <intent-filter>
98
                <action android:name="android.intent.action.PACKAGE_ADDED" />
99
                <action android:name="android.intent.action.PACKAGE_REMOVED" />
100
101
                <data android:scheme="package" />
102
            </intent-filter>
103
        </receiver>
104
105
        <!-- Required SDK核心功能-->
106
        <receiver android:name="cn.jpush.android.service.AlarmReceiver" android:exported="false"/>
107
        
108
        <receiver
109
            android:name="com.ai.ipu.push.JPushMessageReceiver"
110
            android:exported="false"
111
            android:enabled="true">
112
            <intent-filter>
113
                <action android:name="cn.jpush.android.intent.REGISTRATION" /> <!--Required  用户注册SDK的intent-->
114
                <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> <!--Required  用户接收SDK消息的intent-->
115
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> <!--Required  用户接收SDK通知栏信息的intent-->
116
                <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> <!--Required  用户打开自定义通知栏的intent-->
117
                <action android:name="cn.jpush.android.intent.CONNECTION" /><!-- 接收网络变化 连接/断开 since 1.6.3 -->
118
                <category android:name="com.ai.ipu.show" />
119
            </intent-filter>
120
        </receiver>
121
        
122
        <receiver android:name="com.ai.ipu.push.JPushResultListener">
123
            <intent-filter>
124
                <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
125
                <category android:name="com.ai.ipu.show"></category>
126
            </intent-filter>
127
        </receiver>
128
        
129
        <!-- Required  . Enable it you can get statistics data with channel -->
130
        <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。-->
131
        <!-- 例如: -->
132
        <!-- 发到 Google Play 的APK可以设置为 google-play; -->
133
        <!-- 发到其他市场的 APK 可以设置为 xxx-market。 -->
134
        <meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
135
        <meta-data android:name="JPUSH_APPKEY" android:value="1a317ab3313d94412c949ab9" /> <!--  </>值来自开发者平台取得的AppKey-->
136
        
137
    <!-- 极光推送 end -->
138
        
139
    </application>
140
141
</manifest>

BIN
ipu-push-jpush-lib/libs/arm64-v8a/libjcore120.so


BIN
ipu-push-jpush-lib/libs/armeabi-v7a/libjcore120.so


BIN
ipu-push-jpush-lib/libs/armeabi/libjcore120.so


BIN
ipu-push-jpush-lib/libs/ipu-push-jpush-3.0.jar


BIN
ipu-push-jpush-lib/libs/jcore-android-1.2.0.jar


BIN
ipu-push-jpush-lib/libs/jpush-android-3.1.2.jar


BIN
ipu-push-jpush-lib/libs/mips/libjcore120.so


BIN
ipu-push-jpush-lib/libs/mips64/libjcore120.so


BIN
ipu-push-jpush-lib/libs/x86/libjcore120.so


BIN
ipu-push-jpush-lib/libs/x86_64/libjcore120.so


+ 4 - 0
ipu-push-jpush-lib/lint.xml

@ -0,0 +1,4 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<lint>
3
    <issue id="UseSparseArrays" severity="ignore" />
4
</lint>

+ 29 - 0
ipu-push-jpush-lib/proguard-project.txt

@ -0,0 +1,29 @@
1
# To enable ProGuard in your project, edit project.properties
2
# to define the proguard.config property as described in that file.
3
#
4
# Add project specific ProGuard rules here.
5
# By default, the flags in this file are appended to flags specified
6
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7
# You can edit the include path and order by changing the ProGuard
8
# include property in project.properties.
9
#
10
# For more details, see
11
#   http://developer.android.com/guide/developing/tools/proguard.html
12
13
# Add any project specific keep options here:
14
15
# If your project uses WebView with JS, uncomment the following
16
# and specify the fully qualified class name to the JavaScript interface
17
# class:
18
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19
#   public *;
20
#}
21
-dontoptimize
22
-dontpreverify
23
24
-dontwarn cn.jpush.**
25
-keep class cn.jpush.** { *; }
26
-keep class * extends cn.jpush.android.helpers.JPushMessageReceiver { *; }
27
28
-dontwarn cn.jiguang.**
29
-keep class cn.jiguang.** { *; }

+ 16 - 0
ipu-push-jpush-lib/project.properties

@ -0,0 +1,16 @@
1
# This file is automatically generated by Android Tools.
2
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3
#
4
# This file must be checked in Version Control Systems.
5
#
6
# To customize properties used by the Ant build system edit
7
# "ant.properties", and override values to adapt the script to your
8
# project structure.
9
#
10
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12
13
# Project target.
14
target=android-22
15
android.library=true
16
android.library.reference.1=../../ipu-guide/ipu-mobile-common

+ 2 - 0
ipu-push-jpush-lib/readme.md

@ -0,0 +1,2 @@
1
使用eclipse依赖,需要将这个目录下的AndroidManifest中的极光推送所需的权限和组件复制到主工程中。
2
appkey需要到官网申请。

BIN
ipu-push-jpush-lib/res/drawable-hdpi/ic_launcher.png


BIN
ipu-push-jpush-lib/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png


BIN
ipu-push-jpush-lib/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png


+ 21 - 0
ipu-push-jpush-lib/res/drawable-hdpi/jpush_richpush_btn_selector.xml

@ -0,0 +1,21 @@
1
<?xml version="1.0" encoding="utf-8"?> 
2
<selector xmlns:android="http://schemas.android.com/apk/res/android" > 
3
    <!-- 获得焦点但未按下时的背景图片 --> 
4
    <item 
5
        android:state_focused="true" 
6
        android:state_enabled="true" 
7
        android:state_pressed="false" 
8
        android:drawable="@drawable/jpush_ic_richpush_actionbar_back" />
9
     <!-- 按下时的背景图片 --> 
10
    <item 
11
        android:state_enabled="true" 
12
        android:state_pressed="true" 
13
        android:drawable="@android:color/darker_gray" /> 
14
    <!-- 按下时的背景图片 --> 
15
    <item 
16
        android:state_enabled="true" 
17
        android:state_checked="true" 
18
        android:drawable="@android:color/darker_gray" /> 
19
    <!-- 默认时的背景图片 --> 
20
    <item android:drawable="@drawable/jpush_ic_richpush_actionbar_back" />
21
</selector> 

+ 20 - 0
ipu-push-jpush-lib/res/drawable-hdpi/jpush_richpush_progressbar.xml

@ -0,0 +1,20 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
3
4
    <!-- 背景  gradient是渐变,corners定义的是圆角 -->
5
    <item android:id="@android:id/background">
6
        <shape>
7
            <solid android:color="#ffffff" />
8
        </shape>
9
    </item>
10
    
11
    <!-- 进度条 -->
12
    <item android:id="@android:id/progress">
13
        <clip>
14
            <shape>
15
                <solid android:color="#4393ea" />
16
            </shape>
17
        </clip>
18
    </item>
19
20
</layer-list>

BIN
ipu-push-jpush-lib/res/drawable-mdpi/ic_launcher.png


BIN
ipu-push-jpush-lib/res/drawable-xhdpi/ic_launcher.png


+ 15 - 0
ipu-push-jpush-lib/res/layout/jpush_popwin_layout.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout
3
    xmlns:android="http://schemas.android.com/apk/res/android"
4
    android:id="@+id/popLayoutId"
5
    style="@style/MyDialogStyle"
6
    android:orientation="vertical"
7
    android:layout_width="280dp"
8
    android:layout_height="250dp" >
9
10
        <WebView
11
            android:layout_width="match_parent"
12
            android:layout_height="match_parent"
13
            android:id="@+id/wvPopwin"/>
14
15
</LinearLayout>

+ 59 - 0
ipu-push-jpush-lib/res/layout/jpush_webview_layout.xml

@ -0,0 +1,59 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<cn.jpush.android.ui.FullScreenView xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:id="@+id/actionbarLayoutId"
4
    android:layout_width="match_parent"
5
    android:layout_height="match_parent"
6
    android:orientation="vertical" >
7
8
    <RelativeLayout
9
        android:id="@+id/rlRichpushTitleBar"
10
        android:layout_width="match_parent"
11
        android:layout_height="40.0dp"
12
        android:background="#29313a">
13
14
        <ImageButton
15
            android:id="@+id/imgRichpushBtnBack"
16
            android:layout_width="wrap_content"
17
            android:layout_height="wrap_content"
18
            android:layout_centerVertical="true"
19
            android:layout_marginLeft="9dp"
20
            android:layout_marginRight="10dp"
21
            android:background="@drawable/jpush_richpush_btn_selector" />
22
23
        <ImageView
24
            android:id="@+id/imgView"
25
            android:layout_width="wrap_content"
26
            android:layout_height="wrap_content"
27
            android:layout_centerVertical="true"
28
            android:layout_toRightOf="@id/imgRichpushBtnBack"
29
            android:clickable="false"
30
            android:src="@drawable/jpush_ic_richpush_actionbar_divider" />
31
32
        <TextView
33
            android:id="@+id/tvRichpushTitle"
34
            android:layout_width="wrap_content"
35
            android:layout_height="wrap_content"
36
            android:layout_centerVertical="true"
37
            android:layout_marginLeft="7dp"
38
            android:layout_marginRight="5dp"
39
            android:layout_toRightOf="@id/imgView"
40
            android:clickable="false"
41
            android:text=" "
42
            android:textSize="20sp"
43
            android:textColor="#ffffff" />
44
    </RelativeLayout>
45
46
    <ProgressBar
47
        android:id="@+id/pushPrograssBar"
48
        android:layout_width="match_parent"
49
        android:layout_height="1dp"
50
        android:progress="0"
51
        android:progressDrawable="@drawable/jpush_richpush_progressbar"
52
        style="?android:attr/progressBarStyleHorizontal" />
53
    <WebView
54
        android:layout_width="match_parent"
55
        android:layout_height="match_parent"
56
        android:id="@+id/fullWebView"
57
        android:background="#000000" />
58
59
</cn.jpush.android.ui.FullScreenView>

+ 11 - 0
ipu-push-jpush-lib/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10

11
</resources>

+ 12 - 0
ipu-push-jpush-lib/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11

12
</resources>

+ 13 - 0
ipu-push-jpush-lib/res/values/jpush_style.xml

@ -0,0 +1,13 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources xmlns:android="http://schemas.android.com/apk/res/android">
3
    <style name="MyDialogStyle">
4
        <item name="android:windowBackground">@android:color/transparent</item>
5
        <item name="android:windowFrame">@null</item>
6
        <item name="android:windowNoTitle">true</item>
7
        <item name="android:windowIsFloating">true</item>
8
        <item name="android:windowIsTranslucent">true</item>
9
        <item name="android:windowContentOverlay">@null</item>
10
        <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
11
        <item name="android:backgroundDimEnabled">true</item>
12
    </style>
13
</resources>

+ 5 - 0
ipu-push-jpush-lib/res/values/strings.xml

@ -0,0 +1,5 @@
1
<resources>
2
3
    <string name="app_name">ipu-push-jpush</string>
4
5
</resources>

+ 20 - 0
ipu-push-jpush-lib/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2

3
    <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14

15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19

20
</resources>

+ 10 - 0
ipu-scan-lib/.classpath

@ -0,0 +1,10 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
4
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
5
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6
	<classpathentry exported="true" kind="lib" path="libs/scan-code.jar"/>
7
	<classpathentry kind="src" path="src"/>
8
	<classpathentry kind="src" path="gen"/>
9
	<classpathentry kind="output" path="bin/classes"/>
10
</classpath>

+ 3 - 0
ipu-scan-lib/.gitignore

@ -0,0 +1,3 @@
1
/.settings/
2
/gen/
3
/bin/

+ 33 - 0
ipu-scan-lib/.project

@ -0,0 +1,33 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>ipu-scan</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
		<buildCommand>
19
			<name>org.eclipse.jdt.core.javabuilder</name>
20
			<arguments>
21
			</arguments>
22
		</buildCommand>
23
		<buildCommand>
24
			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25
			<arguments>
26
			</arguments>
27
		</buildCommand>
28
	</buildSpec>
29
	<natures>
30
		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31
		<nature>org.eclipse.jdt.core.javanature</nature>
32
	</natures>
33
</projectDescription>

+ 49 - 0
ipu-scan-lib/AndroidManifest.xml

@ -0,0 +1,49 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    package="com.ai.ipu.scan"
4
    android:versionCode="1"
5
    android:versionName="1.0" >
6
7
    <uses-sdk
8
        android:minSdkVersion="8"
9
        android:targetSdkVersion="21" />
10
    
11
    <uses-permission android:name="android.permission.CAMERA"/>
12
    <uses-permission android:name="android.permission.VIBRATE"/>
13
    <uses-permission android:name="android.permission.FLASHLIGHT"/>
14
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
15
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
16
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
17
    
18
    <application
19
        android:allowBackup="false"
20
        android:label="@string/app_name"
21
        android:theme="@style/AppTheme" 
22
        android:hardwareAccelerated="true">
23
    
24
     <activity
25
            android:name="com.ai.ipu.scan.activity.CaptureSingleActivity"
26
            android:configChanges="orientation|keyboardHidden"   
27
            android:screenOrientation="portrait" >
28
     </activity>
29
     
30
      <activity
31
            android:name="com.ai.ipu.scan.activity.CaptureMultipleActivity"
32
            android:configChanges="orientation|keyboardHidden"   
33
            android:screenOrientation="portrait" >
34
     </activity>
35
     
36
         <activity
37
            android:name="com.ai.ipu.scan.test.TestActivity"
38
            android:configChanges="orientation|keyboardHidden"   
39
            android:screenOrientation="portrait" >
40
          <intent-filter>
41
                <action android:name="android.intent.action.MAIN" />
42
43
                <category android:name="android.intent.category.LAUNCHER" />
44
            </intent-filter>
45
     </activity>
46
        
47
     </application>
48
49
</manifest>

BIN
ipu-scan-lib/libs/ipu-scan-3.0.jar


BIN
ipu-scan-lib/libs/scan-code.jar


+ 20 - 0
ipu-scan-lib/proguard-project.txt

@ -0,0 +1,20 @@
1
# To enable ProGuard in your project, edit project.properties
2
# to define the proguard.config property as described in that file.
3
#
4
# Add project specific ProGuard rules here.
5
# By default, the flags in this file are appended to flags specified
6
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7
# You can edit the include path and order by changing the ProGuard
8
# include property in project.properties.
9
#
10
# For more details, see
11
#   http://developer.android.com/guide/developing/tools/proguard.html
12
13
# Add any project specific keep options here:
14
15
# If your project uses WebView with JS, uncomment the following
16
# and specify the fully qualified class name to the JavaScript interface
17
# class:
18
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19
#   public *;
20
#}

+ 16 - 0
ipu-scan-lib/project.properties

@ -0,0 +1,16 @@
1
# This file is automatically generated by Android Tools.
2
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3
#
4
# This file must be checked in Version Control Systems.
5
#
6
# To customize properties used by the Ant build system edit
7
# "ant.properties", and override values to adapt the script to your
8
# project structure.
9
#
10
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12
13
# Project target.
14
target=android-19
15
android.library=true
16
android.library.reference.1=../../ipu-guide/ipu-mobile-common

+ 5 - 0
ipu-scan-lib/res/drawable/scan_cancel.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<selector xmlns:android="http://schemas.android.com/apk/res/android">  
3
    <item android:drawable="@drawable/scan_cancel_normal" android:state_pressed="false"/>  
4
    <item android:drawable="@drawable/scan_cancel_press" android:state_pressed="true"/>  
5
</selector>

BIN
ipu-scan-lib/res/drawable/scan_cancel_normal.png


BIN
ipu-scan-lib/res/drawable/scan_cancel_press.png


BIN
ipu-scan-lib/res/drawable/scan_flashlight_off.png


BIN
ipu-scan-lib/res/drawable/scan_flashlight_on.png


BIN
ipu-scan-lib/res/drawable/scan_photoalbum.png


+ 74 - 0
ipu-scan-lib/res/layout/activity_scan_multiple.xml

@ -0,0 +1,74 @@
1
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
    xmlns:tools="http://schemas.android.com/tools"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    tools:context="com.ipu.scan.ScanActivity" >
6
    
7
            
8
	 <SurfaceView
9
        android:id="@+id/preview_view"
10
        android:layout_width="wrap_content"
11
        android:layout_height="match_parent"
12
        android:layout_gravity="center" />
13
	 
14
	 <LinearLayout 
15
	     android:layout_width="match_parent"
16
	     android:layout_height="match_parent"
17
	     android:orientation="vertical">
18
19
	    <RelativeLayout 
20
	        android:id="@+id/rl_viewfinder"
21
	        android:layout_width="match_parent"
22
	        android:layout_height="wrap_content"
23
	        android:layout_gravity="center">
24
		
25
		        <ImageButton
26
		            android:id="@+id/btn_cancel_scan"
27
		            android:layout_width="wrap_content"
28
		            android:layout_height="wrap_content"
29
		            android:layout_alignParentLeft="true"
30
		            android:layout_alignParentTop="true"
31
		            android:src="@drawable/scan_cancel_normal" />
32
		        
33
		        <Button 
34
		            android:id="@+id/btn_call_result"
35
		            android:layout_width="wrap_content"
36
		            android:layout_height="wrap_content"
37
		            android:layout_alignParentTop="true"
38
		            android:layout_centerInParent="true"
39
		            android:text="返回结果集"
40
		            android:textSize="23sp"/>
41
		
42
		        <ImageButton
43
		            android:id="@+id/btn_flashlight"
44
		            android:layout_width="wrap_content"
45
		            android:layout_height="wrap_content"
46
		            android:layout_alignParentRight="true"
47
		            android:layout_alignParentTop="true"
48
		            android:src="@drawable/scan_flashlight_off" />
49
		
50
		        <com.ai.ipu.scan.view.ViewfinderView
51
			        android:id="@+id/viewfinder_view"
52
			        android:layout_width="wrap_content"
53
			        android:layout_height="wrap_content"
54
			        />
55
		    </RelativeLayout>
56
		    
57
	    <RelativeLayout 
58
	        android:layout_width="match_parent"
59
	        android:layout_height="0dp"
60
	        android:layout_weight="1">
61
	              
62
	      <ListView 
63
		   	    android:id="@+id/list_scan_result"
64
		   	    android:layout_width="match_parent"
65
		   	    android:background="@android:color/white"
66
		   	    android:layout_height="match_parent">
67
		   	</ListView>
68
	        
69
	    </RelativeLayout>
70
	  
71
		   	
72
	 </LinearLayout>
73
74
</RelativeLayout>

+ 14 - 0
ipu-scan-lib/res/layout/activity_test.xml

@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="vertical" >
6
    
7
    <Button 
8
        android:id="@+id/btn_dynamic"
9
        android:layout_width="wrap_content"
10
        android:layout_height="wrap_content"
11
        android:text="动态化打开aty"/>
12
    
13
14
</LinearLayout>

+ 41 - 0
ipu-scan-lib/res/layout/item_scan_result.xml

@ -0,0 +1,41 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="horizontal" >
6
    
7
    <LinearLayout 
8
        android:layout_width="0dp"
9
        android:layout_weight="1"
10
        android:layout_height="match_parent">
11
           
12
    <TextView
13
        android:id="@+id/tv_scan_result"
14
        android:layout_width="wrap_content"
15
        android:layout_height="wrap_content"
16
        android:textSize="18sp"
17
        android:textColor="@android:color/darker_gray"
18
        android:gravity="center_vertical"
19
        android:layout_margin="3dp"
20
        android:singleLine="true"
21
        android:layout_gravity="center_vertical"/>
22
        
23
    </LinearLayout>
24
    
25
    <LinearLayout 
26
        android:layout_width="wrap_content"
27
        android:layout_height="match_parent">
28
            
29
    <Button 
30
        android:id="@+id/btn_delete"
31
        android:layout_width="wrap_content"
32
        android:layout_height="wrap_content"
33
        android:text="删除"
34
        android:textSize="20sp"
35
        android:background="@android:color/transparent"
36
        android:layout_gravity="right|center_vertical"
37
        android:gravity="center"/>
38
        
39
    </LinearLayout>
40
41
</LinearLayout>

+ 50 - 0
ipu-scan-lib/res/layout/scan_zxing_capture.xml

@ -0,0 +1,50 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent" >
5

6
    <SurfaceView
7
        android:id="@+id/preview_view"
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:layout_gravity="center" />
11
    
12
    <RelativeLayout
13
        android:layout_width="match_parent"
14
        android:layout_height="match_parent"
15
        android:layout_gravity="center">
16

17
        <ImageButton
18
            android:id="@+id/btn_cancel_scan"
19
            android:layout_width="60dip"
20
            android:layout_height="60dip"
21
            android:layout_alignParentLeft="true"
22
            android:layout_alignParentTop="true"
23
            android:src="@drawable/scan_cancel_normal"
24
            android:scaleType="fitCenter" />
25

26
        <ImageButton
27
            android:id="@+id/btn_flashlight"
28
            android:layout_width="60dip"
29
            android:layout_height="60dip"
30
            android:layout_centerHorizontal="true"
31
            android:layout_alignParentTop="true"
32
            android:src="@drawable/scan_flashlight_off"
33
            android:scaleType="fitCenter" />
34
        
35
         <ImageButton
36
            android:id="@+id/btn_photoalbum"
37
            android:layout_width="60dip"
38
            android:layout_height="60dip"
39
            android:layout_alignParentRight="true"
40
            android:layout_alignParentTop="true"
41
            android:src="@drawable/scan_photoalbum"
42
            android:scaleType="fitCenter" />
43

44
        <com.ai.ipu.scan.view.ViewfinderView
45
	        android:id="@+id/viewfinder_view"
46
	        android:layout_width="wrap_content"
47
	        android:layout_height="wrap_content"/>
48

49
    </RelativeLayout>
50
</FrameLayout>

BIN
ipu-scan-lib/res/raw/beep.ogg


+ 11 - 0
ipu-scan-lib/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10
11
</resources>

+ 12 - 0
ipu-scan-lib/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="android:Theme.Light">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11
12
</resources>

+ 32 - 0
ipu-scan-lib/res/values/scan_zxing_colors.xml

@ -0,0 +1,32 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<resources>
3
  
4
  <color name="bg_color">#EDEDED</color>
5
  <color name="contents_text">#ff000000</color>
6
  <color name="encode_view">#ffffffff</color>
7
  <color name="help_button_view">#ffcccccc</color>
8
  <color name="help_view">#ff404040</color>
9
  <color name="possible_result_points">#c0ffff00</color>  
10
  <color name="result_image_border">#ffffffff</color>
11
  <color name="result_minor_text">#ffc0c0c0</color>
12
  <color name="result_points">#c000ff00</color>
13
  <color name="result_text">#ffffffff</color>
14
  <color name="result_view">#b0000000</color>
15
  <color name="sbc_header_text">#ff808080</color>
16
  <color name="sbc_header_view">#ffffffff</color>
17
  <color name="sbc_list_item">#fffff0e0</color>
18
  <color name="sbc_layout_view">#ffffffff</color>
19
  <color name="sbc_page_number_text">#ff000000</color>
20
  <color name="sbc_snippet_text">#ff4b4b4b</color>
21
  <color name="share_text">#ff000000</color>
22
  <color name="share_view">#ffffffff</color>
23
  <color name="status_view">#50000000</color>
24
  <color name="status_text">#ffffffff</color>
25
  <color name="transparent">#00000000</color>
26
  <color name="viewfinder_frame">#ff000000</color>
27
  <color name="viewfinder_laser">#ffff0000</color>
28
  <color name="viewfinder_mask">#60000000</color>
29
  <color name="header">#58567D</color>
30
  <color name="grgray">#686868</color>
31
      
32
</resources>

+ 31 - 0
ipu-scan-lib/res/values/scan_zxing_ids.xml

@ -0,0 +1,31 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
 Copyright (C) 2008 ZXing authors
4
5
 Licensed under the Apache License, Version 2.0 (the "License");
6
 you may not use this file except in compliance with the License.
7
 You may obtain a copy of the License at
8
9
      http://www.apache.org/licenses/LICENSE-2.0
10
11
 Unless required by applicable law or agreed to in writing, software
12
 distributed under the License is distributed on an "AS IS" BASIS,
13
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 See the License for the specific language governing permissions and
15
 limitations under the License.
16
 -->
17
<resources>
18
  <!-- Messages IDs -->
19
  <item type="id" name="auto_focus"/>
20
  <item type="id" name="decode"/>
21
  <item type="id" name="decode_failed"/>
22
  <item type="id" name="decode_succeeded"/>
23
  <item type="id" name="encode_failed"/>
24
  <item type="id" name="encode_succeeded"/>
25
  <item type="id" name="launch_product_query"/>
26
  <item type="id" name="quit"/>
27
  <item type="id" name="restart_preview"/>
28
  <item type="id" name="return_scan_result"/>
29
  <item type="id" name="search_book_contents_failed"/>
30
  <item type="id" name="search_book_contents_succeeded"/>
31
</resources>

+ 6 - 0
ipu-scan-lib/res/values/strings.xml

@ -0,0 +1,6 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
4
    <string name="app_name">Ipu-scan</string>
5
6
</resources>

+ 20 - 0
ipu-scan-lib/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2
3
     <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14
15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19
20
</resources>

+ 1 - 1
show-client/build/build.properties

@ -24,7 +24,7 @@ key_alias=showshow
24 24
key_alias_password=showshow
25 25
26 26
#######依赖工程相关配置#######
27
libraries=${project_home}/../../ipu-guide/ipu-mobile-libs,${project_home}/../../ipu-guide/ipu-mobile-common
27
libraries=${project_home}/../ipu-mobile-libs,${project_home}/../ipu-mobile-common,${project_home}/../ipu-push-jpush,${project_home}/../ipu-scan,${project_home}/../ipu-map-bd
28 28
library_packages=com.ai.ipu.mobile:com.ai.ipu.jpush:com.ai.ipu.scan:com.ai.ipu.map.bd
29 29
#######其他配置#######
30 30
#log路径