Commit 359f62c6df82bb45c94e2e3c21fea907574a3c10
1 parent
01a202f853
Exists in
master
v3.1.0
增加bluePay支付 支持cp指定界面横竖屏
Showing 25 changed files with 420 additions and 91 deletions Side-by-side Diff
- android/GameSDKRelease/libs/BluePay_2_4.jar
- android/GameSDKRelease/libs/GameSDK_v3.0.1_proguard.jar
- android/GameSDKRelease/libs/GameSDK_v3.1.0_proguard.jar
- android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg.9.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg_hl.9.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg_selector.xml
- android/GameSDKRelease/res/drawable-hdpi/bluep_icon_one_calltip.jpg
- android/GameSDKRelease/res/drawable-hdpi/bluep_icon_true_tip.jpg
- android/GameSDKRelease/res/drawable-hdpi/bluep_input_bg.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_onetwocall.jpg
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_truemoney.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_payarrow.jpg
- android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_high.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_normal.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_selector.xml
- android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_bg.9.png
- android/GameSDKRelease/res/drawable-hdpi/bluepay_logo.png
- android/GameSDKRelease/res/layout/bluep_by_otc_landscape.xml
- android/GameSDKRelease/res/layout/bluep_by_otc_portrait.xml
- android/GameSDKRelease/res/layout/bluep_smslist.xml
- android/GameSDKRelease/res/values/dimens.xml
- android/GameSDKRelease/res/values/strings.xml
- android/GameSDKRelease/res/values/styles.xml
- android/GameSDKSample/AndroidManifest.xml
- android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
android/GameSDKRelease/libs/BluePay_2_4.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.0.1_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.1.0_proguard.jar
No preview for this file type
android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg.9.png
258 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg_hl.9.png
269 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_btnbg_selector.xml
... | ... | @@ -0,0 +1,7 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<selector | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | |
4 | + <item android:state_focused="true" android:drawable="@drawable/bluep_btnbg" /> | |
5 | + <item android:state_pressed="true" android:drawable="@drawable/bluep_btnbg_hl" /> | |
6 | + <item android:state_pressed="false" android:drawable="@drawable/bluep_btnbg" /> | |
7 | +</selector> |
android/GameSDKRelease/res/drawable-hdpi/bluep_icon_one_calltip.jpg
44.6 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_icon_true_tip.jpg
57.4 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_input_bg.png
380 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_onetwocall.jpg
7.31 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_truemoney.png
4.96 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_payarrow.jpg
11.5 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_high.png
715 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_normal.png
672 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_arrow_selector.xml
... | ... | @@ -0,0 +1,7 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<selector | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | |
4 | + <item android:state_focused="true" android:drawable="@drawable/bluep_paylist_arrow_normal" /> | |
5 | + <item android:state_pressed="true" android:drawable="@drawable/bluep_paylist_arrow_high" /> | |
6 | + <item android:state_pressed="false" android:drawable="@drawable/bluep_paylist_arrow_normal" /> | |
7 | +</selector> |
android/GameSDKRelease/res/drawable-hdpi/bluep_paylist_bg.9.png
319 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluepay_logo.png
13.4 KB
android/GameSDKRelease/res/layout/bluep_by_otc_landscape.xml
... | ... | @@ -0,0 +1,148 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + android:id="@+id/scrollView1" | |
4 | + android:layout_width="350sp" | |
5 | + android:layout_height="wrap_content" | |
6 | + android:background="#ffffffff" > | |
7 | + | |
8 | + <LinearLayout | |
9 | + android:layout_width="fill_parent" | |
10 | + android:layout_height="380sp" | |
11 | + android:gravity="center" | |
12 | + android:id="@+id/payByPortrait" | |
13 | + android:orientation="vertical" > | |
14 | + | |
15 | + <RelativeLayout | |
16 | + android:layout_width="fill_parent" | |
17 | + android:layout_height="50sp" > | |
18 | + | |
19 | + <ImageView | |
20 | + android:id="@+id/headerLogo" | |
21 | + android:layout_width="200sp" | |
22 | + android:layout_height="wrap_content" | |
23 | + android:layout_alignParentLeft ="true" | |
24 | + android:layout_marginLeft="5sp" | |
25 | + android:layout_marginTop="5sp" | |
26 | + android:layout_centerVertical="true" | |
27 | + android:background="@drawable/bluepay_logo" /> | |
28 | + | |
29 | + </RelativeLayout> | |
30 | + | |
31 | + <RelativeLayout | |
32 | + android:layout_width="wrap_content" | |
33 | + android:layout_weight="0.6" | |
34 | + android:paddingTop="5sp" | |
35 | + android:layout_height="wrap_content"> | |
36 | + | |
37 | + | |
38 | + <ImageView | |
39 | + android:id="@+id/tipIv" | |
40 | + android:layout_width="200sp" | |
41 | + android:layout_height="100sp" | |
42 | + android:layout_centerHorizontal="true" | |
43 | + android:src="@drawable/bluep_logo_onetwocall"/> | |
44 | + | |
45 | + <LinearLayout | |
46 | + android:layout_width="wrap_content" | |
47 | + android:layout_height="wrap_content" | |
48 | + android:layout_below="@id/tipIv" | |
49 | + android:layout_centerHorizontal="true" | |
50 | + android:layout_marginTop="5sp" | |
51 | + android:orientation="vertical" > | |
52 | + | |
53 | + <TextView | |
54 | + android:id="@+id/textView1" | |
55 | + android:layout_width="fill_parent" | |
56 | + android:layout_height="wrap_content" | |
57 | + android:gravity="center_horizontal" | |
58 | + android:singleLine="true" | |
59 | + android:text="Please Input your Card No." | |
60 | + android:textSize="20px" | |
61 | + android:visibility="gone" /> | |
62 | + | |
63 | + <EditText | |
64 | + android:id="@+id/payEdit" | |
65 | + android:layout_width="240sp" | |
66 | + android:layout_height="wrap_content" | |
67 | + android:layout_gravity="center" | |
68 | + android:layout_weight="1" | |
69 | + android:background="@drawable/bluep_input_bg" | |
70 | + android:ems="10" | |
71 | + android:gravity="left" | |
72 | + android:hint="Please Input your Card No." | |
73 | + android:inputType="number" | |
74 | + android:numeric="integer" | |
75 | + android:focusableInTouchMode="true" | |
76 | + android:padding="10sp" | |
77 | + android:textColor="#ff000000" | |
78 | + android:textSize="18sp" > | |
79 | + | |
80 | + </EditText> | |
81 | + | |
82 | + <TextView | |
83 | + android:id="@+id/payTip" | |
84 | + android:layout_width="wrap_content" | |
85 | + android:layout_height="wrap_content" | |
86 | + android:singleLine="true" | |
87 | + android:text="" | |
88 | + android:textColor="#ffff0000" | |
89 | + android:textSize="14px" | |
90 | + android:layout_weight="0.4" | |
91 | + android:visibility="gone" /> | |
92 | + </LinearLayout> | |
93 | + | |
94 | + </RelativeLayout> | |
95 | + | |
96 | + <RelativeLayout | |
97 | + android:layout_width="match_parent" | |
98 | + android:layout_marginTop="5sp" | |
99 | + android:layout_weight="0.6" | |
100 | + android:layout_height="40sp" > | |
101 | + | |
102 | + <Button android:id="@+id/paybyYes" | |
103 | + android:layout_width="wrap_content" | |
104 | + android:layout_height="wrap_content" | |
105 | + android:layout_marginLeft="65sp" | |
106 | + android:layout_alignParentLeft="true" | |
107 | + android:layout_centerVertical="true" | |
108 | + android:text="Ok" | |
109 | + android:textColor="#ffffffff" | |
110 | + android:background="@drawable/bluep_btnbg_selector" /> | |
111 | + | |
112 | + <Button | |
113 | + android:id="@+id/paybyNo" | |
114 | + android:layout_width="wrap_content" | |
115 | + android:layout_height="wrap_content" | |
116 | + android:layout_marginRight="65sp" | |
117 | + android:layout_alignParentRight="true" | |
118 | + android:layout_centerVertical="true" | |
119 | + android:text="Cancel" | |
120 | + android:textColor="#ffffffff" | |
121 | + android:background="@drawable/bluep_btnbg_selector" /> | |
122 | + | |
123 | + <!-- <ImageButton | |
124 | + android:id="@+id/paybyYes" | |
125 | + android:layout_width="wrap_content" | |
126 | + android:layout_height="wrap_content" | |
127 | + android:paddingLeft="5sp" | |
128 | + android:layout_alignParentLeft="true" | |
129 | + android:layout_centerVertical="true" | |
130 | + android:src="@drawable/g_yes_selector" | |
131 | + android:background="@null" /> | |
132 | + | |
133 | + <ImageButton | |
134 | + android:id="@+id/paybyNo" | |
135 | + android:layout_width="wrap_content" | |
136 | + android:layout_height="wrap_content" | |
137 | + android:paddingRight="5sp" | |
138 | + android:layout_alignParentRight="true" | |
139 | + android:layout_centerVertical="true" | |
140 | + android:src="@drawable/g_no_selector" | |
141 | + android:background="@null" /> --> | |
142 | + | |
143 | + | |
144 | + </RelativeLayout> | |
145 | + | |
146 | + </LinearLayout> | |
147 | + | |
148 | +</ScrollView> | |
0 | 149 | \ No newline at end of file |
android/GameSDKRelease/res/layout/bluep_by_otc_portrait.xml
... | ... | @@ -0,0 +1,149 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + android:id="@+id/scrollView1" | |
4 | + android:layout_width="300sp" | |
5 | + android:layout_height="wrap_content" | |
6 | + android:background="#ffffffff" > | |
7 | + | |
8 | + <LinearLayout | |
9 | + android:layout_width="fill_parent" | |
10 | + android:layout_height="400sp" | |
11 | + android:gravity="center" | |
12 | + android:id="@+id/payByPortrait" | |
13 | + android:orientation="vertical" > | |
14 | + | |
15 | + <RelativeLayout | |
16 | + android:layout_width="fill_parent" | |
17 | + android:layout_height="50sp" > | |
18 | + | |
19 | + <ImageView | |
20 | + android:id="@+id/headerLogo" | |
21 | + android:layout_width="200sp" | |
22 | + android:layout_height="wrap_content" | |
23 | + android:layout_centerVertical="true" | |
24 | + android:layout_alignParentLeft="true" | |
25 | + android:layout_marginLeft="5sp" | |
26 | + android:layout_marginTop="5sp" | |
27 | + android:background="@drawable/bluepay_logo" /> | |
28 | + | |
29 | + </RelativeLayout> | |
30 | + | |
31 | + <RelativeLayout | |
32 | + android:layout_width="wrap_content" | |
33 | + android:layout_weight="0.6" | |
34 | + android:paddingTop="5sp" | |
35 | + android:layout_height="wrap_content"> | |
36 | + | |
37 | + | |
38 | + <ImageView | |
39 | + android:id="@+id/tipIv" | |
40 | + android:layout_width="200sp" | |
41 | + android:layout_height="100sp" | |
42 | + android:layout_centerHorizontal="true" | |
43 | + android:src="@drawable/bluep_logo_onetwocall"/> | |
44 | + | |
45 | + <LinearLayout | |
46 | + android:layout_width="wrap_content" | |
47 | + android:layout_height="wrap_content" | |
48 | + android:layout_below="@id/tipIv" | |
49 | + android:layout_centerHorizontal="true" | |
50 | + android:layout_marginTop="5sp" | |
51 | + android:orientation="vertical" > | |
52 | + | |
53 | + <TextView | |
54 | + android:id="@+id/textView1" | |
55 | + android:layout_width="fill_parent" | |
56 | + android:layout_height="wrap_content" | |
57 | + android:gravity="center_horizontal" | |
58 | + android:singleLine="true" | |
59 | + android:text="Please Input your Card No." | |
60 | + android:textSize="20px" | |
61 | + android:visibility="gone" /> | |
62 | + | |
63 | + <EditText | |
64 | + android:id="@+id/payEdit" | |
65 | + android:layout_width="240sp" | |
66 | + android:layout_height="wrap_content" | |
67 | + android:layout_gravity="center" | |
68 | + android:layout_weight="1" | |
69 | + android:background="@drawable/bluep_input_bg" | |
70 | + android:ems="10" | |
71 | + android:gravity="left" | |
72 | + android:hint="Please Input your Card No." | |
73 | + android:inputType="number" | |
74 | + android:numeric="integer" | |
75 | + android:focusableInTouchMode="true" | |
76 | + android:padding="10sp" | |
77 | + android:textColor="#ff000000" | |
78 | + android:textSize="18sp" > | |
79 | + | |
80 | + </EditText> | |
81 | + | |
82 | + <TextView | |
83 | + android:id="@+id/payTip" | |
84 | + android:layout_width="wrap_content" | |
85 | + android:layout_height="wrap_content" | |
86 | + android:singleLine="true" | |
87 | + android:text="" | |
88 | + android:textColor="#ffff0000" | |
89 | + android:textSize="14px" | |
90 | + android:layout_weight="0.4" | |
91 | + android:visibility="gone" /> | |
92 | + </LinearLayout> | |
93 | + | |
94 | + </RelativeLayout> | |
95 | + | |
96 | + <RelativeLayout | |
97 | + android:layout_width="match_parent" | |
98 | + android:layout_marginTop="5sp" | |
99 | + android:layout_weight="0.6" | |
100 | + android:layout_height="40sp" > | |
101 | + | |
102 | + | |
103 | + <Button android:id="@+id/paybyYes" | |
104 | + android:layout_width="wrap_content" | |
105 | + android:layout_height="wrap_content" | |
106 | + android:layout_marginLeft="30sp" | |
107 | + android:layout_alignParentLeft="true" | |
108 | + android:layout_centerVertical="true" | |
109 | + android:text="Ok" | |
110 | + android:textColor="#ffffffff" | |
111 | + android:background="@drawable/bluep_btnbg_selector" /> | |
112 | + | |
113 | + <Button | |
114 | + android:id="@+id/paybyNo" | |
115 | + android:layout_width="wrap_content" | |
116 | + android:layout_height="wrap_content" | |
117 | + android:layout_marginRight="30sp" | |
118 | + android:layout_alignParentRight="true" | |
119 | + android:layout_centerVertical="true" | |
120 | + android:text="Cancel" | |
121 | + android:textColor="#ffffffff" | |
122 | + android:background="@drawable/bluep_btnbg_selector" /> | |
123 | + | |
124 | + <!-- <ImageButton | |
125 | + android:id="@+id/paybyYes" | |
126 | + android:layout_width="wrap_content" | |
127 | + android:layout_height="wrap_content" | |
128 | + android:paddingLeft="5sp" | |
129 | + android:layout_alignParentLeft="true" | |
130 | + android:layout_centerVertical="true" | |
131 | + android:src="@drawable/g_yes_selector" | |
132 | + android:background="@drawable/g_btnbg_selector" /> | |
133 | + | |
134 | + <ImageButton | |
135 | + android:id="@+id/paybyNo" | |
136 | + android:layout_width="wrap_content" | |
137 | + android:layout_height="wrap_content" | |
138 | + android:paddingRight="5sp" | |
139 | + android:layout_alignParentRight="true" | |
140 | + android:layout_centerVertical="true" | |
141 | + android:src="@drawable/g_no_selector" | |
142 | + android:background="@null" /> --> | |
143 | + | |
144 | + | |
145 | + </RelativeLayout> | |
146 | + | |
147 | + </LinearLayout> | |
148 | + | |
149 | +</ScrollView> | |
0 | 150 | \ No newline at end of file |
android/GameSDKRelease/res/layout/bluep_smslist.xml
... | ... | @@ -0,0 +1,67 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + android:id="@+id/scrollView1" | |
4 | + android:layout_width="300sp" | |
5 | + android:layout_height="220sp" | |
6 | + android:background="#ffffffff" | |
7 | + android:gravity="center" | |
8 | + android:orientation="vertical" > | |
9 | + | |
10 | + <ImageView | |
11 | + android:layout_width="200sp" | |
12 | + android:layout_height="50sp" | |
13 | + android:layout_marginTop="5sp" | |
14 | + android:background="@drawable/bluepay_logo" /> | |
15 | + | |
16 | + <TextView android:id="@+id/Bluep_payTip" | |
17 | + android:layout_width="250sp" | |
18 | + android:layout_height="40sp" | |
19 | + android:paddingRight="5sp" | |
20 | + android:layout_marginTop="5sp" | |
21 | + android:textColor="#ff000000" | |
22 | + android:textSize="14sp" | |
23 | + android:gravity="center"/> | |
24 | + | |
25 | + <Button android:id="@+id/Bluep_payList" | |
26 | + android:layout_width="250sp" | |
27 | + android:layout_height="40sp" | |
28 | + android:paddingRight="5sp" | |
29 | + android:layout_marginTop="5sp" | |
30 | + android:textColor="#ff000000" | |
31 | + android:textSize="16sp" | |
32 | + android:gravity="center" | |
33 | + android:background="@drawable/bluep_paylist_bg" | |
34 | + android:drawableRight="@drawable/bluep_paylist_arrow_selector"/> | |
35 | + | |
36 | + <RelativeLayout | |
37 | + android:layout_width="fill_parent" | |
38 | + android:layout_height="wrap_content" | |
39 | + android:layout_marginTop="15sp" | |
40 | + android:layout_marginBottom="5sp" > | |
41 | + | |
42 | + | |
43 | + <Button android:id="@+id/Bluep_paybyYes" | |
44 | + android:layout_width="wrap_content" | |
45 | + android:layout_height="wrap_content" | |
46 | + android:layout_marginLeft="30sp" | |
47 | + android:layout_alignParentLeft="true" | |
48 | + android:layout_centerVertical="true" | |
49 | + | |
50 | + android:text="Ok" | |
51 | + android:textColor="#ffffffff" | |
52 | + android:background="@drawable/bluep_btnbg_selector" /> | |
53 | + | |
54 | + <Button | |
55 | + android:id="@+id/Bluep_paybyNo" | |
56 | + android:layout_width="wrap_content" | |
57 | + android:layout_height="wrap_content" | |
58 | + android:layout_marginRight="30sp" | |
59 | + android:layout_alignParentRight="true" | |
60 | + android:layout_centerVertical="true" | |
61 | + android:text="Cancel" | |
62 | + android:textColor="#ffffffff" | |
63 | + android:background="@drawable/bluep_btnbg_selector" /> | |
64 | + | |
65 | + </RelativeLayout> | |
66 | + | |
67 | +</LinearLayout> | |
0 | 68 | \ No newline at end of file |
android/GameSDKRelease/res/values/dimens.xml
android/GameSDKRelease/res/values/strings.xml
... | ... | @@ -8,7 +8,6 @@ |
8 | 8 | <string name="signup">Signup</string> |
9 | 9 | <string name="bind">Bound to email</string> |
10 | 10 | <string name="loading">Loading</string> |
11 | - | |
12 | 11 | <!-- toast --> |
13 | 12 | <string name="illegal_uname_tip">Invalid Email</string> |
14 | 13 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> |
... | ... | @@ -27,6 +26,8 @@ |
27 | 26 | |
28 | 27 | |
29 | 28 | <!-- 支付相关 --> |
29 | + | |
30 | + | |
30 | 31 | <!-- title --> |
31 | 32 | <string name="title_mycard">Mycard點數儲值</string> |
32 | 33 | <string name="title_mycard_member">Mycard會員扣點</string> |
... | ... | @@ -54,6 +55,7 @@ |
54 | 55 | <string name="title_coda">Coda Payment</string> |
55 | 56 | <string name="title_cherry">Cherry Credits</string> |
56 | 57 | <string name="title_payment_choice">Select payment methods</string> |
58 | + | |
57 | 59 | <!-- summary title --> |
58 | 60 | <string name="summary_title">Price list:</string> |
59 | 61 |
android/GameSDKRelease/res/values/styles.xml
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<!-- | |
3 | - Copyright 2010-present Facebook. | |
1 | +<resources> | |
4 | 2 | |
5 | - Licensed under the Apache License, Version 2.0 (the "License"); | |
6 | - you may not use this file except in compliance with the License. | |
7 | - You may obtain a copy of the License at | |
8 | - | |
9 | - http://www.apache.org/licenses/LICENSE-2.0 | |
10 | - | |
11 | - Unless required by applicable law or agreed to in writing, software | |
12 | - distributed under the License is distributed on an "AS IS" BASIS, | |
13 | - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 | - See the License for the specific language governing permissions and | |
15 | - limitations under the License. | |
16 | ---> | |
17 | - | |
18 | -<resources xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | + <!-- | |
4 | + Base application theme, dependent on API level. This theme is replaced | |
5 | + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. | |
6 | + --> | |
7 | + <style name="AppBaseTheme" parent="android:Theme.Light"> | |
8 | + <!-- | |
9 | + Theme customizations available in newer API levels can go in | |
10 | + res/values-vXX/styles.xml, while customizations related to | |
11 | + backward-compatibility can go here. | |
12 | + --> | |
13 | + </style> | |
19 | 14 | |
15 | + <!-- Application theme. --> | |
16 | + <style name="AppTheme" parent="AppBaseTheme"> | |
17 | + <!-- All customizations that are NOT specific to a particular API-level can go here. --> | |
18 | + </style> | |
20 | 19 | |
21 | 20 | <style name="NotificationText"> |
22 | 21 | <item name="android:textColor">?android:attr/textColorPrimary</item> |
... | ... | @@ -26,4 +25,5 @@ |
26 | 25 | <item name="android:textColor">?android:attr/textColorPrimary</item> |
27 | 26 | <item name="android:textStyle">bold</item> |
28 | 27 | </style> |
28 | + | |
29 | 29 | </resources> |
android/GameSDKSample/AndroidManifest.xml
... | ... | @@ -28,20 +28,12 @@ |
28 | 28 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
29 | 29 | <!-- for card.io card scanning --> |
30 | 30 | <uses-permission android:name="android.permission.CAMERA" /> |
31 | - <uses-permission android:name="android.permission.VIBRATE" /> | |
32 | - <uses-permission android:name="android.permission.SEND_SMS" /> | |
33 | 31 | <!-- coda --> |
34 | 32 | <uses-permission android:name="android.permission.RECEIVE_SMS" /> |
35 | 33 | <uses-permission android:name="android.permission.READ_SMS" /> |
36 | 34 | <uses-permission android:name="android.permission.WRITE_SMS" /> |
37 | 35 | <uses-permission android:name="android.permission.GET_TASKS" /> |
38 | 36 | |
39 | - <uses-feature | |
40 | - android:name="android.hardware.camera" | |
41 | - android:required="false" /> | |
42 | - <uses-feature | |
43 | - android:name="android.hardware.camera.autofocus" | |
44 | - android:required="false" /> | |
45 | 37 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> |
46 | 38 | <uses-permission android:name="com.android.vending.BILLING" /> |
47 | 39 | |
... | ... | @@ -63,14 +55,9 @@ |
63 | 55 | <activity |
64 | 56 | android:name="com.gumptech.sdk.ContainerActivity" |
65 | 57 | android:configChanges="orientation|screenLayout" |
66 | - android:screenOrientation="portrait" | |
67 | 58 | android:theme="@style/container_dialog" > |
68 | 59 | </activity> |
69 | 60 | <activity |
70 | - android:name="com.facebook.LoginActivity" | |
71 | - android:theme="@android:style/Theme.Translucent.NoTitleBar" > | |
72 | - </activity> | |
73 | - <activity | |
74 | 61 | android:name="com.gumptech.sdk.PaymentActivity" |
75 | 62 | android:configChanges="orientation|screenLayout" |
76 | 63 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
... | ... | @@ -83,52 +70,6 @@ |
83 | 70 | |
84 | 71 | <service android:name="com.gumptech.sdk.PushService" > |
85 | 72 | </service> |
86 | - <!-- paypal --> | |
87 | - <service | |
88 | - android:name="com.paypal.android.sdk.payments.PayPalService" | |
89 | - android:exported="false" /> | |
90 | - | |
91 | - <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" /> | |
92 | - <activity android:name="com.paypal.android.sdk.payments.LoginActivity" /> | |
93 | - <activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" /> | |
94 | - <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" /> | |
95 | - <activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" /> | |
96 | - <activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" /> | |
97 | - <activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" /> | |
98 | - <activity | |
99 | - android:name="io.card.payment.CardIOActivity" | |
100 | - android:configChanges="keyboardHidden|orientation" /> | |
101 | - <activity android:name="io.card.payment.DataEntryActivity" /> | |
102 | - <activity | |
103 | - android:name="com.android.easy2pay.Easy2PayScreen" | |
104 | - android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | |
105 | - <activity | |
106 | - android:name="com.codapayments.sdk.pay.CodaWeb" | |
107 | - android:alwaysRetainTaskState="true" | |
108 | - android:configChanges="orientation|screenSize" | |
109 | - android:screenOrientation="unspecified" > | |
110 | - </activity> | |
111 | - | |
112 | - <receiver | |
113 | - android:name="com.codapayments.sdk.message.PendingTxnReceiver" | |
114 | - android:enabled="true" > | |
115 | - </receiver> | |
116 | - | |
117 | - <!-- upay --> | |
118 | - <activity | |
119 | - android:name="com.upay.billing.UpayActivity" | |
120 | - android:configChanges="orientation|keyboardHidden|screenSize" | |
121 | - android:theme="@android:style/Theme.Translucent" /> | |
122 | - <activity | |
123 | - android:name="com.upay.billing.engine.ais.AisActivity" | |
124 | - android:configChanges="orientation|keyboardHidden|screenSize" | |
125 | - android:theme="@android:style/Theme.Translucent" /> | |
126 | - | |
127 | - <service android:name="com.upay.billing.sdk.LocalService" > | |
128 | - <intent-filter> | |
129 | - <action android:name="com.gumptech.loginsdk.sample.LocalService" /> | |
130 | - </intent-filter> | |
131 | - </service> | |
132 | 73 | </application> |
133 | 74 | |
134 | 75 | </manifest> |
135 | 76 | \ No newline at end of file |
android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
... | ... | @@ -49,11 +49,12 @@ public class MainActivity extends Activity implements GumpSDK.Callback { |
49 | 49 | payInfo.putString("extraInfo", "This is demo!"); |
50 | 50 | payInfo.putString("serverId", "5001"); |
51 | 51 | payInfo.putString("roleId", "41081"); |
52 | - GumpSDK.pay(MainActivity.this, payInfo); | |
52 | + GumpSDK.pay(MainActivity.this, payInfo,"3332768"); | |
53 | 53 | } |
54 | 54 | }); |
55 | 55 | GumpSDK.init(getApplicationContext(), appId, "93a27b0bd99bac3e68a440b48aa421ab", "1000"); |
56 | 56 | GumpSDK.setLogoShow(true); |
57 | + GumpSDK.setScreenLandscape(true); | |
57 | 58 | tvVersion.setText("SDK Version:" + GumpSDK.getVersion()); |
58 | 59 | GumpSDK.start(this); |
59 | 60 | } |
... | ... | @@ -72,19 +73,19 @@ public class MainActivity extends Activity implements GumpSDK.Callback { |
72 | 73 | } else if (resultCode == RESULT_CANCELED) { |
73 | 74 | Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); |
74 | 75 | } |
75 | - } | |
76 | - //@Deprecated | |
77 | -// else if (requestCode == GumpSDK.PAY_REQUEST_CODE) { | |
78 | -// if (resultCode == RESULT_OK) { | |
79 | -// int code = data.getIntExtra("code", -1); | |
80 | -// String msg = data.getStringExtra("msg"); | |
81 | -// String orderId = data.getStringExtra("orderId"); | |
82 | -// String extraInfo = data.getStringExtra("extraInfo"); | |
83 | -// Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show(); | |
84 | -// } else if (resultCode == RESULT_CANCELED) { | |
85 | -// Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); | |
86 | -// } | |
87 | -// } | |
76 | + } | |
77 | + // @Deprecated | |
78 | + // else if (requestCode == GumpSDK.PAY_REQUEST_CODE) { | |
79 | + // if (resultCode == RESULT_OK) { | |
80 | + // int code = data.getIntExtra("code", -1); | |
81 | + // String msg = data.getStringExtra("msg"); | |
82 | + // String orderId = data.getStringExtra("orderId"); | |
83 | + // String extraInfo = data.getStringExtra("extraInfo"); | |
84 | + // Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show(); | |
85 | + // } else if (resultCode == RESULT_CANCELED) { | |
86 | + // Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); | |
87 | + // } | |
88 | + // } | |
88 | 89 | super.onActivityResult(requestCode, resultCode, data); |
89 | 90 | } |
90 | 91 |