xuguohong

重新添加公共sdk接入资料

Showing 75 changed files with 937 additions and 0 deletions
1 +/demo/Demo_PoolSdk/gen
2 +/demo/Demo_PoolSdk/bin
...\ No newline at end of file ...\ No newline at end of file
1 +- 2019-09-02
2 + - 修改PoolSdk_V2 assets/sdk assets/sdk.zip
3 +- 2019-11-15
4 + - libs修改PoolSdk_V2,YouYuSDK_xxx.jar为191016版本,添加miit_mdid_1.0.10.aar
5 + - assets中添加supplierconfig.json,poolsdk.xml添加styleName字段
6 + - 添加事件上报接口(具体查看接入文档)
7 +- 2019-11-28
8 + - 更新为YouYuSDK_1128.jar版本
9 +- 2019-12-04
10 + - 更新更新PoolSdk_V2包名,将YouYuSDK_xxx.jar替换为AppSdk_xxx.jar,替换assets下的sdk和sdk.zip
11 +- 2019-12-19
12 + - 更新PoolSdk_V2,删除assets中sdk/sdk.zip/sdkconfig.ini 删除AppSdk_xxx.jar,android-support-v4.jar
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" ?>
2 +<config>
3 + <sdkconfig channelparameter1="" channelparameter2="" custom="{}" gamechannelid="" gamesimplename="ces" logceportcrl="https://public.sdk.guangkatf.com/sdk/statistic" logincheckurl="https://public.sdk.guangkatf.com/logincheck/check" paycheckurl="https://public.sdk.guangkatf.com/paycheck/confirm" payorderurl="https://public.sdk.guangkatf.com/paycheck/create" sdksimplename="poolsdk" sdkversioncode="V1_0" usertype="597"/>
4 +</config>
1 +{
2 + "supplier":{
3 + "vivo":{
4 + "appid":"100215079"
5 + },
6 + "xiaomi":{
7 +
8 + },
9 + "huawei":{
10 +
11 + },
12 + "oppo":{
13 +
14 + }
15 + }
16 +
17 +}
1 +*.iml
2 +.gradle
3 +/local.properties
4 +/.idea/caches
5 +/.idea/libraries
6 +/.idea/modules.xml
7 +/.idea/workspace.xml
8 +/.idea/navEditor.xml
9 +/.idea/assetWizardSettings.xml
10 +.DS_Store
11 +/build
12 +/captures
13 +.externalNativeBuild
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="GradleSettings">
4 + <option name="linkedExternalProjectsSettings">
5 + <GradleProjectSettings>
6 + <option name="distributionType" value="DEFAULT_WRAPPED" />
7 + <option name="externalProjectPath" value="$PROJECT_DIR$" />
8 + <option name="modules">
9 + <set>
10 + <option value="$PROJECT_DIR$" />
11 + <option value="$PROJECT_DIR$/app" />
12 + </set>
13 + </option>
14 + <option name="resolveModulePerSourceSet" value="false" />
15 + </GradleProjectSettings>
16 + </option>
17 + </component>
18 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
4 + <output url="file://$PROJECT_DIR$/build/classes" />
5 + </component>
6 + <component name="ProjectType">
7 + <option name="id" value="Android" />
8 + </component>
9 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="RunConfigurationProducerService">
4 + <option name="ignoredProducers">
5 + <set>
6 + <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
7 + <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
8 + <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
9 + </set>
10 + </option>
11 + </component>
12 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="VcsDirectoryMappings">
4 + <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +apply plugin: 'com.android.application'
2 +
3 +android {
4 + compileSdkVersion 29
5 + buildToolsVersion '29.0.2'
6 + defaultConfig {
7 + applicationId "com.ssjh.demo"
8 + targetSdkVersion 28
9 + versionCode 2
10 + versionName "1.0"
11 + }
12 + buildTypes {
13 + release {
14 + minifyEnabled false
15 + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
16 + }
17 + }
18 +}
19 +
20 +dependencies {
21 + implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
22 +}
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +# Add project specific ProGuard rules here.
2 +# You can control the set of applied configuration files using the
3 +# proguardFiles setting in build.gradle.
4 +#
5 +# For more details, see
6 +# http://developer.android.com/guide/developing/tools/proguard.html
7 +
8 +# If your project uses WebView with JS, uncomment the following
9 +# and specify the fully qualified class name to the JavaScript interface
10 +# class:
11 +#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 +# public *;
13 +#}
14 +
15 +# Uncomment this to preserve the line number information for
16 +# debugging stack traces.
17 +#-keepattributes SourceFile,LineNumberTable
18 +
19 +# If you keep the line number information, uncomment this to
20 +# hide the original source file name.
21 +#-renamesourcefileattribute SourceFile
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 + package="com.youai.demo.shenshou">
4 +
5 + <!-- SDK start -->
6 + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
7 + <uses-permission android:name="android.permission.INTERNET" />
8 + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9 + <uses-permission android:name="android.permission.READ_PHONE_STATE" />
10 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
11 + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
12 + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
13 + <uses-permission android:name="android.permission.GET_TASKS" />
14 + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
15 + <uses-permission android:name="android.permission.RECORD_AUDIO" />
16 + <!-- SDK end -->
17 +
18 + <application
19 + android:name="com.gzpublic.app.sdk.application.PoolSDKApplication"
20 + android:allowBackup="true"
21 + android:icon="@drawable/public_sdk_self_ic_launcher"
22 + android:label="@string/app_name" >
23 + <activity
24 + android:name="com.youai.foolsdk.demo.AppActivity"
25 + android:configChanges="keyboardHidden|orientation|screenSize"
26 + android:label="@string/app_name"
27 + android:screenOrientation="portrait"
28 + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
29 + <intent-filter>
30 + <action android:name="android.intent.action.MAIN" />
31 +
32 + <category android:name="android.intent.category.LAUNCHER" />
33 + </intent-filter>
34 + </activity>
35 + <!-- SDK start -->
36 + <activity
37 + android:name="com.appsdk.sdk.YouaiSDK"
38 + android:label="youai_sdk"
39 + android:launchMode="singleTask"
40 + android:theme="@android:style/Theme.Dialog" />
41 +
42 + <service
43 + android:name="com.appsdk.sdk.YouaiService"
44 + android:enabled="true" >
45 + <intent-filter>
46 + <action android:name="com.youai.sdk.YouaiService" />
47 + </intent-filter>
48 + </service>
49 +
50 + <receiver android:name="com.appsdk.sdk.Receiver" >
51 + <intent-filter>
52 + <action android:name="android.intent.action.BOOT_COMPLETED" />
53 +
54 + <category android:name="android.intent.category.LAUNCHER" />
55 + </intent-filter>
56 + </receiver>
57 +
58 + <activity
59 + android:name="com.alipay.sdk.app.H5PayActivity"
60 + android:configChanges="keyboardHidden|navigation|orientation"
61 + android:exported="false"
62 + android:screenOrientation="behind" />
63 + <activity
64 + android:name="com.alipay.sdk.auth.AuthActivity"
65 + android:configChanges="keyboardHidden|navigation|orientation"
66 + android:exported="false"
67 + android:screenOrientation="behind" />
68 + <!-- SDK end -->
69 + </application>
70 +
71 +</manifest>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" ?>
2 +<config>
3 + <sdkconfig channelparameter1="" channelparameter2="" custom="{}" gamechannelid="" gamesimplename="ces" logceportcrl="https://public.sdk.guangkatf.com/sdk/statistic" logincheckurl="https://public.sdk.guangkatf.com/logincheck/check" paycheckurl="https://public.sdk.guangkatf.com/paycheck/confirm" payorderurl="https://public.sdk.guangkatf.com/paycheck/create" sdksimplename="poolsdk" sdkversioncode="V1_0" usertype="597"/>
4 +</config>
1 +{
2 + "supplier":{
3 + "vivo":{
4 + "appid":"100215079"
5 + },
6 + "xiaomi":{
7 +
8 + },
9 + "huawei":{
10 +
11 + },
12 + "oppo":{
13 +
14 + }
15 + }
16 +
17 +}
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 + package="com.youai.poolsdk.demo"
4 + android:versionCode="1"
5 + android:versionName="1.0" >
6 +
7 + <uses-sdk
8 + android:minSdkVersion="8"
9 + android:targetSdkVersion="19" />
10 +
11 + <!-- SDK start -->
12 + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
13 + <uses-permission android:name="android.permission.INTERNET" />
14 + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
15 + <uses-permission android:name="android.permission.READ_PHONE_STATE" />
16 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
17 + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
18 + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
19 + <uses-permission android:name="android.permission.READ_LOGS" />
20 + <uses-permission android:name="android.permission.GET_TASKS" />
21 + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
22 + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
23 + <uses-permission android:name="android.permission.RECORD_AUDIO" />
24 + <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
25 + <uses-permission android:name="org.simalliance.openmobileapi.SMARTCARD" />
26 + <uses-permission android:name="android.permission.NFC" />
27 + <uses-feature android:name="android.hardware.nfc.hce" />
28 + <!-- SDK end -->
29 +
30 + <application
31 + android:name="com.gzyouai.publicsdk.application.PoolSDKApplication"
32 + android:allowBackup="true"
33 + android:icon="@drawable/public_sdk_self_ic_launcher"
34 + android:label="@string/app_name" >
35 + <activity
36 + android:name="com.youai.foolsdk.demo.AppActivity"
37 + android:configChanges="keyboardHidden|orientation|screenSize"
38 + android:label="@string/app_name"
39 + android:screenOrientation="landscape"
40 + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
41 + <intent-filter>
42 + <action android:name="android.intent.action.MAIN" />
43 +
44 + <category android:name="android.intent.category.LAUNCHER" />
45 + </intent-filter>
46 + </activity>
47 + <!-- SDK start -->
48 + <receiver
49 + android:name="com.gzyouai.fengniao.sdk.framework.AppInstallReceiver"
50 + android:label="@string/app_name" >
51 + <intent-filter>
52 + <action android:name="android.intent.action.PACKAGE_ADDED" />
53 + <action android:name="android.intent.action.PACKAGE_REPLACED" />
54 + <action android:name="android.intent.action.PACKAGE_REMOVED" />
55 +
56 + <data android:scheme="package" />
57 + </intent-filter>
58 + </receiver>
59 +
60 + <activity
61 + android:name="com.youai.sdk.YouaiSDK"
62 + android:label="youai_sdk"
63 + android:launchMode="singleTask"
64 + android:theme="@android:style/Theme.Dialog" />
65 +
66 + <service
67 + android:name="com.youai.sdk.YouaiService"
68 + android:enabled="true" >
69 + <intent-filter>
70 + <action android:name="com.youai.sdk.YouaiService" />
71 + </intent-filter>
72 + </service>
73 + <service
74 + android:name="com.youai.sdk.FloatViewService"
75 + android:enabled="true"
76 + android:exported="true" >
77 + <intent-filter>
78 + <action android:name="com.youai.sdk.FloatViewService" />
79 + </intent-filter>
80 + </service>
81 +
82 + <receiver android:name="com.youai.sdk.Receiver" >
83 + <intent-filter>
84 + <action android:name="android.intent.action.BOOT_COMPLETED" />
85 +
86 + <category android:name="android.intent.category.LAUNCHER" />
87 + </intent-filter>
88 + </receiver>
89 +
90 + <activity
91 + android:name="com.alipay.sdk.app.H5PayActivity"
92 + android:configChanges="keyboardHidden|navigation|orientation"
93 + android:exported="false"
94 + android:screenOrientation="behind" />
95 + <activity
96 + android:name="com.alipay.sdk.auth.AuthActivity"
97 + android:configChanges="keyboardHidden|navigation|orientation"
98 + android:exported="false"
99 + android:screenOrientation="behind" />
100 + <activity
101 + android:name=".wxapi.WXPayEntryActivity"
102 + android:exported="true"
103 + android:launchMode="singleTop" />
104 + <activity
105 + android:name=".wxapi.WXEntryActivity"
106 + android:exported="true"
107 + android:launchMode="singleTop" />
108 + <!-- SDK end -->
109 + </application>
110 +
111 +</manifest>
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
1 +# cache for current jar dependency. DO NOT EDIT.
2 +# format is <lastModified> <length> <SHA-1> <path>
3 +# Encoding is UTF-8
No preview for this file type
This diff is collapsed. Click to expand it.
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:layout_width="fill_parent"
4 + android:layout_height="fill_parent"
5 + android:background="#FFFFFF"
6 + android:orientation="vertical"
7 + android:padding="5dp" >
8 +
9 + <LinearLayout
10 + android:layout_width="fill_parent"
11 + android:layout_height="wrap_content"
12 + android:orientation="horizontal" >
13 +
14 + <LinearLayout
15 + android:layout_width="0dp"
16 + android:layout_height="wrap_content"
17 + android:layout_margin="5dp"
18 + android:layout_weight="1"
19 + android:orientation="vertical" >
20 +
21 + <Button
22 + android:id="@+id/pb_bt_login"
23 + style="?android:attr/buttonStyleSmall"
24 + android:layout_width="fill_parent"
25 + android:layout_height="wrap_content"
26 + android:text="登录" />
27 +
28 + <Button
29 + android:id="@+id/pb_bt_entergame"
30 + style="?android:attr/buttonStyleSmall"
31 + android:layout_width="fill_parent"
32 + android:layout_height="wrap_content"
33 + android:text="进入游戏" />
34 +
35 + <Button
36 + android:id="@+id/pb_bt_pay"
37 + style="?android:attr/buttonStyleSmall"
38 + android:layout_width="fill_parent"
39 + android:layout_height="wrap_content"
40 + android:text="支付" />
41 +
42 + <Button
43 + android:id="@+id/pb_bt_logout"
44 + style="?android:attr/buttonStyleSmall"
45 + android:layout_width="fill_parent"
46 + android:layout_height="wrap_content"
47 + android:visibility="gone"
48 + android:text="注销" />
49 + </LinearLayout>
50 +
51 + <LinearLayout
52 + android:layout_width="0dp"
53 + android:layout_height="wrap_content"
54 + android:layout_margin="5dp"
55 + android:layout_weight="1"
56 + android:orientation="vertical" >
57 +
58 + <Button
59 + android:id="@+id/pb_bt_subrole"
60 + style="?android:attr/buttonStyleSmall"
61 + android:layout_width="fill_parent"
62 + android:layout_height="wrap_content"
63 + android:text="提交角色数据" />
64 +
65 + <Button
66 + android:id="@+id/pb_bt_openchannel"
67 + style="?android:attr/buttonStyleSmall"
68 + android:layout_width="fill_parent"
69 + android:layout_height="wrap_content"
70 + android:text="打开渠道个人中心" />
71 +
72 + <Button
73 + android:id="@+id/pb_bt_switchacc"
74 + style="?android:attr/buttonStyleSmall"
75 + android:layout_width="fill_parent"
76 + android:layout_height="wrap_content"
77 + android:text="切换账号" />
78 +
79 + <Button
80 + android:id="@+id/pb_bt_openbbs"
81 + style="?android:attr/buttonStyleSmall"
82 + android:layout_width="fill_parent"
83 + android:layout_height="wrap_content"
84 + android:text="事件上报" />
85 + </LinearLayout>
86 + </LinearLayout>
87 +
88 + <TextView
89 + android:layout_width="fill_parent"
90 + android:layout_height="wrap_content"
91 + android:layout_gravity="center"
92 + android:layout_margin="10dp"
93 + android:gravity="center"
94 + />
95 +
96 + <TextView
97 + android:id="@+id/tx_sdk_msg"
98 + android:layout_width="fill_parent"
99 + android:layout_height="wrap_content"
100 + android:layout_margin="10dp" />
101 +
102 + <TextView
103 + android:id="@+id/tx_msg"
104 + android:layout_width="fill_parent"
105 + android:layout_height="wrap_content"
106 + android:layout_margin="10dp" />
107 +
108 +</LinearLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<resources>
3 +
4 + <string name="app_name">Demo_shenshou</string>
5 +
6 +</resources>
1 +// Top-level build file where you can add configuration options common to all sub-projects/modules.
2 +
3 +buildscript {
4 + repositories {
5 + google()
6 + jcenter()
7 +
8 + }
9 + dependencies {
10 + classpath 'com.android.tools.build:gradle:3.3.1'
11 +
12 + // NOTE: Do not place your application dependencies here; they belong
13 + // in the individual module build.gradle files
14 + }
15 +}
16 +
17 +allprojects {
18 + repositories {
19 + google()
20 + jcenter()
21 +
22 + }
23 +}
24 +
25 +task clean(type: Delete) {
26 + delete rootProject.buildDir
27 +}
1 +# Project-wide Gradle settings.
2 +# IDE (e.g. Android Studio) users:
3 +# Gradle settings configured through the IDE *will override*
4 +# any settings specified in this file.
5 +# For more details on how to configure your build environment visit
6 +# http://www.gradle.org/docs/current/userguide/build_environment.html
7 +# Specifies the JVM arguments used for the daemon process.
8 +# The setting is particularly useful for tweaking memory settings.
9 +org.gradle.jvmargs=-Xmx1536m
10 +# When configured, Gradle will run in incubating parallel mode.
11 +# This option should only be used with decoupled projects. More details, visit
12 +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 +# org.gradle.parallel=true
14 +
15 +
No preview for this file type
1 +#Tue Oct 29 15:45:22 CST 2019
2 +distributionBase=GRADLE_USER_HOME
3 +distributionPath=wrapper/dists
4 +zipStoreBase=GRADLE_USER_HOME
5 +zipStorePath=wrapper/dists
6 +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
1 +#!/usr/bin/env sh
2 +
3 +##############################################################################
4 +##
5 +## Gradle start up script for UN*X
6 +##
7 +##############################################################################
8 +
9 +# Attempt to set APP_HOME
10 +# Resolve links: $0 may be a link
11 +PRG="$0"
12 +# Need this for relative symlinks.
13 +while [ -h "$PRG" ] ; do
14 + ls=`ls -ld "$PRG"`
15 + link=`expr "$ls" : '.*-> \(.*\)$'`
16 + if expr "$link" : '/.*' > /dev/null; then
17 + PRG="$link"
18 + else
19 + PRG=`dirname "$PRG"`"/$link"
20 + fi
21 +done
22 +SAVED="`pwd`"
23 +cd "`dirname \"$PRG\"`/" >/dev/null
24 +APP_HOME="`pwd -P`"
25 +cd "$SAVED" >/dev/null
26 +
27 +APP_NAME="Gradle"
28 +APP_BASE_NAME=`basename "$0"`
29 +
30 +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 +DEFAULT_JVM_OPTS=""
32 +
33 +# Use the maximum available, or set MAX_FD != -1 to use that value.
34 +MAX_FD="maximum"
35 +
36 +warn () {
37 + echo "$*"
38 +}
39 +
40 +die () {
41 + echo
42 + echo "$*"
43 + echo
44 + exit 1
45 +}
46 +
47 +# OS specific support (must be 'true' or 'false').
48 +cygwin=false
49 +msys=false
50 +darwin=false
51 +nonstop=false
52 +case "`uname`" in
53 + CYGWIN* )
54 + cygwin=true
55 + ;;
56 + Darwin* )
57 + darwin=true
58 + ;;
59 + MINGW* )
60 + msys=true
61 + ;;
62 + NONSTOP* )
63 + nonstop=true
64 + ;;
65 +esac
66 +
67 +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 +
69 +# Determine the Java command to use to start the JVM.
70 +if [ -n "$JAVA_HOME" ] ; then
71 + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 + # IBM's JDK on AIX uses strange locations for the executables
73 + JAVACMD="$JAVA_HOME/jre/sh/java"
74 + else
75 + JAVACMD="$JAVA_HOME/bin/java"
76 + fi
77 + if [ ! -x "$JAVACMD" ] ; then
78 + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 +
80 +Please set the JAVA_HOME variable in your environment to match the
81 +location of your Java installation."
82 + fi
83 +else
84 + JAVACMD="java"
85 + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 +
87 +Please set the JAVA_HOME variable in your environment to match the
88 +location of your Java installation."
89 +fi
90 +
91 +# Increase the maximum file descriptors if we can.
92 +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 + MAX_FD_LIMIT=`ulimit -H -n`
94 + if [ $? -eq 0 ] ; then
95 + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 + MAX_FD="$MAX_FD_LIMIT"
97 + fi
98 + ulimit -n $MAX_FD
99 + if [ $? -ne 0 ] ; then
100 + warn "Could not set maximum file descriptor limit: $MAX_FD"
101 + fi
102 + else
103 + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 + fi
105 +fi
106 +
107 +# For Darwin, add options to specify how the application appears in the dock
108 +if $darwin; then
109 + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 +fi
111 +
112 +# For Cygwin, switch paths to Windows format before running java
113 +if $cygwin ; then
114 + APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 + JAVACMD=`cygpath --unix "$JAVACMD"`
117 +
118 + # We build the pattern for arguments to be converted via cygpath
119 + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 + SEP=""
121 + for dir in $ROOTDIRSRAW ; do
122 + ROOTDIRS="$ROOTDIRS$SEP$dir"
123 + SEP="|"
124 + done
125 + OURCYGPATTERN="(^($ROOTDIRS))"
126 + # Add a user-defined pattern to the cygpath arguments
127 + if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 + fi
130 + # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 + i=0
132 + for arg in "$@" ; do
133 + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 +
136 + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 + else
139 + eval `echo args$i`="\"$arg\""
140 + fi
141 + i=$((i+1))
142 + done
143 + case $i in
144 + (0) set -- ;;
145 + (1) set -- "$args0" ;;
146 + (2) set -- "$args0" "$args1" ;;
147 + (3) set -- "$args0" "$args1" "$args2" ;;
148 + (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 + esac
155 +fi
156 +
157 +# Escape application args
158 +save () {
159 + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 + echo " "
161 +}
162 +APP_ARGS=$(save "$@")
163 +
164 +# Collect all arguments for the java command, following the shell quoting and substitution rules
165 +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 +
167 +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 + cd "$(dirname "$0")"
170 +fi
171 +
172 +exec "$JAVACMD" "$@"
1 +@if "%DEBUG%" == "" @echo off
2 +@rem ##########################################################################
3 +@rem
4 +@rem Gradle startup script for Windows
5 +@rem
6 +@rem ##########################################################################
7 +
8 +@rem Set local scope for the variables with windows NT shell
9 +if "%OS%"=="Windows_NT" setlocal
10 +
11 +set DIRNAME=%~dp0
12 +if "%DIRNAME%" == "" set DIRNAME=.
13 +set APP_BASE_NAME=%~n0
14 +set APP_HOME=%DIRNAME%
15 +
16 +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 +set DEFAULT_JVM_OPTS=
18 +
19 +@rem Find java.exe
20 +if defined JAVA_HOME goto findJavaFromJavaHome
21 +
22 +set JAVA_EXE=java.exe
23 +%JAVA_EXE% -version >NUL 2>&1
24 +if "%ERRORLEVEL%" == "0" goto init
25 +
26 +echo.
27 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 +echo.
29 +echo Please set the JAVA_HOME variable in your environment to match the
30 +echo location of your Java installation.
31 +
32 +goto fail
33 +
34 +:findJavaFromJavaHome
35 +set JAVA_HOME=%JAVA_HOME:"=%
36 +set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 +
38 +if exist "%JAVA_EXE%" goto init
39 +
40 +echo.
41 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 +echo.
43 +echo Please set the JAVA_HOME variable in your environment to match the
44 +echo location of your Java installation.
45 +
46 +goto fail
47 +
48 +:init
49 +@rem Get command-line arguments, handling Windows variants
50 +
51 +if not "%OS%" == "Windows_NT" goto win9xME_args
52 +
53 +:win9xME_args
54 +@rem Slurp the command line arguments.
55 +set CMD_LINE_ARGS=
56 +set _SKIP=2
57 +
58 +:win9xME_args_slurp
59 +if "x%~1" == "x" goto execute
60 +
61 +set CMD_LINE_ARGS=%*
62 +
63 +:execute
64 +@rem Setup the command line
65 +
66 +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 +
68 +@rem Execute Gradle
69 +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 +
71 +:end
72 +@rem End local scope for the variables with windows NT shell
73 +if "%ERRORLEVEL%"=="0" goto mainEnd
74 +
75 +:fail
76 +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 +rem the _cmd.exe /c_ return code!
78 +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 +exit /b 1
80 +
81 +:mainEnd
82 +if "%OS%"=="Windows_NT" endlocal
83 +
84 +:omega
1 +include ':app'
This diff is collapsed. Click to expand it.
1 +# 公共SDK服务端接入文档
2 +
3 +### 1.登录验证
4 + 客户端发送请求参数给服务端,服务端对参数进行 MD5 加密,如果加密结果和serverSign 一致,则验证通过,否则不通过
5 +参数 | 类型 | 描述
6 +------------ | ------------- | ------------
7 +userType | int | 用户类型 ID(渠道类型,兼容以 前帐号体系)
8 +openId | string | 平台渠道方返回用户ID
9 +timestamp | string | 时间戳,公共SDK发送到客户端的参数timestamp, 服务端可以判断 timestamp 是否 在有效的登录时间内
10 +serverSign | string | 验证密钥,公共 SDK 发送到 客户端的参数 serverSign,加密串:gameAppkey=%s&userType=% s&openId=%s&timestamp=%s注意:(改为游戏本身的gameAppkey值)
11 +
12 +验证方式:
13 +serverSign=MD5(gameAppkey=%s&userType=%s&openId=%s&timestamp=%s) 如:
14 +md5("gameAppkey=xxxx&userType=1&openId=123&timestamp=111111111111")
15 +gameAppkey : 在公共SDK后台的 Md5加密的KEY
16 +
17 +`注意!CP必须要以userType+openId保证帐号唯一性`
18 +
19 +### 2. 充值验证(通知游戏方发货)
20 + 公共SDK服务器接收到渠道服务器充值回调,对回调进行 MD5 验证,如果验证通过, 则采用Post方式马上回调给游戏充值服务器,否则不会回调充值服务器,然后再返回 信息给渠道服务器。回调参数如下:
21 +参数 | 类型 | 描述
22 +------------ | -------------| ------------
23 +serverId | int | 服务器 ID
24 +playerId | int | 角色 ID
25 +orderId | string | 渠道方订单 ID
26 +payAmount | double | 充值金额(如有商品 ID,此值为商 品的金额, 单位元)
27 +currency | string | 充值货币(CNY:人民币)
28 +goodsId | string | 商品ID,参数对一些有商品列表 的充值有效
29 +goodsName | string | 商品名称
30 +remoteIp | string | 客户端充值 IP
31 +custom | string | 透传参数 ,长度 512
32 +serverSign | string | 发给充值服务器验证的注意:(改为游戏本身的 gameAppkey 值)
33 +uId | string | 平台渠道帐号 ID
34 +gameSimpleName | string | 平台SDK后台游戏代号名
35 +sdkSimpleName | string | 平台SDK代号
36 +queryId | string | 平台SDK订单号
37 +postTime | string | 订单创建时间戳
38 +sign | string | 升级Md5加密的值
39 +验证方式:
40 +旧:serverSign=MD5(serverId=%s&playerId=%s&orderId=%s&gameAppKey=%s)
41 +升级:sign=Md5('serverId=%s&playerId=%s&orderId=%s&payAmount=%s&goodsId=%s&sdkSimpleName=%s&gameAppKey=%s')
42 +%s:为相应的值
43 +gameAppkey : 在公共SDK后台的Md5加密的KEY
44 +验证通过后,返回公共 SDK 服务器数据,数据格式:{"code":0,"message":"无订 单"}。code:0 表示失败,1 表示成功,message:描述原因。
45 +
46 +`注意!CP必须要以orderId+sdkSimpleName保证订单唯一性,建议使用sign验证`
47 +
48 +### 3. 充值服务器IP地址
49 + 182.254.136.76
50 + 115.159.41.44
51 + 115.159.109.183
52 + 118.89.113.235
53 + 118.89.196.17
...\ No newline at end of file ...\ No newline at end of file
1 +
2 +## 1.魅族 ##
3 +
4 +### 调试登录时,提示“游戏不存在”或“游戏签名不正确” ###
5 +
6 +SDK 服务端会对参数作必要的校验,校验不通过则有此提示
7 +
8 +1、联系运营检查该游戏是否打开了联调状态
9 +
10 +2、联系运营检查是否创建了该游戏
11 +
12 +3、上架后的游戏需要从游戏中心下载 APK 包进行安装
13 +
14 +## 2.搜狗 ##
15 +
16 +### 参数QQ_APPID要自行到QQ开放平台申请手Q ID ###
17 +
18 +签名必须跟应用宝YSDK一致
19 +
20 +## 3.华为 ##
21 +
22 +### 需要母包删除 libs 中的 YouaiSDK.jar 再打包 ###
23 +
24 +## 4.三星 ##
25 +
26 +### 参数 waresid 为商品ID,需去三星后台设置为应用传入价格 ###
27 +
28 +## 5.联想 ##
29 +
30 +### waresid请到联想后台申请商品编码(使用开放价格模式) ###
31 +
32 +
33 +## 6.UC ##
34 +
35 +### 提交角色信息接口 ###
36 +
37 +PoolSdkHelper.submitRoleData接口中的角色创建时间和角色等级变化时间需传正确的值,否则不过审
38 +
39 +poolRoleInfo.setRoleChangeTime();//角色等级变化时间
40 +
41 +poolRoleInfo.setRoleCTime();//角色创建时间
42 +
43 +## 7.酷派 ##
44 +
45 +### platPublicKey平台公钥默认值 ###
46 +
47 +```
48 +MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLx50R+CpH6VD/EfavOTpHOydfAQVjvm/h/SGG/RbM/03ZDfk8JrgezyFwqX06pjKevHZz66Umoq1/3Z9oqhBlJezsM03q2woKbReGSKAPQSkuJg2FY6DdZ1v1gMuCRtF6WOHV7n2TbUvRhZugMpx8PJEV+r6Qf1L41Gt8w6FN8wIDAQAB
49 +```
50 +
51 +如渠道有提供以提供为准,没有填默认值
52 +
53 +## 8.应用宝YSDK ##
54 +
55 +### 请保留好在应用宝后台申请时使用的签名文件,打包时需使用一致的 ###
56 +
57 +
58 +## 9.OPPO ##
59 +
60 +### publicKey应用公钥 ###
61 +
62 +```
63 +MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmreYIkPwVovKR8rLHWlFVw7YDfm9uQOJKL89Smt6ypXGVdrAKKl0wNYc3/jecAoPi2ylChfa2iRu5gunJyNmpWZzlCNRIau55fxGW0XEu553IiprOZcaw5OuYGlf60ga8QT6qToP0/dpiL/ZbmNUO9kUhosIjEu22uFgR+5cYyQIDAQAB
64 +```
65 +
66 +如渠道有提供以提供为准,没有填默认值
67 +
68 +## 10.HTC ##
69 +
70 +### joloPrivateKey私钥 ###
71 +
72 +- "HTC秘钥生成工具与文档"
73 +
74 +[https://pan.baidu.com/s/1dE7FSm1](https://pan.baidu.com/s/1dE7FSm1 "HTC秘钥生成工具与文档")
75 +
76 +强烈建议找渠道技术帮忙生成
77 +
78 +
79 +## 11.卓易 ##
80 +
81 +### 1.注册账号时输入的账号密码文字颜色和输入框底色相同 ###
82 +<Application>的theme改成android:theme="@android:style/Theme.Black.NoTitleBar"
83 +
84 +或者把Activity的theme改成android:theme="@android:style/Theme.Black.NoTitleBar"
85 +
86 +
87 +### 2.集成到游戏后,发现卓易悬浮图标点击没反应 ###
88 +
89 +如果是Unity3D的游戏的话,由于Unity3D和Android之间的事件冲突,导致Android事件得不到响应。
90 +
91 +解决办法是,需要将游戏的主Activity(游戏入口)默认继承的NativeActivity或UnityPlayerNativeActivity改为继承Activity,把UnityPlayerNativeActivity里面的方法(如下图所示)拷贝到主Activity。
92 +
93 +现在最新Unity3D版本游戏入口也是默认继承Activity。
94 +
95 +![](http://i.imgur.com/SlVKWAp.png)
96 +
97 +## 12.打包 ##
98 +
99 +参数提前确定准备好,尤其是icon,闪图那些
100 +
101 +填写某渠道参数时,请牢记到对应渠道后台填写充值回调地址
102 +
103 +
104 +## 13.多玩YY ##
105 +
106 +### 支付时显示支付未成功,appid不存在 ###
107 +
108 +因为签名不正确,在游戏提交后联运管理台后,会重新打包签名。(如不了解请与渠道联系)
109 +
110 +## 14.360 ##
111 +
112 +### 支付时显示Mobile pay signature invalid ###
113 +
114 +后台填写的 QHOPENSDK_PRIVATEKEY 参数错误导致,注意此处 private_key,不是app_secret,其生成算法为 app_secret +”#”+ app_key 的加密MD5值,结果为32位全小写(http://pmd5.com/ 在线计算MD5)
115 +
116 +![](https://i.imgur.com/JrsLmBZ.png)
117 +
118 +如图,替换自己的 app_secret 和 app_key 即可
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type