Commit bfd80f63f701e607e9342890e5de8d4644f98ed2

Authored by 赵康
1 parent f59eb10604
Exists in master

add pay method for overwrite

Showing 50 changed files with 346 additions and 228 deletions Inline Diff

android/GameSDKRelease/libs/GameSDK2.2.2_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_proguard_v2.0.1.jar
No preview for this file type
android/GameSDKRelease/res/drawable-hdpi/btn_orange_normal.png

1.33 KB

android/GameSDKRelease/res/drawable-hdpi/btn_orange_pressed.png

1.27 KB

android/GameSDKRelease/res/drawable-hdpi/ic_cancel_dark.png

1.08 KB | W: | H:

1.23 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
android/GameSDKRelease/res/drawable-hdpi/logo.png

4.1 KB

android/GameSDKRelease/res/drawable-hdpi/logo_e2p.png

12.2 KB

android/GameSDKRelease/res/drawable-hdpi/logo_indomog.png

8.48 KB

android/GameSDKRelease/res/drawable-hdpi/utype_fb.png

1.65 KB

android/GameSDKRelease/res/drawable-hdpi/utype_gump.png

3.41 KB

android/GameSDKRelease/res/drawable-hdpi/utype_quick.png

1.9 KB

android/GameSDKRelease/res/drawable-mdpi/btn_orange_normal.png

1.16 KB

android/GameSDKRelease/res/drawable-mdpi/btn_orange_pressed.png

1.13 KB

android/GameSDKRelease/res/drawable-mdpi/ic_cancel_dark.png

1.04 KB | W: | H:

1.07 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
android/GameSDKRelease/res/drawable-mdpi/logo.png

3.49 KB

android/GameSDKRelease/res/drawable-mdpi/logo_e2p.png

7.13 KB

android/GameSDKRelease/res/drawable-mdpi/logo_indomog.png

5.15 KB

android/GameSDKRelease/res/drawable-mdpi/utype_fb.png

1.41 KB

android/GameSDKRelease/res/drawable-mdpi/utype_gump.png

2.17 KB

android/GameSDKRelease/res/drawable-mdpi/utype_quick.png

1.52 KB

android/GameSDKRelease/res/drawable-nodpi/log.png

9.56 KB

android/GameSDKRelease/res/drawable-xhdpi/btn_orange_normal.png

1.44 KB

android/GameSDKRelease/res/drawable-xhdpi/btn_orange_pressed.png

1.39 KB

android/GameSDKRelease/res/drawable-xhdpi/ic_cancel_dark.png

1.15 KB | W: | H:

1.18 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
android/GameSDKRelease/res/drawable-xhdpi/logo.png

6.46 KB

android/GameSDKRelease/res/drawable-xhdpi/logo_e2p.png

21.1 KB

android/GameSDKRelease/res/drawable-xhdpi/logo_indomog.png

13.2 KB

android/GameSDKRelease/res/drawable-xhdpi/utype_fb.png

1.87 KB

android/GameSDKRelease/res/drawable-xhdpi/utype_gump.png

4.91 KB

android/GameSDKRelease/res/drawable-xhdpi/utype_quick.png

2.26 KB

android/GameSDKRelease/res/drawable/btn_light_gray_bg.xml
File was created 1 <?xml version="1.0" encoding="utf-8"?>
2 <selector xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <item android:state_pressed="true"><shape>
5 <corners android:radius="3dp" />
6
7 <solid android:color="@color/dark_gray" />
8
9 <size android:height="30dp" />
10 </shape></item>
11 <item><shape>
12 <corners android:radius="3dp" />
13
14 <solid android:color="@color/light_gray" />
15
16 <size android:height="30dp" />
17 </shape></item>
18
19 </selector>
android/GameSDKRelease/res/drawable/btn_orange_bg.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <selector xmlns:android="http://schemas.android.com/apk/res/android"> 2 <selector xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <item android:state_pressed="true" android:drawable="@drawable/btn_orange_pressed"/>
5 <item android:drawable="@drawable/btn_orange_normal"/>
3 6
4 <item android:state_pressed="true"> 7 <!-- <item android:state_pressed="true"> -->
5 <shape android:shape="rectangle"> 8 <!-- <shape android:shape="rectangle"> -->
6 <corners android:radius="3dp" /> 9 <!-- <corners android:radius="3dp" /> -->
7 10
8 <solid android:color="@color/orange_pressed" /> 11 <!-- <solid android:color="@color/orange_pressed" /> -->
9 12
10 <size android:height="35dp" /> 13 <!-- <size android:height="35dp" /> -->
11 </shape> 14 <!-- </shape> -->
12 15
13 </item> 16 <!-- </item> -->
14 <item> 17 <!-- <item> -->
15 <shape android:shape="rectangle"> 18 <!-- <shape android:shape="rectangle"> -->
16 <corners android:radius="3dp" /> 19 <!-- <corners android:radius="3dp" /> -->
17 20
18 <solid android:color="@color/orange_normal" /> 21 <!-- <solid android:color="@color/orange_normal" /> -->
19 22
20 <size android:height="35dp" /> 23 <!-- <size android:height="35dp" /> -->
21 </shape> 24 <!-- </shape> -->
22 25
23 </item> 26 <!-- </item> -->
24 27
25 </selector> 28 </selector>
android/GameSDKRelease/res/drawable/dash_line.xml
File was created 1 <?xml version="1.0" encoding="utf-8"?>
2 <shape xmlns:android="http://schemas.android.com/apk/res/android"
3 android:shape="line" >
4
5 <stroke
6 android:dashGap="2dp"
7 android:dashWidth="4dp"
8 android:color="@color/line" />
9
10 </shape>
android/GameSDKRelease/res/drawable/log.png

9.56 KB

android/GameSDKRelease/res/layout/fragment_bind.xml
1 <?xml version="1.0" encoding="utf-8"?> File was deleted
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="wrap_content"
4 android:layout_height="wrap_content"
5 android:scrollbars="none" >
6
7 <LinearLayout
8 android:layout_width="wrap_content"
9 android:layout_height="wrap_content"
10 android:background="@android:color/white"
11 android:minWidth="293dp"
12 android:orientation="vertical" >
13
14 <EditText
15 android:id="@+id/username"
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:layout_margin="10dp"
19 android:background="@drawable/et_bg"
20 android:imeOptions="flagNoExtractUi"
21 android:hint="@string/user_name_hint" />
22
23 <EditText
24 android:id="@+id/pwd"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:layout_margin="10dp"
28 android:background="@drawable/et_bg"
29 android:imeOptions="flagNoExtractUi"
30 android:hint="@string/password_hint"
31 android:inputType="textPassword" />
32
33 <Button
34 android:id="@+id/bind"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_margin="8dp"
38 android:background="@drawable/btn_orange_bg"
39 android:padding="5dp"
40 android:text="@string/bind"
41 android:textColor="@android:color/white"
42 android:textSize="16sp" />
43 </LinearLayout>
44
45 </ScrollView>
android/GameSDKRelease/res/layout/fragment_indomog.xml
File was created 1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="match_parent"
5 android:background="@color/payment_common_bg" >
6
7 <LinearLayout
8 android:layout_width="match_parent"
9 android:layout_height="wrap_content"
10 android:minWidth="293dp"
11 android:orientation="vertical" >
12
13 <TextView
14 android:layout_width="match_parent"
15 android:layout_height="wrap_content"
16 android:background="@drawable/header_tip_bg"
17 android:gravity="center_vertical"
18 android:paddingLeft="10dp"
19 android:text="@string/card_input_tip"
20 android:textColor="@color/black_text" />
21
22 <LinearLayout
23 android:id="@+id/card_input_layout"
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:layout_marginLeft="13dp"
27 android:layout_marginRight="13dp"
28 android:layout_marginTop="10dp"
29 android:orientation="vertical" >
30
31 <EditText
32 android:id="@+id/card_no"
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:background="@drawable/et_bg"
36 android:hint="@string/mol_card_hint" />
37 </LinearLayout>
38
39 <Button
40 android:id="@+id/start_pay"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_marginLeft="13dp"
44 android:layout_marginRight="13dp"
45 android:layout_marginTop="16dp"
46 android:background="@drawable/btn_orange_bg"
47 android:text="@string/pay_ok"
48 android:textColor="@android:color/white"
49 android:textSize="16sp" />
50
51 <Button
52 android:id="@+id/wallet"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:layout_marginBottom="15dp"
56 android:layout_marginLeft="13dp"
57 android:layout_marginRight="13dp"
58 android:layout_marginTop="10dp"
59 android:background="@drawable/btn_wallet_bg"
60 android:text="@string/title_indomog_account"
61 android:textSize="15sp" />
62
63 <TextView
64 android:id="@+id/summary_title"
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content"
67 android:layout_marginLeft="13dp"
68 android:layout_marginRight="13dp"
69 android:background="@color/summary_bg"
70 android:paddingLeft="10dp"
71 android:textColor="@color/black_text"
72 android:textSize="12sp" />
73
74 <TextView
75 android:id="@+id/summary"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_marginBottom="10dp"
79 android:layout_marginLeft="13dp"
80 android:layout_marginRight="13dp"
81 android:background="@color/summary_bg"
82 android:padding="10dp"
83 android:textColor="@color/black_text"
84 android:textSize="11sp" />
85 </LinearLayout>
86
87 </ScrollView>
android/GameSDKRelease/res/layout/fragment_mol.xml
1 <?xml version="1.0" encoding="utf-8"?> File was deleted
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="match_parent"
5 android:background="@color/payment_common_bg" >
6
7 <LinearLayout
8 android:layout_width="match_parent"
9 android:layout_height="wrap_content"
10 android:orientation="vertical" >
11
12 <TextView
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"
15 android:background="@drawable/header_tip_bg"
16 android:gravity="center_vertical"
17 android:paddingLeft="10dp"
18 android:text="@string/card_input_tip"
19 android:textColor="@color/black_text" />
20
21 <LinearLayout
22 android:id="@+id/card_input_layout"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:layout_marginLeft="13dp"
26 android:layout_marginRight="13dp"
27 android:layout_marginTop="10dp"
28 android:orientation="vertical" >
29
30 <EditText
31 android:id="@+id/card_no"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="@drawable/et_bg"
35 android:hint="@string/mol_card_hint" />
36
37 <EditText
38 android:id="@+id/card_pwd"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:layout_marginTop="13dp"
42 android:background="@drawable/et_bg"
43 android:hint="@string/mol_pass_hint" />
44 </LinearLayout>
45
46 <Button
47 android:id="@+id/start_pay"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_marginLeft="13dp"
51 android:layout_marginRight="13dp"
52 android:layout_marginTop="16dp"
53 android:background="@drawable/btn_orange_bg"
54 android:text="@string/pay_ok"
55 android:textColor="@android:color/white"
56 android:textSize="16sp" />
57
58 <Button
59 android:id="@+id/wallet"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_marginBottom="15dp"
63 android:layout_marginLeft="13dp"
64 android:layout_marginRight="13dp"
65 android:layout_marginTop="10dp"
66 android:background="@drawable/btn_wallet_bg"
67 android:text="@string/title_mol_wallet"
68 android:textSize="15sp" />
69
70 <TextView
71 android:id="@+id/summary_title"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_marginLeft="13dp"
75 android:layout_marginRight="13dp"
76 android:background="@color/summary_bg"
77 android:paddingLeft="10dp"
78 android:textColor="@color/black_text"
79 android:textSize="12sp" />
80
81 <TextView
82 android:id="@+id/summary"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_marginBottom="10dp"
86 android:layout_marginLeft="13dp"
87 android:layout_marginRight="13dp"
88 android:background="@color/summary_bg"
89 android:padding="10dp"
90 android:textColor="@color/black_text"
91 android:textSize="11sp" />
92 </LinearLayout>
93
94 </ScrollView>
android/GameSDKRelease/res/layout/fragment_mol_point.xml
File was created 1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="match_parent"
5 android:background="@color/payment_common_bg" >
6
7 <LinearLayout
8 android:layout_width="match_parent"
9 android:layout_height="wrap_content"
10 android:orientation="vertical" >
11
12 <TextView
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"
15 android:background="@drawable/header_tip_bg"
16 android:gravity="center_vertical"
17 android:paddingLeft="10dp"
18 android:text="@string/card_input_tip"
19 android:textColor="@color/black_text" />
20
21 <LinearLayout
22 android:id="@+id/card_input_layout"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:layout_marginLeft="13dp"
26 android:layout_marginRight="13dp"
27 android:layout_marginTop="10dp"
28 android:orientation="vertical" >
29
30 <EditText
31 android:id="@+id/card_no"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="@drawable/et_bg"
35 android:hint="@string/mol_card_hint" />
36
37 <EditText
38 android:id="@+id/card_pwd"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:layout_marginTop="13dp"
42 android:background="@drawable/et_bg"
43 android:hint="@string/mol_pass_hint" />
44 </LinearLayout>
45
46 <Button
47 android:id="@+id/start_pay"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_marginLeft="13dp"
51 android:layout_marginRight="13dp"
52 android:layout_marginTop="16dp"
53 android:background="@drawable/btn_orange_bg"
54 android:text="@string/pay_ok"
55 android:textColor="@android:color/white"
56 android:textSize="16sp" />
57
58 <Button
59 android:id="@+id/wallet"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_marginBottom="15dp"
63 android:layout_marginLeft="13dp"
64 android:layout_marginRight="13dp"
65 android:layout_marginTop="10dp"
66 android:background="@drawable/btn_wallet_bg"
67 android:text="@string/title_mol_wallet"
68 android:textSize="15sp" />
69
70 <TextView
71 android:id="@+id/summary_title"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_marginLeft="13dp"
75 android:layout_marginRight="13dp"
76 android:background="@color/summary_bg"
77 android:paddingLeft="10dp"
78 android:textColor="@color/black_text"
79 android:textSize="12sp" />
80
81 <TextView
82 android:id="@+id/summary"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_marginBottom="10dp"
86 android:layout_marginLeft="13dp"
87 android:layout_marginRight="13dp"
88 android:background="@color/summary_bg"
89 android:padding="10dp"
90 android:textColor="@color/black_text"
91 android:textSize="11sp" />
92 </LinearLayout>
93
94 </ScrollView>
android/GameSDKRelease/res/layout/fragment_payment_choice.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent" 3 android:layout_width="match_parent"
4 android:layout_height="match_parent" > 4 android:layout_height="match_parent" >
5 5
6 <LinearLayout 6 <LinearLayout
7 android:layout_width="match_parent" 7 android:layout_width="match_parent"
8 android:layout_height="wrap_content" 8 android:layout_height="wrap_content"
9 android:gravity="center_horizontal" 9 android:gravity="center_horizontal"
10 android:orientation="vertical" > 10 android:orientation="vertical" >
11 11
12 <RelativeLayout 12 <RelativeLayout
13 android:id="@+id/item_mycard" 13 android:id="@+id/item_mycard"
14 android:layout_width="match_parent" 14 android:layout_width="match_parent"
15 android:layout_height="wrap_content" 15 android:layout_height="wrap_content"
16 android:background="@drawable/payment_bg" 16 android:background="@drawable/payment_bg"
17 android:visibility="gone" > 17 android:visibility="gone" >
18 18
19 <ImageView 19 <ImageView
20 android:layout_width="wrap_content" 20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content" 21 android:layout_height="wrap_content"
22 android:layout_centerVertical="true" 22 android:layout_centerVertical="true"
23 android:layout_marginLeft="10dp" 23 android:layout_marginLeft="10dp"
24 android:src="@drawable/logo_mycard" /> 24 android:src="@drawable/logo_mycard" />
25 25
26 <ImageView 26 <ImageView
27 android:layout_width="wrap_content" 27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content" 28 android:layout_height="wrap_content"
29 android:layout_alignParentRight="true" 29 android:layout_alignParentRight="true"
30 android:layout_centerVertical="true" 30 android:layout_centerVertical="true"
31 android:layout_marginRight="45dp" 31 android:layout_marginRight="45dp"
32 android:src="@drawable/arrow_tag" /> 32 android:src="@drawable/arrow_tag" />
33 </RelativeLayout> 33 </RelativeLayout>
34 34
35 <RelativeLayout 35 <RelativeLayout
36 android:id="@+id/item_mol" 36 android:id="@+id/item_mol"
37 android:layout_width="match_parent" 37 android:layout_width="match_parent"
38 android:layout_height="wrap_content" 38 android:layout_height="wrap_content"
39 android:background="@drawable/payment_bg" 39 android:background="@drawable/payment_bg"
40 android:visibility="gone" > 40 android:visibility="gone" >
41 41
42 <ImageView 42 <ImageView
43 android:layout_width="wrap_content" 43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
45 android:layout_centerVertical="true" 45 android:layout_centerVertical="true"
46 android:layout_marginLeft="10dp" 46 android:layout_marginLeft="10dp"
47 android:src="@drawable/logo_mol" /> 47 android:src="@drawable/logo_mol" />
48 48
49 <ImageView 49 <ImageView
50 android:layout_width="wrap_content" 50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content" 51 android:layout_height="wrap_content"
52 android:layout_alignParentRight="true" 52 android:layout_alignParentRight="true"
53 android:layout_centerVertical="true" 53 android:layout_centerVertical="true"
54 android:layout_marginRight="45dp" 54 android:layout_marginRight="45dp"
55 android:src="@drawable/arrow_tag" /> 55 android:src="@drawable/arrow_tag" />
56 </RelativeLayout> 56 </RelativeLayout>
57 <RelativeLayout
58 android:id="@+id/item_mol_point"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
61 android:background="@drawable/payment_bg"
62 android:visibility="gone" >
63
64 <ImageView
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:layout_centerVertical="true"
68 android:layout_marginLeft="10dp"
69 android:src="@drawable/logo_mol" />
70
71 <ImageView
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_alignParentRight="true"
75 android:layout_centerVertical="true"
76 android:layout_marginRight="45dp"
77 android:src="@drawable/arrow_tag" />
78 </RelativeLayout>
57 79
58 <RelativeLayout 80 <RelativeLayout
59 android:id="@+id/item_12call" 81 android:id="@+id/item_12call"
60 android:layout_width="match_parent" 82 android:layout_width="match_parent"
61 android:layout_height="wrap_content" 83 android:layout_height="wrap_content"
62 android:background="@drawable/payment_bg" 84 android:background="@drawable/payment_bg"
63 android:visibility="gone" > 85 android:visibility="gone" >
64 86
65 <ImageView 87 <ImageView
66 android:layout_width="wrap_content" 88 android:layout_width="wrap_content"
67 android:layout_height="wrap_content" 89 android:layout_height="wrap_content"
68 android:layout_centerVertical="true" 90 android:layout_centerVertical="true"
69 android:layout_marginLeft="10dp" 91 android:layout_marginLeft="10dp"
70 android:src="@drawable/logo_12call" /> 92 android:src="@drawable/logo_12call" />
71 93
72 <ImageView 94 <ImageView
73 android:layout_width="wrap_content" 95 android:layout_width="wrap_content"
74 android:layout_height="wrap_content" 96 android:layout_height="wrap_content"
75 android:layout_alignParentRight="true" 97 android:layout_alignParentRight="true"
76 android:layout_centerVertical="true" 98 android:layout_centerVertical="true"
77 android:layout_marginRight="45dp" 99 android:layout_marginRight="45dp"
78 android:src="@drawable/arrow_tag" /> 100 android:src="@drawable/arrow_tag" />
79 </RelativeLayout> 101 </RelativeLayout>
80 102
81 <RelativeLayout 103 <RelativeLayout
82 android:id="@+id/item_zest" 104 android:id="@+id/item_zest"
83 android:layout_width="match_parent" 105 android:layout_width="match_parent"
84 android:layout_height="wrap_content" 106 android:layout_height="wrap_content"
85 android:background="@drawable/payment_bg" 107 android:background="@drawable/payment_bg"
86 android:visibility="gone" > 108 android:visibility="gone" >
87 109
88 <ImageView 110 <ImageView
89 android:layout_width="wrap_content" 111 android:layout_width="wrap_content"
90 android:layout_height="wrap_content" 112 android:layout_height="wrap_content"
91 android:layout_centerVertical="true" 113 android:layout_centerVertical="true"
92 android:layout_marginLeft="10dp" 114 android:layout_marginLeft="10dp"
93 android:src="@drawable/logo_zest" /> 115 android:src="@drawable/logo_zest" />
94 116
95 <ImageView 117 <ImageView
96 android:layout_width="wrap_content" 118 android:layout_width="wrap_content"
97 android:layout_height="wrap_content" 119 android:layout_height="wrap_content"
98 android:layout_alignParentRight="true" 120 android:layout_alignParentRight="true"
99 android:layout_centerVertical="true" 121 android:layout_centerVertical="true"
100 android:layout_marginRight="45dp" 122 android:layout_marginRight="45dp"
101 android:src="@drawable/arrow_tag" /> 123 android:src="@drawable/arrow_tag" />
102 </RelativeLayout> 124 </RelativeLayout>
103 125
104 <RelativeLayout 126 <RelativeLayout
105 android:id="@+id/item_tm" 127 android:id="@+id/item_tm"
106 android:layout_width="match_parent" 128 android:layout_width="match_parent"
107 android:layout_height="wrap_content" 129 android:layout_height="wrap_content"
108 android:background="@drawable/payment_bg" 130 android:background="@drawable/payment_bg"
109 android:visibility="gone" > 131 android:visibility="gone" >
110 132
111 <ImageView 133 <ImageView
112 android:layout_width="wrap_content" 134 android:layout_width="wrap_content"
113 android:layout_height="wrap_content" 135 android:layout_height="wrap_content"
114 android:layout_centerVertical="true" 136 android:layout_centerVertical="true"
115 android:layout_marginLeft="10dp" 137 android:layout_marginLeft="10dp"
116 android:src="@drawable/logo_tm" /> 138 android:src="@drawable/logo_tm" />
117 139
118 <ImageView 140 <ImageView
119 android:layout_width="wrap_content" 141 android:layout_width="wrap_content"
120 android:layout_height="wrap_content" 142 android:layout_height="wrap_content"
121 android:layout_alignParentRight="true" 143 android:layout_alignParentRight="true"
122 android:layout_centerVertical="true" 144 android:layout_centerVertical="true"
123 android:layout_marginRight="45dp" 145 android:layout_marginRight="45dp"
124 android:src="@drawable/arrow_tag" /> 146 android:src="@drawable/arrow_tag" />
125 </RelativeLayout> 147 </RelativeLayout>
126 148
127 <RelativeLayout 149 <RelativeLayout
128 android:id="@+id/item_rixty" 150 android:id="@+id/item_rixty"
129 android:layout_width="match_parent" 151 android:layout_width="match_parent"
130 android:layout_height="wrap_content" 152 android:layout_height="wrap_content"
131 android:background="@drawable/payment_bg" 153 android:background="@drawable/payment_bg"
132 android:visibility="gone" > 154 android:visibility="gone" >
133 155
134 <ImageView 156 <ImageView
135 android:layout_width="wrap_content" 157 android:layout_width="wrap_content"
136 android:layout_height="wrap_content" 158 android:layout_height="wrap_content"
137 android:layout_centerVertical="true" 159 android:layout_centerVertical="true"
138 android:layout_marginLeft="10dp" 160 android:layout_marginLeft="10dp"
139 android:src="@drawable/logo_rixty" /> 161 android:src="@drawable/logo_rixty" />
140 162
141 <ImageView 163 <ImageView
142 android:layout_width="wrap_content" 164 android:layout_width="wrap_content"
143 android:layout_height="wrap_content" 165 android:layout_height="wrap_content"
144 android:layout_alignParentRight="true" 166 android:layout_alignParentRight="true"
145 android:layout_centerVertical="true" 167 android:layout_centerVertical="true"
146 android:layout_marginRight="45dp" 168 android:layout_marginRight="45dp"
147 android:src="@drawable/arrow_tag" /> 169 android:src="@drawable/arrow_tag" />
148 </RelativeLayout> 170 </RelativeLayout>
149 171
150 <RelativeLayout 172 <RelativeLayout
151 android:id="@+id/item_paypal" 173 android:id="@+id/item_paypal"
152 android:layout_width="match_parent" 174 android:layout_width="match_parent"
153 android:layout_height="wrap_content" 175 android:layout_height="wrap_content"
154 android:background="@drawable/payment_bg" 176 android:background="@drawable/payment_bg"
155 android:visibility="gone" > 177 android:visibility="gone" >
156 178
157 <ImageView 179 <ImageView
158 android:layout_width="wrap_content" 180 android:layout_width="wrap_content"
159 android:layout_height="wrap_content" 181 android:layout_height="wrap_content"
160 android:layout_centerVertical="true" 182 android:layout_centerVertical="true"
161 android:layout_marginLeft="10dp" 183 android:layout_marginLeft="10dp"
162 android:src="@drawable/logo_paypal" /> 184 android:src="@drawable/logo_paypal" />
163 185
164 <ImageView 186 <ImageView
165 android:layout_width="wrap_content" 187 android:layout_width="wrap_content"
166 android:layout_height="wrap_content" 188 android:layout_height="wrap_content"
167 android:layout_alignParentRight="true" 189 android:layout_alignParentRight="true"
168 android:layout_centerVertical="true" 190 android:layout_centerVertical="true"
169 android:layout_marginRight="45dp" 191 android:layout_marginRight="45dp"
170 android:src="@drawable/arrow_tag" /> 192 android:src="@drawable/arrow_tag" />
171 </RelativeLayout> 193 </RelativeLayout>
172 194
173 <RelativeLayout 195 <RelativeLayout
174 android:id="@+id/item_ngan" 196 android:id="@+id/item_ngan"
175 android:layout_width="match_parent" 197 android:layout_width="match_parent"
176 android:layout_height="wrap_content" 198 android:layout_height="wrap_content"
177 android:background="@drawable/payment_bg" 199 android:background="@drawable/payment_bg"
178 android:visibility="gone" > 200 android:visibility="gone" >
179 201
180 <ImageView 202 <ImageView
181 android:layout_width="wrap_content" 203 android:layout_width="wrap_content"
182 android:layout_height="wrap_content" 204 android:layout_height="wrap_content"
183 android:layout_centerVertical="true" 205 android:layout_centerVertical="true"
184 android:layout_marginLeft="10dp" 206 android:layout_marginLeft="10dp"
185 android:src="@drawable/logo_ngan" /> 207 android:src="@drawable/logo_ngan" />
186 208
187 <ImageView 209 <ImageView
188 android:layout_width="wrap_content" 210 android:layout_width="wrap_content"
189 android:layout_height="wrap_content" 211 android:layout_height="wrap_content"
190 android:layout_alignParentRight="true" 212 android:layout_alignParentRight="true"
191 android:layout_centerVertical="true" 213 android:layout_centerVertical="true"
192 android:layout_marginRight="45dp" 214 android:layout_marginRight="45dp"
193 android:src="@drawable/arrow_tag" /> 215 android:src="@drawable/arrow_tag" />
194 </RelativeLayout> 216 </RelativeLayout>
195 217
196 <RelativeLayout 218 <RelativeLayout
197 android:id="@+id/item_gp" 219 android:id="@+id/item_gp"
198 android:layout_width="match_parent" 220 android:layout_width="match_parent"
199 android:layout_height="wrap_content" 221 android:layout_height="wrap_content"
200 android:background="@drawable/payment_bg" 222 android:background="@drawable/payment_bg"
201 android:visibility="gone" > 223 android:visibility="gone" >
202 224
203 <ImageView 225 <ImageView
204 android:layout_width="wrap_content" 226 android:layout_width="wrap_content"
205 android:layout_height="wrap_content" 227 android:layout_height="wrap_content"
206 android:layout_centerVertical="true" 228 android:layout_centerVertical="true"
207 android:layout_marginLeft="10dp" 229 android:layout_marginLeft="10dp"
208 android:src="@drawable/logo_gp" /> 230 android:src="@drawable/logo_gp" />
209 231
210 <ImageView 232 <ImageView
211 android:layout_width="wrap_content" 233 android:layout_width="wrap_content"
212 android:layout_height="wrap_content" 234 android:layout_height="wrap_content"
213 android:layout_alignParentRight="true" 235 android:layout_alignParentRight="true"
214 android:layout_centerVertical="true" 236 android:layout_centerVertical="true"
215 android:layout_marginRight="45dp" 237 android:layout_marginRight="45dp"
216 android:src="@drawable/arrow_tag" /> 238 android:src="@drawable/arrow_tag" />
217 </RelativeLayout> 239 </RelativeLayout>
218 240
219 <RelativeLayout 241 <RelativeLayout
220 android:id="@+id/item_ep_th" 242 android:id="@+id/item_ep_th"
221 android:layout_width="match_parent" 243 android:layout_width="match_parent"
222 android:layout_height="wrap_content" 244 android:layout_height="wrap_content"
223 android:background="@drawable/payment_bg" 245 android:background="@drawable/payment_bg"
224 android:visibility="gone" > 246 android:visibility="gone" >
225 247
226 <ImageView 248 <ImageView
227 android:layout_width="wrap_content" 249 android:layout_width="wrap_content"
228 android:layout_height="wrap_content" 250 android:layout_height="wrap_content"
229 android:layout_centerVertical="true" 251 android:layout_centerVertical="true"
230 android:layout_marginLeft="10dp" 252 android:layout_marginLeft="10dp"
231 android:src="@drawable/logo_gp" /> 253 android:src="@drawable/logo_e2p" />
232 254
233 <ImageView 255 <ImageView
234 android:layout_width="wrap_content" 256 android:layout_width="wrap_content"
235 android:layout_height="wrap_content" 257 android:layout_height="wrap_content"
236 android:layout_alignParentRight="true" 258 android:layout_alignParentRight="true"
237 android:layout_centerVertical="true" 259 android:layout_centerVertical="true"
238 android:layout_marginRight="45dp" 260 android:layout_marginRight="45dp"
239 android:src="@drawable/arrow_tag" /> 261 android:src="@drawable/arrow_tag" />
240 </RelativeLayout> 262 </RelativeLayout>
241 263
242 <RelativeLayout 264 <RelativeLayout
243 android:id="@+id/item_ep_my" 265 android:id="@+id/item_ep_my"
244 android:layout_width="match_parent" 266 android:layout_width="match_parent"
245 android:layout_height="wrap_content" 267 android:layout_height="wrap_content"
246 android:background="@drawable/payment_bg" 268 android:background="@drawable/payment_bg"
247 android:visibility="gone" > 269 android:visibility="gone" >
248 270
249 <ImageView 271 <ImageView
250 android:layout_width="wrap_content" 272 android:layout_width="wrap_content"
251 android:layout_height="wrap_content" 273 android:layout_height="wrap_content"
252 android:layout_centerVertical="true" 274 android:layout_centerVertical="true"
253 android:layout_marginLeft="10dp" 275 android:layout_marginLeft="10dp"
254 android:src="@drawable/logo_gp" /> 276 android:src="@drawable/logo_e2p" />
277
278 <ImageView
279 android:layout_width="wrap_content"
280 android:layout_height="wrap_content"
281 android:layout_alignParentRight="true"
282 android:layout_centerVertical="true"
283 android:layout_marginRight="45dp"
284 android:src="@drawable/arrow_tag" />
285 </RelativeLayout>
286 <RelativeLayout
287 android:id="@+id/item_indomog"
288 android:layout_width="match_parent"
289 android:layout_height="wrap_content"
290 android:background="@drawable/payment_bg"
291 android:visibility="gone" >
292
293 <ImageView
294 android:layout_width="wrap_content"
295 android:layout_height="wrap_content"
296 android:layout_centerVertical="true"
297 android:layout_marginLeft="10dp"
298 android:src="@drawable/logo_indomog" />
255 299
256 <ImageView 300 <ImageView
257 android:layout_width="wrap_content" 301 android:layout_width="wrap_content"
258 android:layout_height="wrap_content" 302 android:layout_height="wrap_content"
259 android:layout_alignParentRight="true" 303 android:layout_alignParentRight="true"
260 android:layout_centerVertical="true" 304 android:layout_centerVertical="true"
261 android:layout_marginRight="45dp" 305 android:layout_marginRight="45dp"
262 android:src="@drawable/arrow_tag" /> 306 android:src="@drawable/arrow_tag" />
263 </RelativeLayout> 307 </RelativeLayout>
264 </LinearLayout> 308 </LinearLayout>
265 309
266 </ScrollView> 310 </ScrollView>
android/GameSDKRelease/res/layout/fragment_rixty.xml
1 <?xml version="1.0" encoding="utf-8"?> File was deleted
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:background="@color/payment_common_bg"
6 android:orientation="vertical" >
7
8 <Button
9 android:id="@+id/start_pay"
10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
12 android:layout_margin="13dp"
13 android:background="@drawable/btn_orange_bg"
14 android:text="@string/pay_ok"
15 android:textColor="@android:color/white" />
16
17 <TextView
18 android:id="@+id/summary_title"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:layout_marginLeft="13dp"
22 android:layout_marginRight="13dp"
23 android:background="@color/summary_bg"
24 android:paddingLeft="10dp"
25 android:textColor="@color/black_text"
26 android:textSize="12sp" />
27
28 <TextView
29 android:id="@+id/summary"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_marginLeft="13dp"
33 android:layout_marginRight="13dp"
34 android:background="@color/summary_bg"
35 android:padding="10dp"
36 android:textColor="@color/black_text"
37 android:textSize="11sp" />
38
39 </LinearLayout>
android/GameSDKRelease/res/layout/fragment_sign_choice.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent" 3 android:layout_width="match_parent"
4 android:layout_height="match_parent" 4 android:layout_height="match_parent"
5 android:orientation="vertical" > 5 android:orientation="vertical" >
6 6
7 <LinearLayout
8 android:layout_width="match_parent"
9 android:layout_height="wrap_content"
10 android:layout_marginTop="13dp"
11 android:gravity="center_horizontal"
12 android:orientation="horizontal" >
13
14 <ImageView
15 android:id="@+id/utype_tag"
16 android:layout_width="25dp"
17 android:layout_height="25dp"
18 android:layout_marginRight="8dp"
19 android:src="@drawable/utype_quick" />
20
21 <TextView
22 android:id="@+id/tv_nick"
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:layout_gravity="center_vertical"
26 android:textColor="@color/black_text"
27 android:textSize="15sp"
28 android:textStyle="bold" />
29 </LinearLayout>
30
7 <Button 31 <Button
8 android:id="@+id/quick" 32 android:id="@+id/play"
9 android:layout_width="fill_parent" 33 android:layout_width="fill_parent"
10 android:layout_height="36dp" 34 android:layout_height="46dp"
35 android:layout_marginBottom="10dp"
11 android:layout_marginLeft="13dp" 36 android:layout_marginLeft="13dp"
12 android:layout_marginRight="13dp" 37 android:layout_marginRight="13dp"
13 android:layout_marginTop="16dp" 38 android:layout_marginTop="23dp"
14 android:background="@drawable/btn_orange_bg" 39 android:background="@drawable/btn_orange_bg"
15 android:padding="5dp" 40 android:padding="5dp"
16 android:text="@string/quick_login" 41 android:text="Play"
17 android:textColor="@android:color/white" 42 android:textColor="@android:color/white"
18 android:textSize="16sp" /> 43 android:textSize="16sp" />
19 44
45 <View
46 android:layout_width="fill_parent"
47 android:layout_height="2dp"
48 android:background="@drawable/dash_line" />
49
20 <com.facebook.widget.LoginButton 50 <com.facebook.widget.LoginButton
21 android:id="@+id/fb_login" 51 android:id="@+id/fb_login"
22 android:layout_width="fill_parent" 52 android:layout_width="fill_parent"
23 android:layout_height="wrap_content" 53 android:layout_height="wrap_content"
24 android:layout_marginLeft="13dp" 54 android:layout_marginLeft="13dp"
25 android:layout_marginRight="13dp" 55 android:layout_marginRight="13dp"
26 android:layout_marginTop="10dp" /> 56 android:layout_marginTop="10dp" />
27 57
28 <TextView 58 <Button
29 android:id="@+id/gump_login" 59 android:id="@+id/gump_login"
30 android:layout_width="fill_parent" 60 android:layout_width="fill_parent"
31 android:layout_height="wrap_content" 61 android:layout_height="40dp"
32 android:layout_marginTop="16dp" 62 android:layout_marginBottom="15dp"
33 android:layout_marginBottom="10dp" 63 android:layout_marginLeft="13dp"
34 android:textSize="11sp" 64 android:layout_marginRight="13dp"
65 android:layout_marginTop="8dp"
66 android:background="@drawable/btn_light_gray_bg"
35 android:gravity="center" 67 android:gravity="center"
36 android:textColor="@color/com_facebook_blue" 68 android:text="@string/gump_login"
37 android:text="Gumptech login>>" /> 69 android:textColor="@android:color/white"
70 android:textSize="15sp" />
38 71
39 </LinearLayout> 72 </LinearLayout>
android/GameSDKRelease/res/layout/title.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent" 3 android:layout_width="match_parent"
4 android:layout_height="45dp" 4 android:layout_height="45dp"
5 android:background="@drawable/dialog_bg" > 5 android:background="@drawable/dialog_bg" >
6 6
7 <ImageView 7 <ImageView
8 android:id="@+id/btn_back" 8 android:id="@+id/btn_back"
9 android:layout_width="wrap_content" 9 android:layout_width="wrap_content"
10 android:layout_height="wrap_content" 10 android:layout_height="match_parent"
11 android:layout_alignParentLeft="true" 11 android:layout_alignParentLeft="true"
12 android:layout_centerVertical="true" 12 android:layout_centerVertical="true"
13 android:layout_marginLeft="10dp" 13 android:paddingLeft="10dp"
14 android:paddingRight="10dp"
14 android:src="@drawable/ic_back_dark" /> 15 android:src="@drawable/ic_back_dark" />
15 16
16 <TextView 17 <TextView
17 android:id="@+id/up_txt" 18 android:id="@+id/up_txt"
18 android:layout_width="wrap_content" 19 android:layout_width="wrap_content"
19 android:layout_height="wrap_content" 20 android:layout_height="wrap_content"
20 android:layout_centerVertical="true" 21 android:layout_centerVertical="true"
21 android:layout_toRightOf="@id/btn_back" 22 android:layout_toRightOf="@id/btn_back"
22 android:textColor="@color/black_text" 23 android:textColor="@color/black_text"
23 android:textSize="18sp" 24 android:textSize="18sp"
24 android:visibility="gone" /> 25 android:visibility="gone" />
25 26
26 <ImageView 27 <ImageView
27 android:id="@+id/log" 28 android:id="@+id/log"
28 android:layout_width="wrap_content" 29 android:layout_width="wrap_content"
29 android:layout_height="30dp" 30 android:layout_height="30dp"
30 android:layout_centerInParent="true" 31 android:layout_centerInParent="true"
31 android:src="@drawable/log" /> 32 android:src="@drawable/logo" />
32 33
33 <TextView 34 <TextView
34 android:id="@+id/title" 35 android:id="@+id/title"
35 android:layout_width="wrap_content" 36 android:layout_width="wrap_content"
36 android:layout_height="wrap_content" 37 android:layout_height="wrap_content"
37 android:layout_centerInParent="true" 38 android:layout_centerInParent="true"
38 android:textColor="@android:color/black" 39 android:textColor="@android:color/black"
39 android:textSize="18sp" /> 40 android:textSize="18sp" />
40 41
41 <ImageView 42 <ImageView
42 android:id="@+id/btn_cancel" 43 android:id="@+id/btn_cancel"
43 android:layout_width="wrap_content" 44 android:layout_width="wrap_content"
44 android:layout_height="wrap_content" 45 android:layout_height="match_parent"
45 android:layout_alignParentRight="true" 46 android:layout_alignParentRight="true"
46 android:layout_centerVertical="true" 47 android:layout_centerVertical="true"
47 android:layout_margin="10dp" 48 android:padding="10dp"
48 android:src="@drawable/ic_cancel_dark" /> 49 android:src="@drawable/ic_cancel_dark" />
49 50
50 <View 51 <View
51 android:layout_width="fill_parent" 52 android:layout_width="fill_parent"
52 android:layout_height="1dp" 53 android:layout_height="1dp"
53 android:layout_alignParentBottom="true" 54 android:layout_alignParentBottom="true"
54 android:background="@color/line" /> 55 android:background="@color/line" />
55 56
56 </RelativeLayout> 57 </RelativeLayout>
android/GameSDKRelease/res/values-pt/strings.xml
1 <resources> 1 <resources>
2 2
3 <string name="app_name">LoginSDK</string> 3 <string name="app_name">LoginSDK</string>
4 <string name="user_name_hint">Email</string> 4 <string name="user_name_hint">Email</string>
5 <string name="password_hint">Senha</string> 5 <string name="password_hint">Senha</string>
6 <string name="quick_login">Jogar Agora</string>
7 <string name="login">Login</string> 6 <string name="login">Login</string>
8 <string name="signup">Registrar</string> 7 <string name="signup">Registrar</string>
9 <string name="bind">Vincular ao email</string> 8 <string name="bind">Vincular ao email</string>
10 <string name="loading">Carregando</string> 9 <string name="loading">Carregando</string>
11 <!-- toast --> 10 <!-- toast -->
12 <string name="illegal_uname_tip">Email inválido</string> 11 <string name="illegal_uname_tip">Email inválido</string>
13 <string name="illegal_pwd_tip">Senha Inválida (6-20 caracteres)</string> 12 <string name="illegal_pwd_tip">Senha Inválida (6-20 caracteres)</string>
14 <string name="illegal_user_exist">Email já está em uso</string> 13 <string name="illegal_user_exist">Email já está em uso</string>
15 <string name="illegal_pwd_invalid">Senha incorreta, favor tentar novamente</string> 14 <string name="illegal_pwd_invalid">Senha incorreta, favor tentar novamente</string>
16 <string name="illegal_user_not_exist">Email Inválido</string> 15 <string name="illegal_user_not_exist">Email Inválido</string>
17 <string name="invalid_email">Favor inserir seu email</string> 16 <string name="invalid_email">Favor inserir seu email</string>
18 <string name="login_fail">Login falhou</string> 17 <string name="login_fail">Login falhou</string>
19 <string name="signup_fail">Registrar falhou</string> 18 <string name="signup_fail">Registrar falhou</string>
20 <string name="bind_fail">Vincular falhou</string> 19 <string name="bind_fail">Vincular falhou</string>
21 <!-- facebook id --> 20 <!-- facebook id -->
22 21
23 </resources> 22 </resources>
android/GameSDKRelease/res/values-th/strings.xml
1 <resources> 1 <resources>
2 2
3 <string name="app_name">LoginSDK</string> 3 <string name="app_name">LoginSDK</string>
4 <string name="user_name_hint">อีเมลล์</string> 4 <string name="user_name_hint">อีเมลล์</string>
5 <string name="password_hint">พาสเวิร์ด</string> 5 <string name="password_hint">พาสเวิร์ด</string>
6 <string name="quick_login">เริ่มเล่น</string>
7 <string name="login">ล็อกอิน</string> 6 <string name="login">ล็อกอิน</string>
8 <string name="signup">ลงทะเบียน</string> 7 <string name="signup">ลงทะเบียน</string>
9 <string name="bind">ผูกอีเมลล์</string> 8 <string name="bind">ผูกอีเมลล์</string>
10 <string name="loading">กำลังโหลด</string> 9 <string name="loading">กำลังโหลด</string>
11 <!-- toast --> 10 <!-- toast -->
12 <string name="illegal_uname_tip">อีเมลล์ไม่ถูกต้อง</string> 11 <string name="illegal_uname_tip">อีเมลล์ไม่ถูกต้อง</string>
13 <string name="illegal_pwd_tip">พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)</string> 12 <string name="illegal_pwd_tip">พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)</string>
14 <string name="illegal_user_exist">อีเมลล์นี้ได้ถูกใช้แล้ว</string> 13 <string name="illegal_user_exist">อีเมลล์นี้ได้ถูกใช้แล้ว</string>
15 <string name="illegal_pwd_invalid">พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง</string> 14 <string name="illegal_pwd_invalid">พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง</string>
16 <string name="illegal_user_not_exist">อีเมลล์ไม่ถูกต้อง</string> 15 <string name="illegal_user_not_exist">อีเมลล์ไม่ถูกต้อง</string>
17 <string name="invalid_email">ใส่อีเมลล์ของคุณ</string> 16 <string name="invalid_email">ใส่อีเมลล์ของคุณ</string>
18 <string name="login_fail">ล็อกอินผิดพลาด</string> 17 <string name="login_fail">ล็อกอินผิดพลาด</string>
19 <string name="signup_fail">ลงทะเบียนไม่สำเร็จ</string> 18 <string name="signup_fail">ลงทะเบียนไม่สำเร็จ</string>
20 <string name="bind_fail">ผูกอีเมลล์ไม่สำเร็จ</string> 19 <string name="bind_fail">ผูกอีเมลล์ไม่สำเร็จ</string>
20 <string name="signup_success">สำเร็จ</string>
21 <!-- facebook id --> 21 <!-- facebook id -->
22 <!-- payment --> 22 <!-- payment -->
23 <string name="title_payment_choice">เลือกช่องทางชำระเงิน</string> 23 <string name="title_payment_choice">เลือกช่องทางชำระเงิน</string>
24 <!-- summary title --> 24 <!-- summary title -->
25 <string name="summary_title">ตารางแลกเปลี่ยน:</string> 25 <string name="summary_title">ตารางแลกเปลี่ยน:</string>
26
26 <string name="useranme_pattern">ชื่อผู้ใช้:%s</string> 27 <string name="useranme_pattern">ชื่อผู้ใช้:%s</string>
27 <!-- <string name="mol_channel_title">เลือกช่องทางชำระเงิน</string> --> 28 <!-- <string name="mol_channel_title">เลือกช่องทางชำระเงิน</string> -->
28 <string name="mol_card_hint">กรุณากรอกรหัสบัตร</string> 29 <string name="mol_card_hint">กรุณากรอกรหัสบัตร</string>
29 <string name="mol_pass_hint">กรุณาใส่รหัส</string> 30 <string name="mol_pass_hint">กรุณาใส่รหัส</string>
30 <string name="pay_ok">OK</string> 31 <string name="pay_ok">OK</string>
31 <string name="pay_error">การชำระล้มเหลว กรุณาลองใหม่อีกครั้ง</string> 32 <string name="pay_error">การชำระล้มเหลว กรุณาลองใหม่อีกครั้ง</string>
32 <string name="card_input_tip">กรุณากรอกรายละเอียดบัตร</string> 33 <string name="card_input_tip">กรุณากรอกรายละเอียดบัตร</string>
33 <string name="amount_choice_tip">กรุณาเลือกยอดเติมเงิน</string> 34 <string name="amount_choice_tip">กรุณาเลือกยอดเติมเงิน</string>
34 <!-- paypal --> 35 <!-- paypal -->
35 <string name="paypal_amount_hint">กรุณาใส่จำนวนเงินที่ต้องการ(%s-10000เป็นจำนวนเต็ม)</string> 36 <string name="paypal_amount_hint">กรุณาใส่จำนวนเงินที่ต้องการ(%s-10000เป็นจำนวนเต็ม)</string>
36 <string name="paypal_choice_tip">กรุณาเลือกยอดเติมเงิน</string> 37 <string name="paypal_choice_tip">กรุณาเลือกยอดเติมเงิน</string>
37 <!-- gp --> 38 <!-- gp -->
38 <string name="gp_choice_tip">กรุณาเลือกยอดเติมเงิน</string> 39 <string name="gp_choice_tip">กรุณาเลือกยอดเติมเงิน</string>
android/GameSDKRelease/res/values-zh-rTW/strings.xml
1 <resources> 1 <resources>
2 2
3 <string name="app_name">LoginSDK</string> 3 <string name="app_name">LoginSDK</string>
4 <string name="user_name_hint">郵箱</string> 4 <string name="user_name_hint">郵箱</string>
5 <string name="password_hint">密碼</string> 5 <string name="password_hint">密碼</string>
6 <string name="quick_login">一鍵進入</string>
7 <string name="login">登錄</string> 6 <string name="login">登錄</string>
8 <string name="signup">註冊</string> 7 <string name="signup">註冊</string>
9 <string name="bind">綁定郵箱</string> 8 <string name="bind">綁定郵箱</string>
10 <string name="loading">加載中……</string> 9 <string name="loading">加載中……</string>
11 <!-- toast --> 10 <!-- toast -->
12 <string name="illegal_uname_tip">郵箱格式不正確</string> 11 <string name="illegal_uname_tip">郵箱格式不正確</string>
13 <string name="illegal_pwd_tip">密碼格式不正確 (6–20字符)</string> 12 <string name="illegal_pwd_tip">密碼格式不正確 (6–20字符)</string>
14 <string name="illegal_user_exist">郵箱已註冊</string> 13 <string name="illegal_user_exist">郵箱已註冊</string>
15 <string name="illegal_pwd_invalid">密碼不正確,請重試</string> 14 <string name="illegal_pwd_invalid">密碼不正確,請重試</string>
16 <string name="illegal_user_not_exist">郵箱不存在</string> 15 <string name="illegal_user_not_exist">郵箱不存在</string>
17 <string name="invalid_email">請輸入正確的郵箱</string> 16 <string name="invalid_email">請輸入正確的郵箱</string>
18 <string name="login_fail">登錄失敗</string> 17 <string name="login_fail">登錄失敗</string>
19 <string name="signup_fail">註冊失敗</string> 18 <string name="signup_fail">註冊失敗</string>
20 <string name="bind_fail">綁定失敗</string> 19 <string name="bind_fail">綁定失敗</string>
21 <!-- facebook id --> 20 <!-- facebook id -->
22 21
23 22
24 <!-- 支付相关 --> 23 <!-- 支付相关 -->
25 <!-- title --> 24 <!-- title -->
26 <string name="title_payment_choice">請選擇支付方式</string> 25 <string name="title_payment_choice">請選擇支付方式</string>
27 <!-- summary title --> 26 <!-- summary title -->
28 <string name="summary_title">兌換表:</string> 27 <string name="summary_title">兌換表:</string>
29 <string name="mol_card_hint">請輸入卡號</string> 28 <string name="mol_card_hint">請輸入卡號</string>
30 <string name="mol_pass_hint">請輸入密碼</string> 29 <string name="mol_pass_hint">請輸入密碼</string>
31 <string name="pay_ok">OK</string> 30 <string name="pay_ok">OK</string>
32 <string name="pay_error">支付失敗,請再重試。</string> 31 <string name="pay_error">支付失敗,請再重試。</string>
33 <string name="card_input_tip">請輸入點卡信息</string> 32 <string name="card_input_tip">請輸入點卡信息</string>
34 <string name="amount_choice_tip">請選擇支付金額</string> 33 <string name="amount_choice_tip">請選擇支付金額</string>
35 <!-- paypal --> 34 <!-- paypal -->
36 <string name="paypal_choice_tip">請選擇支付金額</string> 35 <string name="paypal_choice_tip">請選擇支付金額</string>
37 <!-- gp --> 36 <!-- gp -->
38 <string name="gp_choice_tip">請選擇支付金額</string> 37 <string name="gp_choice_tip">請選擇支付金額</string>
39 38
40 </resources> 39 </resources>
android/GameSDKRelease/res/values-zh/strings.xml
1 <resources> 1 <resources>
2 2
3 <string name="app_name">LoginSDK</string> 3 <string name="app_name">LoginSDK</string>
4 <string name="user_name_hint">邮箱</string> 4 <string name="user_name_hint">邮箱</string>
5 <string name="password_hint">密码</string> 5 <string name="password_hint">密码</string>
6 <string name="quick_login">一键进入</string>
7 <string name="login">登录</string> 6 <string name="login">登录</string>
8 <string name="signup">注册</string> 7 <string name="signup">注册</string>
9 <string name="bind">绑定邮箱</string> 8 <string name="bind">绑定邮箱</string>
10 <string name="loading">加载中……</string> 9 <string name="loading">加载中……</string>
11 <!-- toast --> 10 <!-- toast -->
12 <string name="illegal_uname_tip">请输入正确的邮箱</string> 11 <string name="illegal_uname_tip">请输入正确的邮箱</string>
13 <string name="illegal_pwd_tip">密码格式不正确 (6–20字符)</string> 12 <string name="illegal_pwd_tip">密码格式不正确 (6–20字符)</string>
14 <string name="illegal_user_exist">邮箱已注册</string> 13 <string name="illegal_user_exist">邮箱已注册</string>
15 <string name="illegal_pwd_invalid">密码不正确,请重试</string> 14 <string name="illegal_pwd_invalid">密码不正确,请重试</string>
16 <string name="illegal_user_not_exist">邮箱未注册</string> 15 <string name="illegal_user_not_exist">邮箱未注册</string>
17 <string name="invalid_email">请输入正确的邮箱</string> 16 <string name="invalid_email">请输入正确的邮箱</string>
18 <string name="login_fail">登录失败</string> 17 <string name="login_fail">登录失败</string>
19 <string name="signup_fail">注册失败</string> 18 <string name="signup_fail">注册失败</string>
20 <string name="bind_fail">绑定失败</string> 19 <string name="bind_fail">绑定失败</string>
21 <string name="net_error">网络无法连接,请查看网络设置</string> 20 <string name="net_error">网络无法连接,请查看网络设置</string>
22 <!-- facebook id --> 21 <!-- facebook id -->
23 <!-- payment --> 22 <!-- payment -->
24 <!-- title --> 23 <!-- title -->
25 <string name="title_payment_choice">请选择支付方式</string> 24 <string name="title_payment_choice">请选择支付方式</string>
26 <!-- summary title --> 25 <!-- summary title -->
27 <string name="summary_title">兑换表:</string> 26 <string name="summary_title">兑换表:</string>
28 <!-- payment --> 27 <!-- payment -->
29 <string name="mol_card_hint">请输入卡号</string> 28 <string name="mol_card_hint">请输入卡号</string>
30 <string name="mol_pass_hint">请输入密码</string> 29 <string name="mol_pass_hint">请输入密码</string>
31 <string name="pay_ok">OK</string> 30 <string name="pay_ok">OK</string>
32 <string name="pay_error">充值失败,请重试</string> 31 <string name="pay_error">充值失败,请重试</string>
33 <string name="card_input_tip">请输入点卡信息</string> 32 <string name="card_input_tip">请输入点卡信息</string>
34 <string name="amount_choice_tip">请选择支付金额</string> 33 <string name="amount_choice_tip">请选择支付金额</string>
35 <!-- paypal --> 34 <!-- paypal -->
36 <string name="paypal_choice_tip">请选择支付金额</string> 35 <string name="paypal_choice_tip">请选择支付金额</string>
37 <!-- gp --> 36 <!-- gp -->
38 <string name="gp_choice_tip">请选择支付金额</string> 37 <string name="gp_choice_tip">请选择支付金额</string>
39 </resources> 38 </resources>
android/GameSDKRelease/res/values/colors.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <resources> 2 <resources>
3 3
4 <color name="line">#e5e5e5</color> 4 <color name="line">#e5e5e5</color>
5 <color name="light_gray">#c9c9c9</color>
6 <color name="dark_gray">#d9d9d9</color>
5 <color name="orange_normal">#fe5f27</color> 7 <color name="orange_normal">#fe5f27</color>
6 <color name="orange_pressed">#fe0000</color> 8 <color name="orange_pressed">#fe0000</color>
7 <color name="black_text">#3f3c38</color> 9 <color name="black_text">#3f3c38</color>
8 <color name="btn_white_normal">#f8f7f4</color> 10 <color name="btn_white_normal">#f8f7f4</color>
9 <color name="btn_white_pressed">#f8f7f4</color> 11 <color name="btn_white_pressed">#f8f7f4</color>
10 12
11 <color name="common_gray">#ecf0f0</color> 13 <color name="common_gray">#ecf0f0</color>
12 <color name="common_gray2">#e0e6e8</color> 14 <color name="common_gray2">#e0e6e8</color>
13 <color name="translucent">#7e000000</color> 15 <color name="translucent">#7e000000</color>
14 <color name="transparent">#00000000</color> 16 <color name="transparent">#00000000</color>
15 17
16 <color name="payment_common_bg">#f2efeb</color> 18 <color name="payment_common_bg">#f2efeb</color>
17 <color name="summary_bg">#d6d4d1</color> 19 <color name="summary_bg">#d6d4d1</color>
18 <color name="background_color">#00a0e9</color> 20 <color name="background_color">#00a0e9</color>
19 21
20 <dimen name="com_facebook_picker_place_image_size">64dp</dimen> 22 <dimen name="com_facebook_picker_place_image_size">64dp</dimen>
21 23
22 <color name="com_facebook_picker_search_bar_background">#f5f5f7</color> 24 <color name="com_facebook_picker_search_bar_background">#f5f5f7</color>
23 <color name="com_facebook_picker_search_bar_text">#bcbdc2</color> 25 <color name="com_facebook_picker_search_bar_text">#bcbdc2</color>
24 26
25 </resources> 27 </resources>
android/GameSDKRelease/res/values/strings.xml
1 <resources> 1 <resources>
2 2
3 <string name="app_name">LoginSDK</string> 3 <string name="app_name">LoginSDK</string>
4 <string name="user_name_hint">Email</string> 4 <string name="user_name_hint">Email</string>
5 <string name="password_hint">Password</string> 5 <string name="password_hint">Password</string>
6 <string name="quick_login">Play Now</string> 6 <string name="quick_login">Play(%sS)</string>
7 <string name="quick_play">Play</string>
7 <string name="login">Login</string> 8 <string name="login">Login</string>
8 <string name="signup">Signup</string> 9 <string name="signup">Signup</string>
9 <string name="bind">Bound to email</string> 10 <string name="bind">Bound to email</string>
10 <string name="loading">Loading</string> 11 <string name="loading">Loading</string>
11 12
12 <!-- toast --> 13 <!-- toast -->
13 <string name="illegal_uname_tip">Invalid Email</string> 14 <string name="illegal_uname_tip">Invalid Email</string>
14 <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> 15 <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string>
15 <string name="illegal_user_exist">Email has already used</string> 16 <string name="illegal_user_exist">Email has already used</string>
16 <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string> 17 <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string>
17 <string name="illegal_user_not_exist">Invalid Email</string> 18 <string name="illegal_user_not_exist">Invalid Email</string>
18 <string name="invalid_email">Invalid Email</string> 19 <string name="invalid_email">Invalid Email</string>
19 <string name="login_fail">Login failed</string> 20 <string name="login_fail">Login failed</string>
20 <string name="signup_fail">Signup failed</string> 21 <string name="signup_fail">Signup failed</string>
21 <string name="bind_fail">Bound failed</string> 22 <string name="bind_fail">Bound failed</string>
22 <string name="net_error">Internet unavailable, please check</string> 23 <string name="net_error">Internet unavailable, please check</string>
23 24 <string name="gump_login">Login with Gumptech</string>
25 <string name="signup_success">Sign Up Successfully</string>
24 <!-- facebook --> 26 <!-- facebook -->
25 <string name="com_facebook_dialogloginactivity_ok_button">OK</string> 27 <string name="com_facebook_dialogloginactivity_ok_button">OK</string>
26 <string name="com_facebook_loginview_log_out_button">Log out</string> 28 <string name="com_facebook_loginview_log_out_button">Log out</string>
27 <!-- string name="com_facebook_loginview_log_in_button">Log in with Facebook</string --> 29 <!-- string name="com_facebook_loginview_log_in_button">Log in with Facebook</string -->
28 <string name="com_facebook_loginview_log_in_button">Sign up with Facebook</string> 30 <string name="com_facebook_loginview_log_in_button">Sign up with Facebook</string>
29 <string name="com_facebook_loginview_logged_in_as">Logged in as: %1$s</string> 31 <string name="com_facebook_loginview_logged_in_as">Logged in as: %1$s</string>
30 <string name="com_facebook_loginview_logged_in_using_facebook">Logged in using Facebook</string> 32 <string name="com_facebook_loginview_logged_in_using_facebook">Logged in using Facebook</string>
31 <string name="com_facebook_loginview_log_out_action">Log out</string> 33 <string name="com_facebook_loginview_log_out_action">Log out</string>
32 <string name="com_facebook_loginview_cancel_action">Cancel</string> 34 <string name="com_facebook_loginview_cancel_action">Cancel</string>
33 <string name="com_facebook_logo_content_description">Facebook Logo</string> 35 <string name="com_facebook_logo_content_description">Facebook Logo</string>
34 <string name="com_facebook_usersettingsfragment_log_in_button">Log in&#8230;</string> 36 <string name="com_facebook_usersettingsfragment_log_in_button">Log in&#8230;</string>
35 <string name="com_facebook_usersettingsfragment_logged_in">Logged in</string> 37 <string name="com_facebook_usersettingsfragment_logged_in">Logged in</string>
36 <string name="com_facebook_usersettingsfragment_not_logged_in">Not logged in</string> 38 <string name="com_facebook_usersettingsfragment_not_logged_in">Not logged in</string>
37 <string name="com_facebook_placepicker_subtitle_format">%1$s • %2$,d were here</string> 39 <string name="com_facebook_placepicker_subtitle_format">%1$s • %2$,d were here</string>
38 <string name="com_facebook_placepicker_subtitle_catetory_only_format">%1$s</string> 40 <string name="com_facebook_placepicker_subtitle_catetory_only_format">%1$s</string>
39 <string name="com_facebook_placepicker_subtitle_were_here_only_format">%1$,d were here</string> 41 <string name="com_facebook_placepicker_subtitle_were_here_only_format">%1$,d were here</string>
40 <string name="com_facebook_picker_done_button_text">Done</string> 42 <string name="com_facebook_picker_done_button_text">Done</string>
41 <string name="com_facebook_choose_friends">Choose Friends</string> 43 <string name="com_facebook_choose_friends">Choose Friends</string>
42 <string name="com_facebook_nearby">Nearby</string> 44 <string name="com_facebook_nearby">Nearby</string>
43 <string name="com_facebook_loading">Loading...</string> 45 <string name="com_facebook_loading">Loading...</string>
44 <string name="com_facebook_internet_permission_error_title">AndroidManifest Error</string> 46 <string name="com_facebook_internet_permission_error_title">AndroidManifest Error</string>
45 <string name="com_facebook_internet_permission_error_message">WebView login requires INTERNET permission</string> 47 <string name="com_facebook_internet_permission_error_message">WebView login requires INTERNET permission</string>
46 <string name="com_facebook_requesterror_web_login">Your Facebook account is locked. Please log into www.facebook.com to continue.</string> 48 <string name="com_facebook_requesterror_web_login">Your Facebook account is locked. Please log into www.facebook.com to continue.</string>
47 <string name="com_facebook_requesterror_relogin">Please log into this app again to reconnect your Facebook account.</string> 49 <string name="com_facebook_requesterror_relogin">Please log into this app again to reconnect your Facebook account.</string>
48 <string name="com_facebook_requesterror_password_changed">Your Facebook password has changed. Please log into this app again to reconnect your Facebook account.</string> 50 <string name="com_facebook_requesterror_password_changed">Your Facebook password has changed. Please log into this app again to reconnect your Facebook account.</string>
49 <string name="com_facebook_requesterror_reconnect">Please log into this app again to reconnect your Facebook account.</string> 51 <string name="com_facebook_requesterror_reconnect">Please log into this app again to reconnect your Facebook account.</string>
50 <string name="com_facebook_requesterror_permissions">This app doesn’t have permission to do this. To change permissions, try logging into the app again.</string> 52 <string name="com_facebook_requesterror_permissions">This app doesn’t have permission to do this. To change permissions, try logging into the app again.</string>
51 53
52 <!-- 支付相关 --> 54 <!-- 支付相关 -->
53 <!-- title --> 55 <!-- title -->
54 <string name="title_mycard">Mycard點數儲值</string> 56 <string name="title_mycard">Mycard點數儲值</string>
55 <string name="title_mycard_member">Mycard會員扣點</string> 57 <string name="title_mycard_member">Mycard會員扣點</string>
56 <string name="title_mycard_billing">Mycard billing</string> 58 <string name="title_mycard_billing">Mycard Billing</string>
57 <string name="title_mol">MOLPoints Gift Card</string> 59 <string name="title_mol">MOLPoints Gift Card</string>
58 <string name="title_mol_wallet">MOLPoints E-Wallet</string> 60 <string name="title_mol_wallet">MOLPoints E-Wallet</string>
59 <string name="title_12call">12Call</string> 61 <string name="title_12call">12Call</string>
60 <string name="title_tm">True Money</string> 62 <string name="title_tm">True Money</string>
61 <string name="title_zest">Zest</string> 63 <string name="title_zest">Zest</string>
62 <string name="title_gp">Google play</string> 64 <string name="title_gp">Google play</string>
63 <string name="title_paypal">Paypal</string> 65 <string name="title_paypal">Paypal</string>
64 <string name="title_rixty">Rixty</string> 66 <string name="title_rixty">Rixty</string>
65 <string name="title_ngan">NganLoung</string> 67 <string name="title_ngan">NganLoung</string>
66 <string name="title_easy2pay">Easy2Pay</string> 68 <string name="title_easy2pay">Easy2Pay</string>
69 <string name="title_indomog_voucher">Indomog</string>
70 <string name="title_indomog_account">Indomog Account Balance</string>
67 <string name="title_payment_choice">Select payment methods</string> 71 <string name="title_payment_choice">Select payment methods</string>
68 <!-- summary title --> 72 <!-- summary title -->
69 <string name="summary_title">Price list:</string> 73 <string name="summary_title">Price list:</string>
70 74
71 <!-- payment --> 75 <!-- payment -->
72 <string name="useranme_pattern">Account:%s</string> 76 <string name="useranme_pattern">Account:%s</string>
73 <string name="mol_card_hint">Card No.</string> 77 <string name="mol_card_hint">Card No.</string>
74 <string name="mol_pass_hint">Password</string> 78 <string name="mol_pass_hint">Password</string>
75 <string name="pay_ok">OK</string> 79 <string name="pay_ok">OK</string>
76 <string name="pay_error">Charging Failed, please try again.</string> 80 <string name="pay_error">Charging Failed, please try again.</string>
77 <string name="card_input_tip">Card information</string> 81 <string name="card_input_tip">Card information</string>
78 <string name="amount_choice_tip">Please select the amount</string> 82 <string name="amount_choice_tip">Please select the amount</string>
79 83
80 <!-- paypal --> 84 <!-- paypal -->
81 <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string> 85 <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string>
82 <string name="paypal_choice_tip">Please select the amount</string> 86 <string name="paypal_choice_tip">Please select the amount</string>
83 <!-- gp --> 87 <!-- gp -->
84 <string name="gp_choice_tip">Please select the amount</string> 88 <string name="gp_choice_tip">Please select the amount</string>
85 89
86 </resources> 90 </resources>
android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
1 package com.gumptech.loginsdk.sample; 1 package com.gumptech.loginsdk.sample;
2 2
3 import android.app.Activity; 3 import android.app.Activity;
4 import android.content.Intent; 4 import android.content.Intent;
5 import android.os.Bundle; 5 import android.os.Bundle;
6 import android.util.Log; 6 import android.util.Log;
7 import android.view.View; 7 import android.view.View;
8 import android.widget.Button; 8 import android.widget.Button;
9 import android.widget.TextView; 9 import android.widget.TextView;
10 import android.widget.Toast; 10 import android.widget.Toast;
11 11
12 import com.gumptech.sdk.GumpPreference; 12 import com.gumptech.sdk.GumpPreference;
13 import com.gumptech.sdk.GumpSDK; 13 import com.gumptech.sdk.GumpSDK;
14 14
15 public class MainActivity extends Activity implements GumpSDK.Callback { 15 public class MainActivity extends Activity implements GumpSDK.Callback {
16 16
17 private TextView userInfo; 17 private TextView userInfo;
18 18
19 private Button btnLogout; 19 private Button btnLogout;
20 private Button btnBind; 20 private Button btnBind;
21 21
22 @Override 22 @Override
23 protected void onCreate(Bundle savedInstanceState) { 23 protected void onCreate(Bundle savedInstanceState) {
24 super.onCreate(savedInstanceState); 24 super.onCreate(savedInstanceState);
25 setContentView(R.layout.activity_main); 25 setContentView(R.layout.activity_main);
26 userInfo = (TextView) findViewById(R.id.user_info); 26 userInfo = (TextView) findViewById(R.id.user_info);
27 btnLogout = (Button) findViewById(R.id.logout); 27 btnLogout = (Button) findViewById(R.id.logout);
28 btnBind = (Button) findViewById(R.id.bind); 28 btnBind = (Button) findViewById(R.id.bind);
29 btnLogout.setOnClickListener(new View.OnClickListener() { 29 btnLogout.setOnClickListener(new View.OnClickListener() {
30 30
31 @Override 31 @Override
32 public void onClick(View v) { 32 public void onClick(View v) {
33 GumpSDK.logout(MainActivity.this, MainActivity.this); 33 GumpSDK.logout(MainActivity.this, MainActivity.this);
34 } 34 }
35 }); 35 });
36 btnBind.setOnClickListener(new View.OnClickListener() { 36 btnBind.setOnClickListener(new View.OnClickListener() {
37 37
38 @Override 38 @Override
39 public void onClick(View v) { 39 public void onClick(View v) {
40 GumpSDK.boundMail(MainActivity.this); 40 GumpSDK.boundMail(MainActivity.this);
41 } 41 }
42 }); 42 });
43 findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() { 43 findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() {
44 44
45 @Override 45 @Override
46 public void onClick(View v) { 46 public void onClick(View v) {
47 Bundle payInfo = new Bundle(); 47 Bundle payInfo = new Bundle();
48 payInfo.putString("nick", "thi"); 48 payInfo.putString("nick", "thi");
49 payInfo.putString("product", "元宝"); 49 payInfo.putString("product", "元宝");
50 payInfo.putFloat("amount", 0.0f); 50 payInfo.putFloat("amount", 0.0f);
51 payInfo.putString("extraInfo", "This is demo!"); 51 payInfo.putString("extraInfo", "This is demo!");
52 payInfo.putString("serverId", "B4003"); 52 payInfo.putString("serverId", "B4003");
53 payInfo.putString("roleId", "10010"); 53 payInfo.putString("roleId", "10010");
54 GumpSDK.pay(MainActivity.this, payInfo); 54 GumpSDK.pay(MainActivity.this, payInfo);
55 } 55 }
56 }); 56 });
57 GumpSDK.init("10014", "7b9d31aa17b849b238ab79cef0733041", "301596413332339", "1000"); 57 GumpSDK.init("10014", "7b9d31aa17b849b238ab79cef0733041", "301596413332339", "1000");
58 GumpSDK.start(this); 58 GumpSDK.start(this);
59 } 59 }
60 60
61 @Override 61 @Override
62 protected void onActivityResult(int requestCode, int resultCode, Intent data) { 62 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
63 Log.d("Main", "activity requestCode:" + requestCode + ",resultCode:" + resultCode); 63 Log.d("Main", "activity requestCode:" + requestCode + ",resultCode:" + resultCode);
64 if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) { 64 if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) {
65 if (resultCode == RESULT_OK) { 65 if (resultCode == RESULT_OK) {
66 int uid = data.getIntExtra("userId", -1); 66 int uid = data.getIntExtra("userId", -1);
67 int accountType = data.getIntExtra("accountType", -1); 67 int accountType = data.getIntExtra("accountType", -1);
68 String sessionkey = data.getStringExtra("sessionKey"); 68 String sessionkey = data.getStringExtra("sessionKey");
69 userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey); 69 userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey);
70 btnLogout.setVisibility(View.VISIBLE); 70 btnLogout.setVisibility(View.VISIBLE);
71 if (accountType == GumpPreference.ACCOUNT_TYPE_QUICK_REG) 71 if (accountType == GumpPreference.ACCOUNT_TYPE_QUICK_REG)
72 btnBind.setVisibility(View.VISIBLE); 72 btnBind.setVisibility(View.VISIBLE);
73 } else if (resultCode == RESULT_CANCELED) { 73 } else if (resultCode == RESULT_CANCELED) {
74 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); 74 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
75 } 75 }
76 } else if (requestCode == GumpSDK.BOUND_REQUEST_CODE) {
77 if (resultCode == RESULT_OK) {
78 int uid = data.getIntExtra("userId", -1);
79 int accountType = data.getIntExtra("accountType", -1);
80 String sessionkey = data.getStringExtra("sessionKey");
81 userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey);
82 btnBind.setVisibility(View.GONE);
83 } else if (resultCode == RESULT_CANCELED) {
84 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
85 }
86 } else if (requestCode == GumpSDK.PAY_REQUEST_CODE) { 76 } else if (requestCode == GumpSDK.PAY_REQUEST_CODE) {
87 if (resultCode == RESULT_OK) { 77 if (resultCode == RESULT_OK) {
88 int code = data.getIntExtra("code", -1); 78 int code = data.getIntExtra("code", -1);
89 String msg = data.getStringExtra("msg"); 79 String msg = data.getStringExtra("msg");
90 int orderId = data.getIntExtra("orderId", -1); 80 int orderId = data.getIntExtra("orderId", -1);
91 String extraInfo = data.getStringExtra("extraInfo"); 81 String extraInfo = data.getStringExtra("extraInfo");
92 Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show(); 82 Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show();
93 } else if (resultCode == RESULT_CANCELED) { 83 } else if (resultCode == RESULT_CANCELED) {
94 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); 84 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
95 } 85 }
96 } 86 }
97 super.onActivityResult(requestCode, resultCode, data); 87 super.onActivityResult(requestCode, resultCode, data);
98 } 88 }
99 89
100 @Override 90 @Override
101 public void onLogout() { 91 public void onLogout() {
102 btnLogout.setVisibility(View.GONE); 92 btnLogout.setVisibility(View.GONE);
103 if (btnBind.getVisibility() == View.VISIBLE) 93 if (btnBind.getVisibility() == View.VISIBLE)
104 btnBind.setVisibility(View.GONE); 94 btnBind.setVisibility(View.GONE);
105 userInfo.append(" is logout"); 95 userInfo.append(" is logout");
106 } 96 }
107 97
108 } 98 }
109 99
doc/AndroidDocument.md
1 # Gump Android SDK使用文档 1 # Gump Android SDK使用文档
2 2
3 3
4 接入手册 4 接入手册
5 V 1.5 5 V 1.5
6 2014年07月23日 6 2014年07月23日
7 7
8 快速入口: 8 快速入口:
9 [支付部分服务端回调文档](http://git.letsgame.mobi/document/gumptech-document/blob/master/ServerDocument.md) 9 [支付部分服务端回调文档](http://git.letsgame.mobi/document/gumptech-document/blob/master/ServerDocument.md)
10 10
11 ## 目录 11 ## 目录
12 12
13 * [第一章 接入指南](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) 13 * [第一章 接入指南](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#)
14 - [1. 导入资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1) 14 - [1. 导入资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1)
15 - [2. 添加资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2) 15 - [2. 添加资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2)
16 - [3. 代码实现](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#3) 16 - [3. 代码实现](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#3)
17 > [1.修改AndroidManifest.xml文件](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-androidmanifest-xml) 17 > [1.修改AndroidManifest.xml文件](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-androidmanifest-xml)
18 > [2.向Gump平台索要游戏ID(GID),完成代码接入](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2-gump-id-gid) 18 > [2.向Gump平台索要游戏ID(GID),完成代码接入](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2-gump-id-gid)
19 * [第二章 常见问题](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) 19 * [第二章 常见问题](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#)
20 - [问题1: 如何避免混淆对SDK的影响?](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-sdk) 20 - [问题1: 如何避免混淆对SDK的影响?](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-sdk)
21 21
22 22
23 23
24 24
25 ## 第一章 接入指南 25 ## 第一章 接入指南
26 配置环境 26 配置环境
27 27
28 本接口API 适用于Android2.2以上各版本Android平台。 28 本接口API 适用于Android2.2以上各版本Android平台。
29 ### 1. 导入资源工程 29 ### 1. 导入资源工程
30 1.将LoginSDK资源工程拷贝到工作空间,在eclipse中的导航栏右键弹出如图1画面,选择Import导入资源工程,如图1. 30 1.将LoginSDK资源工程拷贝到工作空间,在eclipse中的导航栏右键弹出如图1画面,选择Import导入资源工程,如图1.
31 31
32 ![](images/1.png) 32 ![](images/1.png)
33 图1 33 图1
34 34
35 2.导入工程后,右键此工程,在Properties->Android中选中此工程为library工程(勾选红色方框标识处)如图2。 35 2.导入工程后,右键此工程,在Properties->Android中选中此工程为library工程(勾选红色方框标识处)如图2。
36 ![](images/2.png) 36 ![](images/2.png)
37 图 2 37 图 2
38 ### 2. 添加资源工程 38 ### 2. 添加资源工程
39 添加资源工程为游戏项目的 library。右键游戏项目,在Properties->Android中点击Add添加资源工程为项目工程的library,结果如图3。 39 添加资源工程为游戏项目的 library。右键游戏项目,在Properties->Android中点击Add添加资源工程为项目工程的library,结果如图3。
40 ![](images/3.png) 40 ![](images/3.png)
41 图 3 41 图 3
42 42
43 43
44 注意:如果ADT版本低于14,ADT不支持jar包自动引入,请手动拷贝libs到您的工作 44 注意:如果ADT版本低于14,ADT不支持jar包自动引入,请手动拷贝libs到您的工作
45 空间。 45 空间。
46 46
47 Eclipse查看ADT版本号的方法: 47 Eclipse查看ADT版本号的方法:
48 Help==>About Eclips点击Android对应的图标就可以查看版本了. 48 Help==>About Eclips点击Android对应的图标就可以查看版本了.
49 如图,红色框部分就是ADT版本号。 49 如图,红色框部分就是ADT版本号。
50 50
51 ![](images/4.png) 51 ![](images/4.png)
52 52
53 53
54 ### 3. 代码实现 54 ### 3. 代码实现
55 #### 1、 修改AndroidManifest.xml文件 55 #### 1、 修改AndroidManifest.xml文件
56 首先添加必要的权限,如下所示: 56 首先添加必要的权限,如下所示:
57 57
58 <uses-permission android:name="android.permission.INTERNET" /> 58 <uses-permission android:name="android.permission.INTERNET" />
59 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 59 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
60 <uses-permission android:name="android.permission.BLUETOOTH" /> 60 <uses-permission android:name="android.permission.BLUETOOTH" />
61 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 61 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
62 <uses-permission android:name="android.permission.WRITE_SETTINGS"/> 62 <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
63 <uses-permission android:name="android.permission.GET_ACCOUNTS"/> 63 <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
64 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 64 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
65 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 65 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
66 <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> 66 <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
67 <!-- for card.io card scanning --> 67 <!-- for card.io card scanning -->
68 <uses-permission android:name="android.permission.CAMERA" /> 68 <uses-permission android:name="android.permission.CAMERA" />
69 <uses-permission android:name="android.permission.VIBRATE" /> 69 <uses-permission android:name="android.permission.VIBRATE" />
70 <uses-feature android:name="android.hardware.camera" android:required="false" /> 70 <uses-feature android:name="android.hardware.camera" android:required="false" />
71 <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> 71 <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
72 <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> 72 <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. -->
73 <uses-permission android:name="com.android.vending.BILLING" /> 73 <uses-permission android:name="com.android.vending.BILLING" />
74 74
75 其次注册相应的Activity,具体如下: 75 其次注册相应的Activity,具体如下:
76 76
77 <activity 77 <activity
78 android:name="com.gumptech.sdk.ContainerActivity" 78 android:name="com.gumptech.sdk.ContainerActivity"
79 android:theme="@style/container_dialog" 79 android:theme="@style/container_dialog"
80 android:configChanges="orientation|screenLayout" > 80 android:configChanges="orientation|screenLayout" >
81 </activity> 81 </activity>
82 <activity 82 <activity
83 android:name="com.facebook.LoginActivity" 83 android:name="com.facebook.LoginActivity"
84 android:theme="@android:style/Theme.Translucent.NoTitleBar" > 84 android:theme="@android:style/Theme.Translucent.NoTitleBar" >
85 </activity> 85 </activity>
86 <activity 86 <activity
87 android:name="com.gumptech.sdk.PaymentActivity" 87 android:name="com.gumptech.sdk.PaymentActivity"
88 android:configChanges="orientation|screenLayout" 88 android:configChanges="orientation|screenLayout"
89 android:theme="@android:style/Theme.Translucent.NoTitleBar" > 89 android:theme="@android:style/Theme.Translucent.NoTitleBar" >
90 </activity> 90 </activity>
91 <activity 91 <activity
92 android:name="com.gumptech.sdk.ExchangeWindow" 92 android:name="com.gumptech.sdk.ExchangeWindow"
93 android:configChanges="orientation|screenLayout" 93 android:configChanges="orientation|screenLayout"
94 android:theme="@style/ex_win" > 94 android:theme="@style/ex_win" >
95 </activity> 95 </activity>
96 <!-- paypal --> 96 <!-- paypal -->
97 <service 97 <service
98 android:name="com.paypal.android.sdk.payments.PayPalService" 98 android:name="com.paypal.android.sdk.payments.PayPalService"
99 android:exported="false" /> 99 android:exported="false" />
100 100
101 <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" /> 101 <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" />
102 <activity android:name="com.paypal.android.sdk.payments.LoginActivity" /> 102 <activity android:name="com.paypal.android.sdk.payments.LoginActivity" />
103 <activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" /> 103 <activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" />
104 <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" /> 104 <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" />
105 <activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" /> 105 <activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" />
106 <activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" /> 106 <activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" />
107 <activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" /> 107 <activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" />
108 <activity 108 <activity
109 android:name="io.card.payment.CardIOActivity" 109 android:name="io.card.payment.CardIOActivity"
110 android:configChanges="keyboardHidden|orientation" /> 110 android:configChanges="keyboardHidden|orientation" />
111 <activity android:name="io.card.payment.DataEntryActivity" /> 111 <activity android:name="io.card.payment.DataEntryActivity" />
112 112
113 #### 2、 向Gump平台索要游戏ID(GID),完成代码接入 113 #### 2、 向Gump平台索要游戏ID(GID),完成代码接入
114 1.调用GumpSDK前需要执行初始化。 114 1.调用GumpSDK前需要执行初始化。
115 若不需要分渠道 115 若不需要分渠道
116 116
117 GumpSDK.init(Appid, Appkey,FacebookId); 117 GumpSDK.init(Appid, Appkey,FacebookId);
118 如果需要定义渠道,必须使用如下方法 118 如果需要定义渠道,必须使用如下方法
119 119
120 GumpSDK.init(Appid, Appkey,FacebookId,ChannelId); 120 GumpSDK.init(Appid, Appkey,FacebookId,ChannelId);
121 2.调用GumpSDK的开始方法,将执行登录流程,需要一个Activity实例作参数 121 2.调用GumpSDK的开始方法,将执行登录流程,需要一个Activity实例作参数
122 122
123 GumpSDK.start(Activity); 123 GumpSDK.start(Activity);
124 开发者需要在调用的Activity里重写onActivityResult方法以接受用户的登录结果,通常如下: 124 开发者需要在调用的Activity里重写onActivityResult方法以接受用户的登录结果,通常如下:
125 125
126 //登录请求返回结果 126 //登录请求返回结果
127 if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) { 127 if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) {
128 if (resultCode == RESULT_OK) { 128 if (resultCode == RESULT_OK) {
129 int uid = data.getIntExtra("userId", -1); 129 int uid = data.getIntExtra("userId", -1);
130 int accountType = data.getIntExtra("accountType", -1); 130 int accountType = data.getIntExtra("accountType", -1);
131 String sessionkey = data.getStringExtra("sessionKey"); 131 String sessionkey = data.getStringExtra("sessionKey");
132 132
133 } else if (resultCode == RESULT_CANCELED) { 133 } else if (resultCode == RESULT_CANCELED) {
134 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); 134 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
135 } 135 }
136 } 136 }
137 137
138 如上将收到成功登录用的userid,此Id标识唯一用户! 138 如上将收到成功登录用的userid,此Id标识唯一用户!
139 3.用户绑定邮箱,并填写密码 139 3.用户绑定邮箱,并填写密码
140 140
141 GumpSDK.boundMail(MainActivity.this); 141 GumpSDK.boundMail(MainActivity.this);
142 开发者需要在调用的Activity里重写onActivityResult方法以接受用户的绑定结果,通常如下: 142 开发者需要在调用的Activity里重写onActivityResult方法以接受用户的绑定结果,通常如下:
143 143
144 //绑定邮箱请求返回结果 144 //绑定邮箱请求返回结果
145 if (requestCode == GumpSDK.BOUND_REQUEST_CODE) { 145 if (requestCode == GumpSDK.BOUND_REQUEST_CODE) {
146 if (resultCode == RESULT_OK) { 146 if (resultCode == RESULT_OK) {
147 int uid = data.getIntExtra("userId", -1); 147 int uid = data.getIntExtra("userId", -1);
148 int accountType = data.getIntExtra("accountType", -1); 148 int accountType = data.getIntExtra("accountType", -1);
149 String sessionkey = data.getStringExtra("sessionKey"); 149 String sessionkey = data.getStringExtra("sessionKey");
150 } else if (resultCode == RESULT_CANCELED) { 150 } else if (resultCode == RESULT_CANCELED) {
151 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); 151 Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
152 } 152 }
153 } 153 }
154 4.支付功能 154 4.支付功能
155 155
156 1)使用gump通行证登录
156 Bundle payInfo = new Bundle(); 157 Bundle payInfo = new Bundle();
157 payInfo.putString("nick", "thi"); 158 payInfo.putString("nick", "thi");
158 payInfo.putString("product", "元宝"); 159 payInfo.putString("product", "元宝");
159 payInfo.putFloat("amount", 40.0f); 160 payInfo.putFloat("amount", 40.0f);
160 payInfo.putString("extraInfo", "This is demo!"); 161 payInfo.putString("extraInfo", "This is demo!");
161 payInfo.putString("serverId", "B4003"); 162 payInfo.putString("serverId", "B4003");
162 payInfo.putString("roleId", "10010"); 163 payInfo.putString("roleId", "10010");
163 GumpSDK.pay(MainActivity.this, payInfo); 164 GumpSDK.pay(MainActivity.this, payInfo);
164 调用pay方法时,必须穿入一个bundle对象,包含如上字段,可以设置值为空,但是字段必须全部包含,支付完成仍然通过onActivityResult回调,requestCode为GumpSDK.PAY_REQUEST_CODE,回调信息除code和msg外,还含有orderId和传入的extraInfo. 165 调用pay方法时,必须穿入一个bundle对象,包含如上字段,可以设置值为空,但是字段必须全部包含,支付完成仍然通过onActivityResult回调,requestCode为GumpSDK.PAY_REQUEST_CODE,回调信息除code和msg外,还含有orderId和传入的extraInfo.
166 2)未使用gump通行证登录,需要传入用户id
167
168 Bundle payInfo = new Bundle();
169 payInfo.putString("nick", "thi");
170 payInfo.putString("product", "元宝");
171 payInfo.putFloat("amount", 40.0f);
172 payInfo.putString("extraInfo", "This is demo!");
173 payInfo.putString("serverId", "B4003");
174 payInfo.putString("roleId", "10010");
175 GumpSDK.pay(MainActivity.this, payInfo,"1021");
165 5.注销登录 176 5.注销登录
166 177
167 GumpSDK.logout(Activity,GumpSDK.Callback); 178 GumpSDK.logout(Activity,GumpSDK.Callback);
168 当此方法调用后,用户退出登录,并会通过callback接口通知调用程序! 179 当此方法调用后,用户退出登录,并会通过callback接口通知调用程序!
169 ## 第二章 常见问题 180 ## 第二章 常见问题
170 ### 问题1: 如何避免混淆对SDK的影响? 181 ### 问题1: 如何避免混淆对SDK的影响?
171 解答:有些开发者对接入了SDK的程序进行混淆时,有可能会覆盖某些java 182 解答:有些开发者对接入了SDK的程序进行混淆时,有可能会覆盖某些java
172 类,导致SDK无法正常工作,解决方法如下: 183 类,导致SDK无法正常工作,解决方法如下:
173 Ø 请开发者在混淆配置文件proguard.cfg或proguard-project.txt的最后加上 184 Ø 请开发者在混淆配置文件proguard.cfg或proguard-project.txt的最后加上
174 185
175 -keep class com.gumptech.sdk.GumpSDK{ 186 -keep class com.gumptech.sdk.GumpSDK{
176 public static final <fields>; 187 public static final <fields>;
177 public static void init(java.lang.String,java.lang.String); 188 public static void init(java.lang.String,java.lang.String);
178 public static void init(java.lang.String,java.lang.String,java.lang.String,java.lang.String); 189 public static void init(java.lang.String,java.lang.String,java.lang.String,java.lang.String);
179 public static void start(android.app.Activity); 190 public static void start(android.app.Activity);
180 public static void logout(android.app.Activity); 191 public static void logout(android.app.Activity);
181 public static void boundMail(android.app.Activity); 192 public static void boundMail(android.app.Activity);
182 } 193 }
183 -keep class com.gumptech.sdk.view.* {*;} 194 -keep class com.gumptech.sdk.view.* {*;}
184 -keep class com.gumptech.sdk.GumpSDK$Callback{ 195 -keep class com.gumptech.sdk.GumpSDK$Callback{
185 void onLogout(); 196 void onLogout();
186 } 197 }
187 -keep class com.gumptech.sdk.GumpPreference{ 198 -keep class com.gumptech.sdk.GumpPreference{
188 public static final <fields>; 199 public static final <fields>;
189 } 200 }
190 -keep class com.facebook.** { *; } 201 -keep class com.facebook.** { *; }
191 202
192 -keepattributes Signature 203 -keepattributes Signature
193 使得混淆的时候不会影响SDK的命名空间。 204 使得混淆的时候不会影响SDK的命名空间。