Commit 0c3f8e86af4a62e23c6f5f0c3169b77c80742824

Authored by 赵康
Exists in master

Merge branch 'master' of http://123.59.74.8/document/spreader

Showing 101 changed files Side-by-side Diff

1 1 ios/SpreadDemo/SpreadDemo.xcodeproj/project.xcworkspace/xcuserdata/gump.xcuserdatad/UserInterfaceState.xcuserstate
2   -**/.DS_Store
3 2 \ No newline at end of file
  3 +**/.DS_Store
  4 +*/**/bin/**/*
  5 +*/**/gen/**/*
4 6 \ No newline at end of file
android/PromoterDemo/.gitignore
... ... @@ -0,0 +1,2 @@
  1 +/gen
  2 +/bin
android/PromoterDemo/AndroidManifest.xml
... ... @@ -12,6 +12,8 @@
12 12 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
13 13 <uses-permission android:name="android.permission.BLUETOOTH" />
14 14 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  15 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  16 + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
15 17 <application
16 18 android:allowBackup="true"
17 19 android:icon="@drawable/ic_launcher"
android/PromoterDemo/bin/AndroidManifest.xml
... ... @@ -1,39 +0,0 @@
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3   - package="com.example.promoterdemo"
4   - android:versionCode="1"
5   - android:versionName="1.0" >
6   -
7   - <uses-sdk
8   - android:minSdkVersion="8"
9   - android:targetSdkVersion="19" />
10   - <uses-permission android:name="android.permission.INTERNET" />
11   - <uses-permission android:name="android.permission.WRITE_SETTINGS" />
12   - <uses-permission android:name="android.permission.READ_PHONE_STATE" />
13   - <uses-permission android:name="android.permission.BLUETOOTH" />
14   - <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
15   - <application
16   - android:allowBackup="true"
17   - android:icon="@drawable/ic_launcher"
18   - android:label="@string/app_name"
19   - android:theme="@style/AppTheme" >
20   - <activity
21   - android:name="com.example.promoterdemo.MainActivity"
22   - android:screenOrientation="portrait"
23   - android:label="@string/app_name" >
24   - <intent-filter>
25   - <action android:name="android.intent.action.MAIN" />
26   -
27   - <category android:name="android.intent.category.LAUNCHER" />
28   - </intent-filter>
29   - </activity>
30   - <activity
31   - android:name="com.gumptech.promoter.activity.PromoterActivity"
32   - android:label="@string/app_name"
33   - android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
34   - android:screenOrientation="landscape" >
35   - </activity>
36   -
37   - </application>
38   -
39   -</manifest>
android/PromoterDemo/bin/PromoterDemo.apk
No preview for this file type
android/PromoterDemo/bin/R.txt
... ... @@ -1,48 +0,0 @@
1   -int color already_verification 0x7f040005
2   -int color black 0x7f040001
3   -int color have_reward_color 0x7f040002
4   -int color no_reward_color 0x7f040003
5   -int color validate 0x7f040004
6   -int color white 0x7f040000
7   -int dimen activity_horizontal_margin 0x7f050000
8   -int dimen activity_vertical_margin 0x7f050001
9   -int drawable close_image 0x7f020000
10   -int drawable confirm 0x7f020001
11   -int drawable confirm_grey 0x7f020002
12   -int drawable edite_hint 0x7f020003
13   -int drawable ic_launcher 0x7f020004
14   -int drawable instructions 0x7f020005
15   -int drawable left_image 0x7f020006
16   -int drawable middle_instructions 0x7f020007
17   -int drawable progress_bar 0x7f020008
18   -int drawable progress_bar_background 0x7f020009
19   -int drawable progressbar_horizontal_1 0x7f02000a
20   -int drawable promoter_linked 0x7f02000b
21   -int drawable reward 0x7f02000c
22   -int drawable reward_grey 0x7f02000d
23   -int drawable right_down 0x7f02000e
24   -int drawable right_image 0x7f02000f
25   -int drawable right_top 0x7f020010
26   -int id action_settings 0x7f09000e
27   -int id click_textview 0x7f090000
28   -int id close_image 0x7f090006
29   -int id confirm 0x7f09000d
30   -int id edittext 0x7f09000c
31   -int id edittext_layout 0x7f09000b
32   -int id left_imge 0x7f090001
33   -int id middle_instructions 0x7f09000a
34   -int id prgress_bar 0x7f090008
35   -int id progress_instructions 0x7f090007
36   -int id promoter_linked 0x7f090005
37   -int id reward 0x7f090009
38   -int id right_down_imge 0x7f090004
39   -int id right_imge 0x7f090002
40   -int id right_top_imge 0x7f090003
41   -int layout activity_main 0x7f030000
42   -int layout activity_promoter 0x7f030001
43   -int menu main 0x7f080000
44   -int string action_settings 0x7f060001
45   -int string app_name 0x7f060000
46   -int string hello_world 0x7f060002
47   -int style AppBaseTheme 0x7f070000
48   -int style AppTheme 0x7f070001
android/PromoterDemo/bin/classes.dex
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/BuildConfig.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/MainActivity.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$attr.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$color.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$dimen.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$drawable.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$id.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$layout.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$menu.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$string.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R$style.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterdemo/R.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$color.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$dimen.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$drawable.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$id.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$layout.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R$string.class
No preview for this file type
android/PromoterDemo/bin/classes/com/example/promoterrelease/R.class
No preview for this file type
android/PromoterDemo/bin/dexedLibs/PromoterSdk_proguard-63e08a920939c1c1ad99b9ddae01f591.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/PromoterSdk_proguard-a357d717479728fc45728b48c135b76c.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/android-support-v4-2192f9d58917b016fa7f492e39b0097a.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/android-support-v4-2b8aed04d68815795a4b53e70b49f1a2.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/gson-2.2.4-55bae087cf5bded4bac1641289a95070.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/gson-2.2.4-6799e97176902f46235b7f524668754e.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/gson-2.2.4-bc17559788b3a104fe95b2ac9b6b60ab.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/library-5634197b6c455322017ac6d6a3e0bc24.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/library-ea7c52d73b5503fb9c59201a4c279d57.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/promoterrelease-11bf23bea9337a463ed9ec444ac0dd67.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/promoterrelease-524f5906c8683bbcd3d3ad4807094566.jar
No preview for this file type
android/PromoterDemo/bin/dexedLibs/promotersdk-af12794b62c03556f68fa7649487d51c.jar
No preview for this file type
android/PromoterDemo/bin/jarlist.cache
... ... @@ -1,5 +0,0 @@
1   -# cache for current jar dependency. DO NOT EDIT.
2   -# format is <lastModified> <length> <SHA-1> <path>
3   -# Encoding is UTF-8
4   -1452501981264 484258 bd6479f5dd592790607e0504e66e0f31c2b4d308 D:\workspace\spreader\android\PromoterDemo\libs\android-support-v4.jar
5   -1452510354966 484258 bd6479f5dd592790607e0504e66e0f31c2b4d308 D:\workspace\spreader\android\PromoterRelease\libs\android-support-v4.jar
android/PromoterDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png

5.82 KB

android/PromoterDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png

3.04 KB

android/PromoterDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png

9.14 KB

android/PromoterDemo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png

17.5 KB

android/PromoterDemo/bin/resources.ap_
No preview for this file type
android/PromoterDemo/default.properties
... ... @@ -0,0 +1 @@
  1 +proguard.config=proguard.cfg \u52A0\u4E0A
0 2 \ No newline at end of file
android/PromoterDemo/gen/com/example/promoterdemo/BuildConfig.java
... ... @@ -1,6 +0,0 @@
1   -/** Automatically generated file. DO NOT MODIFY */
2   -package com.example.promoterdemo;
3   -
4   -public final class BuildConfig {
5   - public final static boolean DEBUG = true;
6   -}
7 0 \ No newline at end of file
android/PromoterDemo/gen/com/example/promoterdemo/R.java
... ... @@ -1,119 +0,0 @@
1   -/* AUTO-GENERATED FILE. DO NOT MODIFY.
2   - *
3   - * This class was automatically generated by the
4   - * aapt tool from the resource data it found. It
5   - * should not be modified by hand.
6   - */
7   -
8   -package com.example.promoterdemo;
9   -
10   -public final class R {
11   - public static final class attr {
12   - }
13   - public static final class color {
14   - /** 验证
15   - */
16   - public static final int already_verification=0x7f040005;
17   - public static final int black=0x7f040001;
18   - /** 有奖励
19   - */
20   - public static final int have_reward_color=0x7f040002;
21   - /** 没奖励
22   - */
23   - public static final int no_reward_color=0x7f040003;
24   - /** 验证
25   - */
26   - public static final int validate=0x7f040004;
27   - public static final int white=0x7f040000;
28   - }
29   - public static final class dimen {
30   - /**
31   - Customize dimensions originally defined in res/values/dimens.xml (such as
32   - screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
33   -
34   - Default screen margins, per the Android Design guidelines.
35   -
36   - Customize dimensions originally defined in res/values/dimens.xml (such as
37   - screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
38   -
39   - */
40   - public static final int activity_horizontal_margin=0x7f050000;
41   - public static final int activity_vertical_margin=0x7f050001;
42   - }
43   - public static final class drawable {
44   - public static final int close_image=0x7f020000;
45   - public static final int confirm=0x7f020001;
46   - public static final int confirm_grey=0x7f020002;
47   - public static final int edite_hint=0x7f020003;
48   - public static final int ic_launcher=0x7f020004;
49   - public static final int instructions=0x7f020005;
50   - public static final int left_image=0x7f020006;
51   - public static final int middle_instructions=0x7f020007;
52   - public static final int progress_bar=0x7f020008;
53   - public static final int progress_bar_background=0x7f020009;
54   - public static final int progressbar_horizontal_1=0x7f02000a;
55   - public static final int promoter_linked=0x7f02000b;
56   - public static final int reward=0x7f02000c;
57   - public static final int reward_grey=0x7f02000d;
58   - public static final int right_down=0x7f02000e;
59   - public static final int right_image=0x7f02000f;
60   - public static final int right_top=0x7f020010;
61   - }
62   - public static final class id {
63   - public static final int action_settings=0x7f09000e;
64   - public static final int click_textview=0x7f090000;
65   - public static final int close_image=0x7f090006;
66   - public static final int confirm=0x7f09000d;
67   - public static final int edittext=0x7f09000c;
68   - public static final int edittext_layout=0x7f09000b;
69   - public static final int left_imge=0x7f090001;
70   - public static final int middle_instructions=0x7f09000a;
71   - public static final int prgress_bar=0x7f090008;
72   - public static final int progress_instructions=0x7f090007;
73   - public static final int promoter_linked=0x7f090005;
74   - public static final int reward=0x7f090009;
75   - public static final int right_down_imge=0x7f090004;
76   - public static final int right_imge=0x7f090002;
77   - public static final int right_top_imge=0x7f090003;
78   - }
79   - public static final class layout {
80   - public static final int activity_main=0x7f030000;
81   - public static final int activity_promoter=0x7f030001;
82   - }
83   - public static final class menu {
84   - public static final int main=0x7f080000;
85   - }
86   - public static final class string {
87   - public static final int action_settings=0x7f060001;
88   - public static final int app_name=0x7f060000;
89   - public static final int hello_world=0x7f060002;
90   - }
91   - public static final class style {
92   - /**
93   - Base application theme, dependent on API level. This theme is replaced
94   - by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
95   -
96   -
97   - Theme customizations available in newer API levels can go in
98   - res/values-vXX/styles.xml, while customizations related to
99   - backward-compatibility can go here.
100   -
101   -
102   - Base application theme for API 11+. This theme completely replaces
103   - AppBaseTheme from res/values/styles.xml on API 11+ devices.
104   -
105   - API 11 theme customizations can go here.
106   -
107   - Base application theme for API 14+. This theme completely replaces
108   - AppBaseTheme from BOTH res/values/styles.xml and
109   - res/values-v11/styles.xml on API 14+ devices.
110   -
111   - API 14 theme customizations can go here.
112   - */
113   - public static final int AppBaseTheme=0x7f070000;
114   - /** Application theme.
115   - All customizations that are NOT specific to a particular API-level can go here.
116   - */
117   - public static final int AppTheme=0x7f070001;
118   - }
119   -}
android/PromoterDemo/gen/com/example/promoterrelease/R.java
... ... @@ -1,62 +0,0 @@
1   -/* AUTO-GENERATED FILE. DO NOT MODIFY.
2   - *
3   - * This class was automatically generated by the
4   - * aapt tool from the resource data it found. It
5   - * should not be modified by hand.
6   - */
7   -package com.example.promoterrelease;
8   -
9   -public final class R {
10   - public static final class color {
11   - public static final int already_verification = 0x7f040005;
12   - public static final int black = 0x7f040001;
13   - public static final int have_reward_color = 0x7f040002;
14   - public static final int no_reward_color = 0x7f040003;
15   - public static final int validate = 0x7f040004;
16   - public static final int white = 0x7f040000;
17   - }
18   - public static final class dimen {
19   - public static final int activity_horizontal_margin = 0x7f050000;
20   - }
21   - public static final class drawable {
22   - public static final int close_image = 0x7f020000;
23   - public static final int confirm = 0x7f020001;
24   - public static final int confirm_grey = 0x7f020002;
25   - public static final int edite_hint = 0x7f020003;
26   - public static final int instructions = 0x7f020005;
27   - public static final int left_image = 0x7f020006;
28   - public static final int middle_instructions = 0x7f020007;
29   - public static final int progress_bar = 0x7f020008;
30   - public static final int progress_bar_background = 0x7f020009;
31   - public static final int progressbar_horizontal_1 = 0x7f02000a;
32   - public static final int promoter_linked = 0x7f02000b;
33   - public static final int reward = 0x7f02000c;
34   - public static final int reward_grey = 0x7f02000d;
35   - public static final int right_down = 0x7f02000e;
36   - public static final int right_image = 0x7f02000f;
37   - public static final int right_top = 0x7f020010;
38   - }
39   - public static final class id {
40   - public static final int close_image = 0x7f090006;
41   - public static final int confirm = 0x7f09000d;
42   - public static final int edittext = 0x7f09000c;
43   - public static final int edittext_layout = 0x7f09000b;
44   - public static final int left_imge = 0x7f090001;
45   - public static final int middle_instructions = 0x7f09000a;
46   - public static final int prgress_bar = 0x7f090008;
47   - public static final int progress_instructions = 0x7f090007;
48   - public static final int promoter_linked = 0x7f090005;
49   - public static final int reward = 0x7f090009;
50   - public static final int right_down_imge = 0x7f090004;
51   - public static final int right_imge = 0x7f090002;
52   - public static final int right_top_imge = 0x7f090003;
53   - }
54   - public static final class layout {
55   - public static final int activity_promoter = 0x7f030001;
56   - }
57   - public static final class string {
58   - public static final int action_settings = 0x7f060001;
59   - public static final int app_name = 0x7f060000;
60   - public static final int hello_world = 0x7f060002;
61   - }
62   -}
android/PromoterDemo/proguard.cfg
... ... @@ -0,0 +1,36 @@
  1 +-optimizationpasses&nbsp; //->设置混淆的压缩比率 0 ~ 7
  2 +-dontusemixedcaseclassnames&nbsp; //Aa aA
  3 +-dontskipnonpubliclibraryclasses //->如果应用程序引入的有jar包,并且想混淆jar包里面的class
  4 +-dontpreverify&nbsp;&nbsp; &nbsp;//
  5 +-verbose //->混淆后生产映射文件 map 类名->转化后类名的映射
  6 +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* //->混淆采用的算法.
  7 +
  8 +-keep public class * extends android.app.Activity&nbsp; //->所有activity的子类不要去混淆
  9 +-keep public class * extends android.app.Application
  10 +-keep public class * extends android.app.Service
  11 +-keep public class * extends android.content.BroadcastReceiver
  12 +-keep public class * extends android.content.ContentProvider
  13 +-keep public class com.android.vending.licensing.ILicensingService
  14 +
  15 +-keepclasseswithmembernames class * {
  16 +&nbsp;&nbsp;&nbsp; native <methods>; //-> 所有native的方法不能去混淆.
  17 +}
  18 +
  19 +-keepclasseswithmembernames class * {
  20 +&nbsp;&nbsp;&nbsp; public <init>(android.content.Context, android.util.AttributeSet);
  21 +}
  22 +
  23 +-keepclasseswithmembernames class * {
  24 +&nbsp;&nbsp;&nbsp; public <init>(android.content.Context, android.util.AttributeSet, int);
  25 +&nbsp;&nbsp;&nbsp; // -->某些构造方法不能去混淆
  26 +}
  27 +
  28 +-keepclassmembers enum * { //&nbsp; -> 枚举类不能去混淆.
  29 +&nbsp;&nbsp;&nbsp; public static **[] values();
  30 +&nbsp;&nbsp;&nbsp; public static ** valueOf(java.lang.String);
  31 +}
  32 +
  33 +-keep class * implements android.os.Parcelable {&nbsp; //-> aidl文件不能去混淆.
  34 +&nbsp; public static final android.os.Parcelable$Creator *;
  35 +}
  36 +}
0 37 \ No newline at end of file
android/PromoterDemo/project.properties
... ... @@ -11,5 +11,5 @@
11 11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 12  
13 13 # Project target.
14   -target=android-17
  14 +target=android-19
15 15 android.library.reference.1=..\\PromoterRelease
android/PromoterDemo/src/com/example/promoterdemo/MainActivity.java
1 1 package com.example.promoterdemo;
2   -import com.gumptech.promoter.Entrance;
  2 +import android.app.Activity;
3 3 import android.os.Bundle;
  4 +import android.util.Log;
4 5 import android.view.View;
5 6 import android.view.View.OnClickListener;
6 7 import android.widget.TextView;
7   -import android.app.Activity;
  8 +import com.gumptech.promoter.util.Constant;
  9 +import com.gumptech.promoter.Entrance;
8 10 public class MainActivity extends Activity implements OnClickListener {
9 11 @Override
10 12 protected void onCreate(Bundle savedInstanceState) {
... ... @@ -12,11 +14,13 @@ public class MainActivity extends Activity implements OnClickListener {
12 14 setContentView(R.layout.activity_main);
13 15 TextView clickText=(TextView) findViewById(R.id.click_textview);
14 16 clickText.setOnClickListener(this);
  17 + Log.d("MainActivity", "VERSION_CODE="+Constant.VERSION_CODE);
15 18 }
16 19  
17 20 @Override
18 21 public void onClick(View v) {
19 22 // TODO Auto-generated method stub
20 23 Entrance.DoPromoter("1545402", "10022", "", "", this);
  24 +
21 25 }
22 26 }
android/PromoterRelease/.classpath
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>
  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="gen"/>
  7 + <classpathentry kind="output" path="bin/classes"/>
  8 +</classpath>
android/PromoterRelease/.gitignore
... ... @@ -0,0 +1,2 @@
  1 +/gen
  2 +/bin
android/PromoterRelease/AndroidManifest.xml
... ... @@ -11,7 +11,6 @@
11 11 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
12 12 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
13 13 <uses-permission android:name="android.permission.BLUETOOTH" />
14   - <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
15 14 <application
16 15 android:allowBackup="true"
17 16 >
android/PromoterRelease/bin/AndroidManifest.xml
... ... @@ -1,21 +0,0 @@
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3   - package="com.example.promoterrelease"
4   - android:versionCode="1"
5   - android:versionName="1.0" >
6   -
7   - <uses-sdk
8   - android:minSdkVersion="8"
9   - android:targetSdkVersion="19" />
10   - <uses-permission android:name="android.permission.INTERNET" />
11   - <uses-permission android:name="android.permission.WRITE_SETTINGS" />
12   - <uses-permission android:name="android.permission.READ_PHONE_STATE" />
13   - <uses-permission android:name="android.permission.BLUETOOTH" />
14   - <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
15   - <application
16   - android:allowBackup="true"
17   - >
18   -
19   - </application>
20   -
21   -</manifest>
android/PromoterRelease/bin/R.txt
... ... @@ -1,40 +0,0 @@
1   -int color already_verification 0x7f040005
2   -int color black 0x7f040001
3   -int color have_reward_color 0x7f040002
4   -int color no_reward_color 0x7f040003
5   -int color validate 0x7f040004
6   -int color white 0x7f040000
7   -int dimen activity_horizontal_margin 0x7f050000
8   -int drawable close_image 0x7f020000
9   -int drawable confirm 0x7f020001
10   -int drawable confirm_grey 0x7f020002
11   -int drawable edite_hint 0x7f020003
12   -int drawable instructions 0x7f020004
13   -int drawable left_image 0x7f020005
14   -int drawable middle_instructions 0x7f020006
15   -int drawable progress_bar 0x7f020007
16   -int drawable progress_bar_background 0x7f020008
17   -int drawable progressbar_horizontal_1 0x7f020009
18   -int drawable promoter_linked 0x7f02000a
19   -int drawable reward 0x7f02000b
20   -int drawable reward_grey 0x7f02000c
21   -int drawable right_down 0x7f02000d
22   -int drawable right_image 0x7f02000e
23   -int drawable right_top 0x7f02000f
24   -int id close_image 0x7f070005
25   -int id confirm 0x7f07000c
26   -int id edittext 0x7f07000b
27   -int id edittext_layout 0x7f07000a
28   -int id left_imge 0x7f070000
29   -int id middle_instructions 0x7f070009
30   -int id prgress_bar 0x7f070007
31   -int id progress_instructions 0x7f070006
32   -int id promoter_linked 0x7f070004
33   -int id reward 0x7f070008
34   -int id right_down_imge 0x7f070003
35   -int id right_imge 0x7f070001
36   -int id right_top_imge 0x7f070002
37   -int layout activity_promoter 0x7f030000
38   -int string action_settings 0x7f060001
39   -int string app_name 0x7f060000
40   -int string hello_world 0x7f060002
android/PromoterRelease/bin/classes/com/example/promoterrelease/BuildConfig.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$attr.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$color.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$dimen.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$drawable.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$id.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$layout.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R$string.class
No preview for this file type
android/PromoterRelease/bin/classes/com/example/promoterrelease/R.class
No preview for this file type
android/PromoterRelease/bin/jarlist.cache
... ... @@ -1,3 +0,0 @@
1   -# cache for current jar dependency. DO NOT EDIT.
2   -# format is <lastModified> <length> <SHA-1> <path>
3   -# Encoding is UTF-8
android/PromoterRelease/bin/promoterrelease.jar
No preview for this file type
android/PromoterRelease/bin/res/crunch/drawable-hdpi/close_image.png

4.33 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/confirm.png

7.03 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/confirm_grey.png

4.9 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/edite_hint.png

5.26 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/instructions.png

1.72 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/left_image.png

282 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/middle_instructions.png

3.61 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/progress_bar.png

3.15 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/progress_bar_background.png

1.46 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/promoter_linked.png

4.26 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/reward.png

12.4 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/reward_grey.png

2.88 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/right_down.png

130 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/right_image.png

324 KB

android/PromoterRelease/bin/res/crunch/drawable-hdpi/right_top.png

194 KB

android/PromoterRelease/gen/com/example/promoterrelease/BuildConfig.java
... ... @@ -1,6 +0,0 @@
1   -/** Automatically generated file. DO NOT MODIFY */
2   -package com.example.promoterrelease;
3   -
4   -public final class BuildConfig {
5   - public final static boolean DEBUG = true;
6   -}
7 0 \ No newline at end of file
android/PromoterRelease/gen/com/example/promoterrelease/R.java
... ... @@ -1,78 +0,0 @@
1   -/* AUTO-GENERATED FILE. DO NOT MODIFY.
2   - *
3   - * This class was automatically generated by the
4   - * aapt tool from the resource data it found. It
5   - * should not be modified by hand.
6   - */
7   -
8   -package com.example.promoterrelease;
9   -
10   -public final class R {
11   - public static final class attr {
12   - }
13   - public static final class color {
14   - /** 验证
15   - */
16   - public static int already_verification=0x7f040005;
17   - public static int black=0x7f040001;
18   - /** 有奖励
19   - */
20   - public static int have_reward_color=0x7f040002;
21   - /** 没奖励
22   - */
23   - public static int no_reward_color=0x7f040003;
24   - /** 验证
25   - */
26   - public static int validate=0x7f040004;
27   - public static int white=0x7f040000;
28   - }
29   - public static final class dimen {
30   - /**
31   - Customize dimensions originally defined in res/values/dimens.xml (such as
32   - screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
33   -
34   - */
35   - public static int activity_horizontal_margin=0x7f050000;
36   - }
37   - public static final class drawable {
38   - public static int close_image=0x7f020000;
39   - public static int confirm=0x7f020001;
40   - public static int confirm_grey=0x7f020002;
41   - public static int edite_hint=0x7f020003;
42   - public static int instructions=0x7f020004;
43   - public static int left_image=0x7f020005;
44   - public static int middle_instructions=0x7f020006;
45   - public static int progress_bar=0x7f020007;
46   - public static int progress_bar_background=0x7f020008;
47   - public static int progressbar_horizontal_1=0x7f020009;
48   - public static int promoter_linked=0x7f02000a;
49   - public static int reward=0x7f02000b;
50   - public static int reward_grey=0x7f02000c;
51   - public static int right_down=0x7f02000d;
52   - public static int right_image=0x7f02000e;
53   - public static int right_top=0x7f02000f;
54   - }
55   - public static final class id {
56   - public static int close_image=0x7f070005;
57   - public static int confirm=0x7f07000c;
58   - public static int edittext=0x7f07000b;
59   - public static int edittext_layout=0x7f07000a;
60   - public static int left_imge=0x7f070000;
61   - public static int middle_instructions=0x7f070009;
62   - public static int prgress_bar=0x7f070007;
63   - public static int progress_instructions=0x7f070006;
64   - public static int promoter_linked=0x7f070004;
65   - public static int reward=0x7f070008;
66   - public static int right_down_imge=0x7f070003;
67   - public static int right_imge=0x7f070001;
68   - public static int right_top_imge=0x7f070002;
69   - }
70   - public static final class layout {
71   - public static int activity_promoter=0x7f030000;
72   - }
73   - public static final class string {
74   - public static int action_settings=0x7f060001;
75   - public static int app_name=0x7f060000;
76   - public static int hello_world=0x7f060002;
77   - }
78   -}
android/PromoterRelease/libs/PromoterSdk_proguard.jar
No preview for this file type
android/PromoterRelease/libs/PromoterSdk_proguard_1.0.1.jar
No preview for this file type
android/PromoterRelease/libs/gson-2.2.4.jar
No preview for this file type
android/PromoterRelease/libs/library.jar
No preview for this file type
android/PromoterRelease/project.properties
... ... @@ -11,5 +11,5 @@
11 11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 12  
13 13 # Project target.
14   -target=android-17
  14 +target=android-19
15 15 android.library=true
android/PromoterRelease/res/drawable-hdpi/left_image.png

292 KB

android/PromoterRelease/res/drawable-hdpi/progress_instructions.png

1.56 KB

android/PromoterRelease/res/drawable-hdpi/right_down.png

133 KB

android/PromoterRelease/res/drawable-hdpi/right_image.png

332 KB

android/PromoterRelease/res/drawable-hdpi/right_top.png

200 KB

android/PromoterRelease/res/drawable-xhdpi/instructions.png.png

2.96 KB

android/PromoterRelease/res/drawable-xxhdpi/instructions.png.png

5.15 KB

android/PromoterRelease/res/layout/activity_promoter.xml
1 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 2 xmlns:tools="http://schemas.android.com/tools"
  3 + android:id="@+id/root_layout"
3 4 android:layout_width="match_parent"
4 5 android:layout_height="match_parent"
  6 + android:background="@color/bankground"
5 7 android:orientation="horizontal" >
6 8  
7 9 <!-- 左边宣传图片 -->
... ... @@ -10,8 +12,9 @@
10 12 android:id="@+id/left_imge"
11 13 android:layout_width="wrap_content"
12 14 android:layout_height="match_parent"
  15 + android:layout_alignParentLeft="true"
13 16 android:scaleType="fitXY"
14   - android:src="@drawable/left_image" />
  17 + />
15 18 <!-- 右边宣传图片 -->
16 19  
17 20 <ImageView
... ... @@ -20,25 +23,26 @@
20 23 android:layout_height="match_parent"
21 24 android:layout_toRightOf="@+id/left_imge"
22 25 android:scaleType="fitXY"
23   - android:visibility="gone"
24   - android:src="@drawable/right_image" />
  26 + android:visibility="gone" />
25 27 <!-- 右边上 -->
  28 +
26 29 <ImageView
27 30 android:id="@+id/right_top_imge"
28 31 android:layout_width="match_parent"
29 32 android:layout_height="match_parent"
30 33 android:layout_toRightOf="@+id/left_imge"
31 34 android:scaleType="fitXY"
32   - android:src="@drawable/right_top" />
33   - <!-- 右边上下-->
  35 + />
  36 + <!-- 右边上下 -->
  37 +
34 38 <ImageView
35 39 android:id="@+id/right_down_imge"
36 40 android:layout_width="match_parent"
37 41 android:layout_height="match_parent"
38   - android:layout_toRightOf="@+id/left_imge"
39 42 android:layout_below="@+id/right_top_imge"
  43 + android:layout_toRightOf="@+id/left_imge"
40 44 android:scaleType="fitXY"
41   - android:src="@drawable/right_down" />
  45 + />
42 46 <!-- 获取推广链接按钮 -->
43 47  
44 48 <Button
... ... @@ -47,10 +51,12 @@
47 51 android:layout_height="wrap_content"
48 52 android:layout_alignParentBottom="true"
49 53 android:layout_alignParentLeft="true"
50   - android:text="Promote"
  54 + android:background="@drawable/promoter_linked"
51 55 android:gravity="center"
52   - android:textColor="#ff000000"
53   - android:background="@drawable/promoter_linked" />
  56 + android:paddingBottom="3dp"
  57 + android:textSize="15sp"
  58 + android:text="Promote"
  59 + android:textColor="#ff000000" />
54 60 <!-- 关闭按钮 -->
55 61  
56 62 <ImageView
... ... @@ -75,13 +81,11 @@
75 81 android:id="@+id/prgress_bar"
76 82 android:layout_width="470px"
77 83 android:layout_height="64px"
  84 + android:layout_below="@+id/progress_instructions"
  85 + android:layout_toRightOf="@+id/left_imge"
78 86 android:max="100"
79 87 android:progress="30"
80   - android:layout_below="@+id/progress_instructions"
81   - android:layout_toRightOf="@+id/left_imge"
82   -
83   - android:progressDrawable="@drawable/progressbar_horizontal_1"
84   - />
  88 + android:progressDrawable="@drawable/progressbar_horizontal_1" />
85 89 <!-- 获取奖励 -->
86 90  
87 91 <Button
... ... @@ -90,13 +94,12 @@
90 94 android:layout_height="86px"
91 95 android:layout_alignParentTop="true"
92 96 android:layout_toRightOf="@+id/prgress_bar"
  97 + android:background="@drawable/reward_grey"
  98 + android:gravity="bottom|center_horizontal"
  99 + android:paddingBottom="2dp"
93 100 android:scaleType="fitXY"
94 101 android:text="claim"
95   - android:paddingBottom="2dp"
96   - android:textColor="#ff0000"
97   - android:gravity="bottom|center_horizontal"
98   - android:background="@drawable/reward"
99   - />
  102 + android:textColor="#ff0000" />
100 103 <!-- 中间指示 -->
101 104  
102 105 <ImageView
... ... @@ -108,33 +111,35 @@
108 111 android:scaleType="fitXY"
109 112 android:src="@drawable/middle_instructions" />
110 113 <!-- 邀请码编辑框 -->
111   -
112   - <LinearLayout
113   - android:id="@+id/edittext_layout"
114   - android:layout_width="336px"
115   - android:layout_height="78px"
116   - android:layout_alignParentBottom="true"
117   - android:layout_toRightOf="@+id/left_imge"
118   - android:background="@drawable/edite_hint"
119   - android:orientation="horizontal" >
120   -
121 114 <EditText
122 115 android:id="@+id/edittext"
123 116 android:layout_width="336px"
124 117 android:layout_height="78px"
125   - android:textColor="#ff9000"
126   - android:background="#00000000" />
127   - </LinearLayout>
  118 + android:layout_alignParentBottom="true"
  119 + android:layout_toRightOf="@+id/left_imge"
  120 + android:background="@drawable/edite_hint"
  121 + android:textColor="#ff9000" />
128 122  
129 123 <Button
130 124 android:id="@+id/confirm"
131 125 android:layout_width="173px"
132 126 android:layout_height="60px"
133 127 android:layout_alignParentBottom="true"
134   - android:layout_toRightOf="@+id/edittext_layout"
135   - android:text="Verify"
136   - android:gravity="center"
  128 + android:layout_toRightOf="@+id/edittext"
137 129 android:background="@drawable/confirm"
138   - />
  130 + android:gravity="center"
  131 + android:textSize="15sp"
  132 + android:paddingBottom="5dp"
  133 + android:text="Verify" />
  134 + <!--
  135 + <TextView android:id="@+id/data_load"
  136 + android:layout_width="match_parent"
  137 + android:layout_height="match_parent"
  138 + android:gravity="center"
  139 + android:visibility="gone"
  140 + android:background="@color/no_reward_color"
  141 + android:textSize="25sp"
  142 + android:text="Data loading failed Click to reload"/>
  143 + -->
139 144  
140 145 </RelativeLayout>
141 146 \ No newline at end of file
android/PromoterRelease/res/values/colors.xml
... ... @@ -11,6 +11,8 @@
11 11 <color name="validate">#ff0000</color>
12 12 <!-- 验证 -->
13 13 <color name="already_verification">#6c6a6e</color>
  14 + <!-- 验证 -->
  15 + <color name="bankground">#CDc1c1</color>
14 16  
15 17  
16 18  
android/readme.txt