Showing
97 changed files
with
641 additions
and
578 deletions
assets/supplierconfig.json
0 → 100644
demo/.gitignore
0 → 100644
demo/.idea/codeStyles/Project.xml
0 → 100644
1 | +<component name="ProjectCodeStyleConfiguration"> | ||
2 | + <code_scheme name="Project" version="173"> | ||
3 | + <Objective-C-extensions> | ||
4 | + <file> | ||
5 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" /> | ||
6 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" /> | ||
7 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" /> | ||
8 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" /> | ||
9 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" /> | ||
10 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" /> | ||
11 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" /> | ||
12 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" /> | ||
13 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" /> | ||
14 | + </file> | ||
15 | + <class> | ||
16 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" /> | ||
17 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" /> | ||
18 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" /> | ||
19 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" /> | ||
20 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" /> | ||
21 | + <option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" /> | ||
22 | + </class> | ||
23 | + <extensions> | ||
24 | + <pair source="cpp" header="h" fileNamingConvention="NONE" /> | ||
25 | + <pair source="c" header="h" fileNamingConvention="NONE" /> | ||
26 | + </extensions> | ||
27 | + </Objective-C-extensions> | ||
28 | + </code_scheme> | ||
29 | +</component> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
demo/.idea/gradle.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="GradleSettings"> | ||
4 | + <option name="linkedExternalProjectsSettings"> | ||
5 | + <GradleProjectSettings> | ||
6 | + <compositeConfiguration> | ||
7 | + <compositeBuild compositeDefinitionSource="SCRIPT" /> | ||
8 | + </compositeConfiguration> | ||
9 | + <option name="distributionType" value="DEFAULT_WRAPPED" /> | ||
10 | + <option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
11 | + <option name="resolveModulePerSourceSet" value="false" /> | ||
12 | + </GradleProjectSettings> | ||
13 | + </option> | ||
14 | + </component> | ||
15 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
demo/.idea/misc.xml
0 → 100644
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 |
demo/.idea/runConfigurations.xml
0 → 100644
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 |
demo/Demo_PoolSdk/.classpath
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<classpath> | ||
3 | - <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
4 | - <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
5 | - <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||
6 | - <classpathentry kind="src" path="src"/> | ||
7 | - <classpathentry kind="src" path="gen"/> | ||
8 | - <classpathentry kind="output" path="bin/classes"/> | ||
9 | -</classpath> |
demo/Demo_PoolSdk/.project
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>Demo_PoolSdk</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>org.python.pydev.PyDevBuilder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - <buildCommand> | ||
19 | - <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
20 | - <arguments> | ||
21 | - </arguments> | ||
22 | - </buildCommand> | ||
23 | - <buildCommand> | ||
24 | - <name>org.eclipse.jdt.core.javabuilder</name> | ||
25 | - <arguments> | ||
26 | - </arguments> | ||
27 | - </buildCommand> | ||
28 | - <buildCommand> | ||
29 | - <name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
30 | - <arguments> | ||
31 | - </arguments> | ||
32 | - </buildCommand> | ||
33 | - <buildCommand> | ||
34 | - <name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
35 | - <arguments> | ||
36 | - </arguments> | ||
37 | - </buildCommand> | ||
38 | - </buildSpec> | ||
39 | - <natures> | ||
40 | - <nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
41 | - <nature>org.eclipse.jdt.core.javanature</nature> | ||
42 | - <nature>org.python.pydev.pythonNature</nature> | ||
43 | - <nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
44 | - </natures> | ||
45 | -</projectDescription> |
demo/Demo_PoolSdk/.pydevproject
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | -<?eclipse-pydev version="1.0"?><pydev_project> | ||
3 | -<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
4 | -<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> | ||
5 | -</pydev_project> |
demo/Demo_PoolSdk/1_BuildApk.bat
deleted
100644 → 0
demo/Demo_PoolSdk/ant.properties
deleted
100644 → 0
1 | -# This file is used to override default values used by the Ant build system. | ||
2 | -# | ||
3 | -# This file must be checked into Version Control Systems, as it is | ||
4 | -# integral to the build system of your project. | ||
5 | - | ||
6 | -# This file is only used by the Ant script. | ||
7 | - | ||
8 | -# You can use this to override default values such as | ||
9 | -# 'source.dir' for the location of your java source folder and | ||
10 | -# 'out.dir' for the location of your output folder. | ||
11 | - | ||
12 | -# You can also use it define how the release builds are signed by declaring | ||
13 | -# the following properties: | ||
14 | -# 'key.store' for the location of your keystore and | ||
15 | -# 'key.alias' for the name of the key to use. | ||
16 | -# The password will be asked during the build when you use the 'release' target. | ||
17 | - |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<projectDescription> | ||
3 | - <name>sdk_3</name> | ||
4 | - <comment></comment> | ||
5 | - <projects> | ||
6 | - </projects> | ||
7 | - <buildSpec> | ||
8 | - <buildCommand> | ||
9 | - <name>com.aptana.editor.php.aptanaPhpBuilder</name> | ||
10 | - <arguments> | ||
11 | - </arguments> | ||
12 | - </buildCommand> | ||
13 | - <buildCommand> | ||
14 | - <name>com.aptana.ide.core.unifiedBuilder</name> | ||
15 | - <arguments> | ||
16 | - </arguments> | ||
17 | - </buildCommand> | ||
18 | - </buildSpec> | ||
19 | - <natures> | ||
20 | - <nature>com.aptana.projects.webnature</nature> | ||
21 | - <nature>com.aptana.editor.php.phpNature</nature> | ||
22 | - </natures> | ||
23 | - <filteredResources> | ||
24 | - <filter> | ||
25 | - <id>1489975865951</id> | ||
26 | - <name></name> | ||
27 | - <type>26</type> | ||
28 | - <matcher> | ||
29 | - <id>org.eclipse.ui.ide.multiFilter</id> | ||
30 | - <arguments>1.0-name-matches-false-false-node_modules</arguments> | ||
31 | - </matcher> | ||
32 | - </filter> | ||
33 | - </filteredResources> | ||
34 | -</projectDescription> |
This diff is collapsed. Click to expand it.

7.55 KB
1 | -20170815 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
demo/Demo_PoolSdk/assets/sdkconf.ini
deleted
100644 → 0
demo/Demo_PoolSdk/build.xml
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<project name="PoolSdk" default="help"> | ||
3 | - | ||
4 | - <!-- The local.properties file is created and updated by the 'android' tool. | ||
5 | - It contains the path to the SDK. It should *NOT* be checked into | ||
6 | - Version Control Systems. --> | ||
7 | - <property file="local.properties" /> | ||
8 | - | ||
9 | - <!-- The ant.properties file can be created by you. It is only edited by the | ||
10 | - 'android' tool to add properties to it. | ||
11 | - This is the place to change some Ant specific build properties. | ||
12 | - Here are some properties you may want to change/update: | ||
13 | - | ||
14 | - source.dir | ||
15 | - The name of the source directory. Default is 'src'. | ||
16 | - out.dir | ||
17 | - The name of the output directory. Default is 'bin'. | ||
18 | - | ||
19 | - For other overridable properties, look at the beginning of the rules | ||
20 | - files in the SDK, at tools/ant/build.xml | ||
21 | - | ||
22 | - Properties related to the SDK location or the project target should | ||
23 | - be updated using the 'android' tool with the 'update' action. | ||
24 | - | ||
25 | - This file is an integral part of the build system for your | ||
26 | - application and should be checked into Version Control Systems. | ||
27 | - | ||
28 | - --> | ||
29 | - <property file="ant.properties" /> | ||
30 | - | ||
31 | - <!-- if sdk.dir was not set from one of the property file, then | ||
32 | - get it from the ANDROID_HOME env var. | ||
33 | - This must be done before we load project.properties since | ||
34 | - the proguard config can use sdk.dir --> | ||
35 | - <property environment="env" /> | ||
36 | - <condition property="sdk.dir" value="${env.ANDROID_HOME}"> | ||
37 | - <isset property="env.ANDROID_HOME" /> | ||
38 | - </condition> | ||
39 | - | ||
40 | - <!-- The project.properties file is created and updated by the 'android' | ||
41 | - tool, as well as ADT. | ||
42 | - | ||
43 | - This contains project specific properties such as project target, and library | ||
44 | - dependencies. Lower level build properties are stored in ant.properties | ||
45 | - (or in .classpath for Eclipse projects). | ||
46 | - | ||
47 | - This file is an integral part of the build system for your | ||
48 | - application and should be checked into Version Control Systems. --> | ||
49 | - <loadproperties srcFile="project.properties" /> | ||
50 | - | ||
51 | - <!-- quick check on sdk.dir --> | ||
52 | - <fail | ||
53 | - message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable." | ||
54 | - unless="sdk.dir" | ||
55 | - /> | ||
56 | - | ||
57 | - <!-- | ||
58 | - Import per project custom build rules if present at the root of the project. | ||
59 | - This is the place to put custom intermediary targets such as: | ||
60 | - -pre-build | ||
61 | - -pre-compile | ||
62 | - -post-compile (This is typically used for code obfuscation. | ||
63 | - Compiled code location: ${out.classes.absolute.dir} | ||
64 | - If this is not done in place, override ${out.dex.input.absolute.dir}) | ||
65 | - -post-package | ||
66 | - -post-build | ||
67 | - -pre-clean | ||
68 | - --> | ||
69 | - <import file="custom_rules.xml" optional="true" /> | ||
70 | - | ||
71 | - <!-- Import the actual build file. | ||
72 | - | ||
73 | - To customize existing targets, there are two options: | ||
74 | - - Customize only one target: | ||
75 | - - copy/paste the target into this file, *before* the | ||
76 | - <import> task. | ||
77 | - - customize it to your needs. | ||
78 | - - Customize the whole content of build.xml | ||
79 | - - copy/paste the content of the rules files (minus the top node) | ||
80 | - into this file, replacing the <import> task. | ||
81 | - - customize to your needs. | ||
82 | - | ||
83 | - *********************** | ||
84 | - ****** IMPORTANT ****** | ||
85 | - *********************** | ||
86 | - In all cases you must update the value of version-tag below to read 'custom' instead of an integer, | ||
87 | - in order to avoid having your file be overridden by tools such as "android update project" | ||
88 | - --> | ||
89 | - <!-- version-tag: 1 --> | ||
90 | - <import file="${sdk.dir}/tools/ant/build.xml" /> | ||
91 | - | ||
92 | -</project> |

50.2 KB
No preview for this file type
demo/Demo_PoolSdk/lint.xml
deleted
100644 → 0
demo/Demo_PoolSdk/local.properties
deleted
100644 → 0
1 | -# This file is automatically generated by Android Tools. | ||
2 | -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
3 | -# | ||
4 | -# This file must *NOT* be checked into Version Control Systems, | ||
5 | -# as it contains information specific to your local configuration. | ||
6 | - | ||
7 | -# location of the SDK. This is only used by Ant | ||
8 | -# For customization when using a Version Control System, please read the | ||
9 | -# header note. | ||
10 | -sdk.dir=D:\\android\\sdk |
demo/Demo_PoolSdk/project.properties
deleted
100644 → 0
1 | -# This file is automatically generated by Android Tools. | ||
2 | -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
3 | -# | ||
4 | -# This file must be checked in Version Control Systems. | ||
5 | -# | ||
6 | -# To customize properties used by the Ant build system edit | ||
7 | -# "ant.properties", and override values to adapt the script to your | ||
8 | -# project structure. | ||
9 | -# | ||
10 | -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): | ||
11 | -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt | ||
12 | - | ||
13 | -# Project target. | ||
14 | -target=android-21 |

5.71 KB

6.39 KB

5.59 KB

5.72 KB

382 KB

6.29 KB

384 KB
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android" > | ||
3 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_selected="true"/> | ||
4 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_pressed="true"/> | ||
5 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_main_n"/> | ||
6 | -</selector> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android" > | ||
3 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_selected="true"/> | ||
4 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_pressed="true"/> | ||
5 | - <item android:drawable="@drawable/public_sdk_self_demo_btn_login_n"/> | ||
6 | -</selector> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:layout_width="match_parent" | ||
4 | - android:layout_height="match_parent" | ||
5 | - android:background="@drawable/public_sdk_self_demo_main" > | ||
6 | - | ||
7 | - <Button | ||
8 | - android:id="@+id/ya_channel_center" | ||
9 | - android:layout_width="180dp" | ||
10 | - android:layout_height="60dp" | ||
11 | - android:layout_alignParentRight="true" | ||
12 | - android:layout_alignTop="@+id/ya_pay_bt" | ||
13 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
14 | - android:onClick="yaOnClick"/> | ||
15 | - | ||
16 | - <Button | ||
17 | - android:id="@+id/ya_switch_account_bt" | ||
18 | - android:layout_width="180dp" | ||
19 | - android:layout_height="60dp" | ||
20 | - android:layout_alignParentRight="true" | ||
21 | - android:layout_alignTop="@+id/ya_submit_role_data_bt" | ||
22 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
23 | - android:onClick="yaOnClick" /> | ||
24 | - | ||
25 | - <Button | ||
26 | - android:id="@+id/ya_submit_role_data_bt" | ||
27 | - android:layout_width="180dp" | ||
28 | - android:layout_height="60dp" | ||
29 | - android:layout_alignParentBottom="true" | ||
30 | - android:layout_alignParentLeft="true" | ||
31 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
32 | - android:onClick="yaOnClick" /> | ||
33 | - | ||
34 | - <Button | ||
35 | - android:id="@+id/ya_pay_bt" | ||
36 | - android:layout_width="180dp" | ||
37 | - android:layout_height="60dp" | ||
38 | - android:layout_alignParentLeft="true" | ||
39 | - android:layout_alignParentTop="true" | ||
40 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
41 | - android:onClick="yaOnClick" /> | ||
42 | - | ||
43 | - | ||
44 | - <Button | ||
45 | - android:id="@+id/logout_bt" | ||
46 | - android:layout_width="180dp" | ||
47 | - android:layout_height="60dp" | ||
48 | - android:layout_alignParentLeft="true" | ||
49 | - android:layout_centerVertical="true" | ||
50 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
51 | - android:onClick="yaOnClick" | ||
52 | - android:text="注销" | ||
53 | - android:textColor="@android:color/black" | ||
54 | - /> | ||
55 | - | ||
56 | - <Button | ||
57 | - android:id="@+id/forum_bt" | ||
58 | - android:layout_width="180dp" | ||
59 | - android:layout_height="60dp" | ||
60 | - android:layout_alignParentRight="true" | ||
61 | - android:layout_centerVertical="true" | ||
62 | - android:background="@drawable/public_sdk_self_ya_bt_selector" | ||
63 | - android:onClick="yaOnClick" | ||
64 | - android:text="论坛" | ||
65 | - android:textColor="@android:color/black" | ||
66 | - /> | ||
67 | - | ||
68 | -</RelativeLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:layout_width="match_parent" | ||
4 | - android:background="@drawable/public_sdk_self_sdk_login_bg" | ||
5 | - android:layout_height="match_parent" > | ||
6 | - | ||
7 | - <Button | ||
8 | - android:id="@+id/ya_login_bt" | ||
9 | - android:layout_width="wrap_content" | ||
10 | - android:layout_height="wrap_content" | ||
11 | - android:layout_alignParentRight="true" | ||
12 | - android:layout_alignParentTop="true" | ||
13 | - android:layout_marginRight="28dp" | ||
14 | - android:layout_marginTop="21dp" | ||
15 | - android:background="@drawable/public_sdk_self_ya_login_bt_selector" | ||
16 | - android:onClick="yaOnClick" /> | ||
17 | - | ||
18 | - <Button | ||
19 | - android:id="@+id/ya_enter_game_bt" | ||
20 | - android:layout_width="wrap_content" | ||
21 | - android:layout_height="wrap_content" | ||
22 | - android:layout_alignLeft="@+id/ya_login_bt" | ||
23 | - android:layout_below="@+id/ya_login_bt" | ||
24 | - android:layout_marginTop="28dp" | ||
25 | - android:background="@drawable/public_sdk_self_ya_login_bt_selector" | ||
26 | - android:onClick="yaOnClick"/> | ||
27 | - | ||
28 | -</RelativeLayout> |
demo/app/.gitignore
0 → 100644
1 | +/build |
demo/app/build.gradle
0 → 100644
1 | +apply plugin: 'com.android.application' | ||
2 | + | ||
3 | +android { | ||
4 | + compileSdkVersion 29 | ||
5 | + buildToolsVersion "29.0.2" | ||
6 | + defaultConfig { | ||
7 | + applicationId "com.youai.demo.poolsdk" | ||
8 | + minSdkVersion 19 | ||
9 | + targetSdkVersion 29 | ||
10 | + versionCode 1 | ||
11 | + versionName "1.0" | ||
12 | + } | ||
13 | + buildTypes { | ||
14 | + release { | ||
15 | + minifyEnabled false | ||
16 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
17 | + } | ||
18 | + } | ||
19 | +} | ||
20 | + | ||
21 | +dependencies { | ||
22 | + implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') | ||
23 | +} |
No preview for this file type
No preview for this file type
No preview for this file type
demo/app/libs/android-support-v4.jar
0 → 100644
No preview for this file type
demo/app/libs/miit_mdid_1.0.10.aar
0 → 100644
No preview for this file type
No preview for this file type
1 | -# To enable ProGuard in your project, edit project.properties | ||
2 | -# to define the proguard.config property as described in that file. | ||
3 | -# | ||
4 | # Add project specific ProGuard rules here. | 1 | # Add project specific ProGuard rules here. |
5 | -# By default, the flags in this file are appended to flags specified | 2 | +# You can control the set of applied configuration files using the |
6 | -# in ${sdk.dir}/tools/proguard/proguard-android.txt | 3 | +# proguardFiles setting in build.gradle. |
7 | -# You can edit the include path and order by changing the ProGuard | ||
8 | -# include property in project.properties. | ||
9 | # | 4 | # |
10 | # For more details, see | 5 | # For more details, see |
11 | # http://developer.android.com/guide/developing/tools/proguard.html | 6 | # http://developer.android.com/guide/developing/tools/proguard.html |
12 | 7 | ||
13 | -# Add any project specific keep options here: | ||
14 | - | ||
15 | # If your project uses WebView with JS, uncomment the following | 8 | # If your project uses WebView with JS, uncomment the following |
16 | # and specify the fully qualified class name to the JavaScript interface | 9 | # and specify the fully qualified class name to the JavaScript interface |
17 | # class: | 10 | # class: |
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { | 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { |
19 | # public *; | 12 | # public *; |
20 | #} | 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"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | - package="com.youai.poolsdk.demo" | 3 | + package="com.youai.demo.poolsdk"> |
4 | - android:versionCode="1" | ||
5 | - android:versionName="1.0" > | ||
6 | - | ||
7 | - <uses-sdk | ||
8 | - android:minSdkVersion="8" | ||
9 | - android:targetSdkVersion="19" /> | ||
10 | 4 | ||
11 | <!-- SDK start --> | 5 | <!-- SDK start --> |
12 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | 6 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
... | @@ -36,7 +30,7 @@ | ... | @@ -36,7 +30,7 @@ |
36 | android:name="com.youai.foolsdk.demo.AppActivity" | 30 | android:name="com.youai.foolsdk.demo.AppActivity" |
37 | android:configChanges="keyboardHidden|orientation|screenSize" | 31 | android:configChanges="keyboardHidden|orientation|screenSize" |
38 | android:label="@string/app_name" | 32 | android:label="@string/app_name" |
39 | - android:screenOrientation="landscape" | 33 | + android:screenOrientation="portrait" |
40 | android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > | 34 | android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > |
41 | <intent-filter> | 35 | <intent-filter> |
42 | <action android:name="android.intent.action.MAIN" /> | 36 | <action android:name="android.intent.action.MAIN" /> |
... | @@ -70,14 +64,6 @@ | ... | @@ -70,14 +64,6 @@ |
70 | <action android:name="com.youai.sdk.YouaiService" /> | 64 | <action android:name="com.youai.sdk.YouaiService" /> |
71 | </intent-filter> | 65 | </intent-filter> |
72 | </service> | 66 | </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 | 67 | ||
82 | <receiver android:name="com.youai.sdk.Receiver" > | 68 | <receiver android:name="com.youai.sdk.Receiver" > |
83 | <intent-filter> | 69 | <intent-filter> |
... | @@ -97,14 +83,6 @@ | ... | @@ -97,14 +83,6 @@ |
97 | android:configChanges="keyboardHidden|navigation|orientation" | 83 | android:configChanges="keyboardHidden|navigation|orientation" |
98 | android:exported="false" | 84 | android:exported="false" |
99 | android:screenOrientation="behind" /> | 85 | 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 --> | 86 | <!-- SDK end --> |
109 | </application> | 87 | </application> |
110 | 88 | ... | ... |
... | @@ -2,18 +2,18 @@ | ... | @@ -2,18 +2,18 @@ |
2 | <config> | 2 | <config> |
3 | 3 | ||
4 | <sdkconfig | 4 | <sdkconfig |
5 | - YA_APPID="576d079de138233c142da6a2" | 5 | + YA_APPID="58fd78a9834e7246b8dc0eac" |
6 | - YA_APPKEY="bf455586ef90b4470d17d167164671e2" | 6 | + YA_APPKEY="b06b86b79c25774ec758657a7203bae6" |
7 | - gamesimplename="sstx_dl" | 7 | + gamesimplename="fytx_test" |
8 | - sdksimplename="i9133" | 8 | + sdksimplename="youyu" |
9 | sdkversioncode="V1_0" | 9 | sdkversioncode="V1_0" |
10 | channelparameter1="" | 10 | channelparameter1="" |
11 | channelparameter2="" | 11 | channelparameter2="" |
12 | custom="" | 12 | custom="" |
13 | gamechannelid="" | 13 | gamechannelid="" |
14 | - logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" | 14 | + logincheckurl="http://183.136.223.85:9010/logincheck/check/" |
15 | - paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" | 15 | + payorderurl="http://183.136.223.85:9020/paycheck/create" |
16 | - payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" | 16 | + paycheckurl="http://183.136.223.85:9020/paycheck/confirm" |
17 | usertype="gssaXIIEiL0=" /> | 17 | usertype="gssaXIIEiL0=" /> |
18 | 18 | ||
19 | </config> | 19 | </config> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
demo/app/src/main/assets/sdk/agreement.html
0 → 100644
This diff is collapsed. Click to expand it.
No preview for this file type
File moved
No preview for this file type
No preview for this file type

10.4 KB
File moved
... | @@ -109,7 +109,6 @@ function initMatching(){ | ... | @@ -109,7 +109,6 @@ function initMatching(){ |
109 | _w = Core.sdk_w * _scale; | 109 | _w = Core.sdk_w * _scale; |
110 | 110 | ||
111 | Core.ios_w = _w; | 111 | Core.ios_w = _w; |
112 | - | ||
113 | 112 | ||
114 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); | 113 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); |
115 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); | 114 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); |
... | @@ -144,13 +143,10 @@ function initMatching(){ | ... | @@ -144,13 +143,10 @@ function initMatching(){ |
144 | var ratio = window.devicePixelRatio; | 143 | var ratio = window.devicePixelRatio; |
145 | Core.ratio = ratio; | 144 | Core.ratio = ratio; |
146 | 145 | ||
147 | - Core.PLATFORM_NAME = '9133游戏'; | 146 | + Core.PLATFORM_NAME = '游娱'; |
148 | 147 | ||
149 | - if(Core.isIos){ | 148 | + |
150 | - Core.server = 'https://sdk.i9133.com'; | 149 | + Core.server = 'https://sdk.uuufish.com'; |
151 | - }else{ | ||
152 | - Core.server = 'http://sdk.i9133.com'; | ||
153 | - } | ||
154 | 150 | ||
155 | var lastServer = localStorage.getItem('last_server'); | 151 | var lastServer = localStorage.getItem('last_server'); |
156 | if(lastServer && lastServer.indexOf('http:')==0){ | 152 | if(lastServer && lastServer.indexOf('http:')==0){ |
... | @@ -221,7 +217,6 @@ function initMatching(){ | ... | @@ -221,7 +217,6 @@ function initMatching(){ |
221 | 217 | ||
222 | Core.ios_w = _w; | 218 | Core.ios_w = _w; |
223 | 219 | ||
224 | - | ||
225 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); | 220 | $('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no'); |
226 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); | 221 | //$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head); |
227 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); | 222 | //$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head); |
... | @@ -552,8 +547,7 @@ function initMatching(){ | ... | @@ -552,8 +547,7 @@ function initMatching(){ |
552 | } | 547 | } |
553 | if ($obj[0].tagName == "FORM") { | 548 | if ($obj[0].tagName == "FORM") { |
554 | $obj[0].disabled = false; | 549 | $obj[0].disabled = false; |
555 | - $obj.find("input[type='text'],input[type='password'],input[name='password'], button").attr('disabled', null); | 550 | + $obj.find("input, button").attr('disabled', null); |
556 | - | ||
557 | var $but_input = $obj.find('[type=submit]'); | 551 | var $but_input = $obj.find('[type=submit]'); |
558 | if ($but_input.is('button')) { | 552 | if ($but_input.is('button')) { |
559 | $but_input.html(temp); | 553 | $but_input.html(temp); | ... | ... |
File moved
File moved
... | @@ -49,10 +49,6 @@ | ... | @@ -49,10 +49,6 @@ |
49 | Core.showMod('help'); | 49 | Core.showMod('help'); |
50 | return false; | 50 | return false; |
51 | }); | 51 | }); |
52 | - that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 | ||
53 | - e.stopPropagation(); | ||
54 | - Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | ||
55 | - }); | ||
56 | } | 52 | } |
57 | 53 | ||
58 | Home.prototype.logout_cb = function(data) { | 54 | Home.prototype.logout_cb = function(data) { |
... | @@ -62,7 +58,7 @@ | ... | @@ -62,7 +58,7 @@ |
62 | 58 | ||
63 | } | 59 | } |
64 | Home.prototype.show_after = function(){ | 60 | Home.prototype.show_after = function(){ |
65 | - $('#login').hide(); | 61 | + $('#login').hide() |
66 | } | 62 | } |
67 | Core.registerMod('home', Home); | 63 | Core.registerMod('home', Home); |
68 | 64 | ||
... | @@ -225,6 +221,7 @@ | ... | @@ -225,6 +221,7 @@ |
225 | Core.first_password = this.$c.find('[name="password"]').val() | 221 | Core.first_password = this.$c.find('[name="password"]').val() |
226 | this.cache(); | 222 | this.cache(); |
227 | Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); | 223 | Core.showTips('成功登录,欢迎使用'+ Core.PLATFORM_NAME +'游戏平台'); |
224 | + | ||
228 | Core.updateMod('home'); | 225 | Core.updateMod('home'); |
229 | } | 226 | } |
230 | Login.prototype.login_eg_cb = function(result) { | 227 | Login.prototype.login_eg_cb = function(result) { |
... | @@ -287,6 +284,7 @@ | ... | @@ -287,6 +284,7 @@ |
287 | if(Core.Data.other_login.length > 0){ | 284 | if(Core.Data.other_login.length > 0){ |
288 | this.$c.find(".other-login-bx").removeClass("hide"); | 285 | this.$c.find(".other-login-bx").removeClass("hide"); |
289 | } | 286 | } |
287 | + | ||
290 | //设置第三方登录显示 | 288 | //设置第三方登录显示 |
291 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { | 289 | for (var i = 0, l = Core.Data.other_login.length; i < l; i++) { |
292 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); | 290 | this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide'); |
... | @@ -383,28 +381,18 @@ | ... | @@ -383,28 +381,18 @@ |
383 | 381 | ||
384 | 382 | ||
385 | that.$c.on('click', '[type=submit],.submit', function(e) { | 383 | that.$c.on('click', '[type=submit],.submit', function(e) { |
386 | - var passWordReg = /^[0-9a-zA-Z]+$/; | ||
387 | e.preventDefault(); | 384 | e.preventDefault(); |
388 | if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ | 385 | if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){ |
389 | Core.showTips("账号不能有大写字母!"); | 386 | Core.showTips("账号不能有大写字母!"); |
390 | }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){ | 387 | }else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){ |
391 | Core.showTips("密码不能有大写字母!"); | 388 | Core.showTips("密码不能有大写字母!"); |
392 | - }else if(that.$c.find("input[name='password']").val().length<6 || that.$c.find("input[name='password']").val().length>16){ | ||
393 | - Core.showTips("密码长度为6-16位字符!"); | ||
394 | }else if(!that.$c.find('.checkbox-2').length>0){ | 389 | }else if(!that.$c.find('.checkbox-2').length>0){ |
395 | Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1); | 390 | Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1); |
396 | - }else if(!passWordReg.test(that.$c.find("input[name='password']").val())){ | ||
397 | - Core.showTips('请输入数字字母组成的密码!', true); | ||
398 | - return false; | ||
399 | }else{ | 391 | }else{ |
400 | //如果是游客的话则调用安卓截屏方法 | 392 | //如果是游客的话则调用安卓截屏方法 |
401 | if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ | 393 | if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ |
402 | window.android.screenShot(); | 394 | window.android.screenShot(); |
403 | - } | 395 | + } |
404 | - $(this).attr("disabled",true); | ||
405 | - $(this).css({"background":"#999"}); | ||
406 | - $(this).parent("li").css({"background":"#999"}); | ||
407 | - | ||
408 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); | 396 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); |
409 | } | 397 | } |
410 | return false; | 398 | return false; |
... | @@ -427,9 +415,6 @@ | ... | @@ -427,9 +415,6 @@ |
427 | that.$c.find('[name="old_usernmae"]').val(random_name) | 415 | that.$c.find('[name="old_usernmae"]').val(random_name) |
428 | that.$c.find('[name="password"]').val(random_passwd) | 416 | that.$c.find('[name="password"]').val(random_passwd) |
429 | that.$c.find('[name="type"]').val(-1) | 417 | that.$c.find('[name="type"]').val(-1) |
430 | - that.$c.find("input#btn-regist").attr('disabled', null); | ||
431 | - that.$c.find('.submit').css({"background":"#00beef"}); | ||
432 | - that.$c.find('.submit').parent("li").css({"background":"#00beef"}); | ||
433 | 418 | ||
434 | } | 419 | } |
435 | Register.prototype.cache = Login.prototype.cache; | 420 | Register.prototype.cache = Login.prototype.cache; |
... | @@ -440,16 +425,8 @@ | ... | @@ -440,16 +425,8 @@ |
440 | Core.first_password = this.$c.find('[name="password"]').val() | 425 | Core.first_password = this.$c.find('[name="password"]').val() |
441 | // 显示一个注册成功信息,并跳转到home | 426 | // 显示一个注册成功信息,并跳转到home |
442 | this.cache(); | 427 | this.cache(); |
443 | - if (Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == "") { | 428 | + Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); |
444 | - Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | 429 | + Core.updateMod('home'); |
445 | - Core.updateMod('identityCard'); | ||
446 | - }else{ | ||
447 | - Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | ||
448 | - Core.updateMod('home'); | ||
449 | - } | ||
450 | - this.$c.find("input#btn-regist").attr('disabled', null); | ||
451 | - this.$c.find('.submit').css({"background":"#00beef"}); | ||
452 | - this.$c.find('.submit').parent("li").css({"background":"#00beef"}); | ||
453 | } | 430 | } |
454 | Register.prototype.show_after = function() { | 431 | Register.prototype.show_after = function() { |
455 | this.set_random(); | 432 | this.set_random(); |
... | @@ -607,14 +584,9 @@ | ... | @@ -607,14 +584,9 @@ |
607 | that.$c.on("click","#js_confirm_resetnewpsw",function(){ | 584 | that.$c.on("click","#js_confirm_resetnewpsw",function(){ |
608 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), | 585 | var NewPsw = that.$c.find("#js_reset_newpsw").val(), |
609 | NewKey = that.$c.find("input[name='pwd_code']").val(), | 586 | NewKey = that.$c.find("input[name='pwd_code']").val(), |
610 | - passWordReg = /^[0-9a-zA-Z]+$/, | ||
611 | account = $("input[name='loginUserName']").val(); | 587 | account = $("input[name='loginUserName']").val(); |
612 | var names = localStorage.getItem('user_names'); | 588 | var names = localStorage.getItem('user_names'); |
613 | names = JSON.parse(names); | 589 | names = JSON.parse(names); |
614 | - if(!passWordReg.test(NewPsw)){ | ||
615 | - Core.showTips('请输入数字字母组成的密码!', true); | ||
616 | - return false; | ||
617 | - } | ||
618 | Core.ajax({ | 590 | Core.ajax({ |
619 | type:"post", | 591 | type:"post", |
620 | url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw, | 592 | url:"/user/reset_passwd?pwd_code="+NewKey+"&password="+NewPsw, |
... | @@ -993,10 +965,10 @@ | ... | @@ -993,10 +965,10 @@ |
993 | Core.showTips("请输入身份证号码",false); | 965 | Core.showTips("请输入身份证号码",false); |
994 | return false; | 966 | return false; |
995 | }else if(IsIdCard(identityCard) == false){ | 967 | }else if(IsIdCard(identityCard) == false){ |
996 | - Core.showTips("身份证号码有误,请检查输入是否正确",false,5000); | 968 | + Core.showTips("请输入正确的身份证信息",false); |
997 | return false; | 969 | return false; |
998 | }else if($.trim(compellationName) == ""){ | 970 | }else if($.trim(compellationName) == ""){ |
999 | - Core.showTips("请输入身份证姓名",false); | 971 | + Core.showTips("请输入姓名",false); |
1000 | return false; | 972 | return false; |
1001 | }else if(!compellationNameReg.test(compellationName)){ | 973 | }else if(!compellationNameReg.test(compellationName)){ |
1002 | Core.showTips("请输入正确的中文姓名",false); | 974 | Core.showTips("请输入正确的中文姓名",false); | ... | ... |
File moved
File moved
... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> | 13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> |
15 | 15 | ||
16 | + | ||
16 | <title> | 17 | <title> |
17 | 平台登录 | 18 | 平台登录 |
18 | </title> | 19 | </title> |
... | @@ -64,7 +65,7 @@ | ... | @@ -64,7 +65,7 @@ |
64 | <i class=" iconfont icon-unie61d"></i> | 65 | <i class=" iconfont icon-unie61d"></i> |
65 | </a> | 66 | </a> |
66 | 67 | ||
67 | - <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_6/login.html%3Fapp_id={app_id}" class="qq iframe hide"> | 68 | + <a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide"> |
68 | </a> | 69 | </a> |
69 | 70 | ||
70 | <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide"> | 71 | <a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide"> |
... | @@ -82,7 +83,7 @@ | ... | @@ -82,7 +83,7 @@ |
82 | </div> | 83 | </div> |
83 | <ul class="inline-btn login-inline-btn"> | 84 | <ul class="inline-btn login-inline-btn"> |
84 | <li> | 85 | <li> |
85 | - <a method="post" class="btn btn_pri_block" href="#register">注册</a> | 86 | + <a method="post" class="btn btn_pri_block" href="#register">一键注册</a> |
86 | 87 | ||
87 | </li> | 88 | </li> |
88 | <li> | 89 | <li> |
... | @@ -157,7 +158,7 @@ | ... | @@ -157,7 +158,7 @@ |
157 | <input type="hidden" name="type" value="-1"> | 158 | <input type="hidden" name="type" value="-1"> |
158 | <ul class="inline-btn"> | 159 | <ul class="inline-btn"> |
159 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> | 160 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> |
160 | - <li><input type="button" class="submit btn larg" id="btn-regist" value="确定注册"></li> | 161 | + <li><a class="submit btn larg " >确定注册</a></li> |
161 | </ul> | 162 | </ul> |
162 | </form> | 163 | </form> |
163 | </div> | 164 | </div> |
... | @@ -418,24 +419,17 @@ | ... | @@ -418,24 +419,17 @@ |
418 | <p>{{=Core.Data.nickname}}</p> | 419 | <p>{{=Core.Data.nickname}}</p> |
419 | </div> | 420 | </div> |
420 | <div class="inline-btn pull-right w_45"> | 421 | <div class="inline-btn pull-right w_45"> |
421 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 422 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
422 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
423 | - {{??}} | ||
424 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
425 | - {{?}} | ||
426 | </div> | 423 | </div> |
427 | </div> | 424 | </div> |
428 | <div class="bind-user"> | 425 | <div class="bind-user"> |
429 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | 426 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> |
430 | - 为保证您的虚拟财产安全,请升级账号! | 427 | + 您当前还是游客,为保证账号安全,请升级账号! |
431 | </div> | 428 | </div> |
432 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | 429 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> |
433 | <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | 430 | <a class="btn btn-bind" href="#modify_pwd">马上升级</a> |
434 | </div> | 431 | </div> |
435 | </div> | 432 | </div> |
436 | - {{? Core.Data.kefu_info != ""}} | ||
437 | - <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px; left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
438 | - {{?}} | ||
439 | </div> | 433 | </div> |
440 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> | 434 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> |
441 | <div class="user-center-box"> | 435 | <div class="user-center-box"> |
... | @@ -445,11 +439,7 @@ | ... | @@ -445,11 +439,7 @@ |
445 | <p>{{=Core.Data.nickname}}</p> | 439 | <p>{{=Core.Data.nickname}}</p> |
446 | </div> | 440 | </div> |
447 | <div class="inline-btn pull-right w_45"> | 441 | <div class="inline-btn pull-right w_45"> |
448 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 442 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
449 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
450 | - {{??}} | ||
451 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
452 | - {{?}} | ||
453 | </div> | 443 | </div> |
454 | </div> | 444 | </div> |
455 | {{? Core.Data.bind_phone === ""}} | 445 | {{? Core.Data.bind_phone === ""}} |
... | @@ -467,9 +457,7 @@ | ... | @@ -467,9 +457,7 @@ |
467 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | 457 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> |
468 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | 458 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> |
469 | </ul> | 459 | </ul> |
470 | - {{? Core.Data.kefu_info != ""}} | 460 | + {{?}} |
471 | - <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
472 | - {{?}} {{?}} | ||
473 | </div> | 461 | </div> |
474 | {{?? Core.Data.is_guest == 0}} | 462 | {{?? Core.Data.is_guest == 0}} |
475 | <div class="user-center-box"> | 463 | <div class="user-center-box"> |
... | @@ -479,21 +467,19 @@ | ... | @@ -479,21 +467,19 @@ |
479 | <p>{{=Core.Data.nickname}}</p> | 467 | <p>{{=Core.Data.nickname}}</p> |
480 | </div> | 468 | </div> |
481 | <div class="inline-btn pull-right w_45"> | 469 | <div class="inline-btn pull-right w_45"> |
482 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 470 | + <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
483 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
484 | - {{??}} | ||
485 | - <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | ||
486 | - {{?}} | ||
487 | </div> | 471 | </div> |
488 | </div> | 472 | </div> |
489 | - | 473 | + |
490 | - {{? Core.Data.force_auth == 1}} | 474 | + {{? Core.Data.bind_phone === ""}} |
491 | <ul class="list-item clearfix"> | 475 | <ul class="list-item clearfix"> |
492 | - {{? Core.Data.bind_phone === ""}} | 476 | + <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> |
493 | - <li style="position: relative;width:50%;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | 477 | + <li><a href="#mibao">设置密保</a></li> |
494 | - {{??}} | 478 | + <li><a href="#modify_pwd">修改密码</a></li> |
495 | - <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | 479 | + </ul> |
496 | - {{?}} | 480 | + {{??}} |
481 | + <ul class="list-item clearfix"> | ||
482 | + <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | ||
497 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> | 483 | <li style="width:50%;"><a href="#mibao">设置密保</a></li> |
498 | </ul> | 484 | </ul> |
499 | <ul class="list-item clearfix" style="border-top:none;"> | 485 | <ul class="list-item clearfix" style="border-top:none;"> |
... | @@ -506,46 +492,7 @@ | ... | @@ -506,46 +492,7 @@ |
506 | </a></li> | 492 | </a></li> |
507 | {{?}} | 493 | {{?}} |
508 | </ul> | 494 | </ul> |
509 | - {{? Core.Data.kefu_info != ""}} | 495 | + {{?}} |
510 | - <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
511 | - {{?}} {{??}} | ||
512 | - {{? Core.Data.bind_phone === ""}} | ||
513 | - <ul class="list-item clearfix"> | ||
514 | - <li style="width:50%;"><a href="#bindMobile">绑定手机</a></li> | ||
515 | - <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
516 | - </ul> | ||
517 | - <ul class="list-item clearfix" style="border-top:none;"> | ||
518 | - <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
519 | - {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}} | ||
520 | - <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
521 | - {{??}} | ||
522 | - <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证 | ||
523 | - <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span> | ||
524 | - </a></li> | ||
525 | - {{?}} | ||
526 | - </ul> | ||
527 | - {{? Core.Data.kefu_info != ""}} | ||
528 | - <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
529 | - {{?}} | ||
530 | - {{??}} | ||
531 | - <ul class="list-item clearfix"> | ||
532 | - <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | ||
533 | - <li style="width:50%;"><a href="#mibao">设置密保</a></li> | ||
534 | - </ul> | ||
535 | - <ul class="list-item clearfix" style="border-top:none;"> | ||
536 | - <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | ||
537 | - {{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}} | ||
538 | - <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | ||
539 | - {{??}} | ||
540 | - <li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证 | ||
541 | - <span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span> | ||
542 | - </a></li> | ||
543 | - {{?}} | ||
544 | - </ul> | ||
545 | - {{? Core.Data.kefu_info != ""}} | ||
546 | - <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | ||
547 | - {{?}} {{?}} | ||
548 | - {{?}} | ||
549 | <!--<ul class="list-item clearfix"> | 496 | <!--<ul class="list-item clearfix"> |
550 | {{? Core.Data.bind_phone === ""}} | 497 | {{? Core.Data.bind_phone === ""}} |
551 | <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> | 498 | <li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li> |
... | @@ -677,7 +624,7 @@ | ... | @@ -677,7 +624,7 @@ |
677 | 624 | ||
678 | </label> | 625 | </label> |
679 | </div> | 626 | </div> |
680 | - {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,请妥善保管正式账号</p>{{??}}{{?}} | 627 | + {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} |
681 | 628 | ||
682 | </div> | 629 | </div> |
683 | 630 | ||
... | @@ -696,19 +643,15 @@ | ... | @@ -696,19 +643,15 @@ |
696 | <div class="new-sdk-container"> | 643 | <div class="new-sdk-container"> |
697 | <div class="SDK-titlebox"></div> | 644 | <div class="SDK-titlebox"></div> |
698 | <div class="user-center"> | 645 | <div class="user-center"> |
699 | - {{? Core.Data.force_auth !== 1 }} | ||
700 | <a href="#home" class="lefticon"> | 646 | <a href="#home" class="lefticon"> |
701 | <i class="iconfont icon-fanhui"></i> | 647 | <i class="iconfont icon-fanhui"></i> |
702 | </a> | 648 | </a> |
703 | - {{?}} | 649 | + 实名认证 |
704 | - 实名认证<div class="" style=" font-size: 18px;color: #949494;text-align: left; padding-left: 37px;">根据国家规定,游戏用户需进行实名认证</div> | ||
705 | </div> | 650 | </div> |
706 | - | ||
707 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | 651 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > |
708 | - | ||
709 | <div class="new-sdk-box"> | 652 | <div class="new-sdk-box"> |
710 | - <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div> | 653 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div> |
711 | - <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入身份证姓名" style="text-align: left;"></div> | 654 | + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> |
712 | </div> | 655 | </div> |
713 | <ul class="inline-btn"> | 656 | <ul class="inline-btn"> |
714 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | 657 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | ... | ... |
... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c | ... | @@ -36,4 +36,4 @@ instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c |
36 | 36 | ||
37 | date:2017-5-12 | 37 | date:2017-5-12 |
38 | author:lizenghua | 38 | author:lizenghua |
39 | -instructions:与游娱同步 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
39 | +instructions:修改充值的界面显示大小 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -23,7 +23,6 @@ section{ | ... | @@ -23,7 +23,6 @@ section{ |
23 | a,input,textarea,select { | 23 | a,input,textarea,select { |
24 | outline: 0; | 24 | outline: 0; |
25 | } | 25 | } |
26 | -input[type=button],input[type=text],input[type=password]{-webkit-appearance:none;outline:none} | ||
27 | a:focus { | 26 | a:focus { |
28 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ | 27 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ |
29 | } | 28 | } | ... | ... |
File moved
File moved
demo/app/src/main/assets/sdk/version.txt
0 → 100644
1 | +20170511 |
demo/app/src/main/assets/sdkconf.ini
0 → 100644
demo/app/src/main/assets/supplierconfig.json
0 → 100644
This diff is collapsed. Click to expand it.

13.8 KB
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:text="注销" /> | ||
48 | + </LinearLayout> | ||
49 | + | ||
50 | + <LinearLayout | ||
51 | + android:layout_width="0dp" | ||
52 | + android:layout_height="wrap_content" | ||
53 | + android:layout_margin="5dp" | ||
54 | + android:layout_weight="1" | ||
55 | + android:orientation="vertical" > | ||
56 | + | ||
57 | + <Button | ||
58 | + android:id="@+id/pb_bt_subrole" | ||
59 | + style="?android:attr/buttonStyleSmall" | ||
60 | + android:layout_width="fill_parent" | ||
61 | + android:layout_height="wrap_content" | ||
62 | + android:text="提交角色数据" /> | ||
63 | + | ||
64 | + <Button | ||
65 | + android:id="@+id/pb_bt_openchannel" | ||
66 | + style="?android:attr/buttonStyleSmall" | ||
67 | + android:layout_width="fill_parent" | ||
68 | + android:layout_height="wrap_content" | ||
69 | + android:text="打开渠道个人中心" /> | ||
70 | + | ||
71 | + <Button | ||
72 | + android:id="@+id/pb_bt_switchacc" | ||
73 | + style="?android:attr/buttonStyleSmall" | ||
74 | + android:layout_width="fill_parent" | ||
75 | + android:layout_height="wrap_content" | ||
76 | + android:text="切换账号" /> | ||
77 | + | ||
78 | + <Button | ||
79 | + android:id="@+id/pb_bt_openbbs" | ||
80 | + style="?android:attr/buttonStyleSmall" | ||
81 | + android:layout_width="fill_parent" | ||
82 | + android:layout_height="wrap_content" | ||
83 | + android:text="打开论坛" /> | ||
84 | + </LinearLayout> | ||
85 | + </LinearLayout> | ||
86 | + | ||
87 | + <TextView | ||
88 | + android:layout_width="fill_parent" | ||
89 | + android:layout_height="wrap_content" | ||
90 | + android:layout_gravity="center" | ||
91 | + android:layout_margin="10dp" | ||
92 | + android:gravity="center" | ||
93 | + /> | ||
94 | + | ||
95 | + <TextView | ||
96 | + android:id="@+id/tx_sdk_msg" | ||
97 | + android:layout_width="fill_parent" | ||
98 | + android:layout_height="wrap_content" | ||
99 | + android:layout_margin="10dp" /> | ||
100 | + | ||
101 | + <TextView | ||
102 | + android:id="@+id/tx_msg" | ||
103 | + android:layout_width="fill_parent" | ||
104 | + android:layout_height="wrap_content" | ||
105 | + android:layout_margin="10dp" /> | ||
106 | + | ||
107 | +</LinearLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
demo/build.gradle
0 → 100644
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 | +} |
demo/gradle.properties
0 → 100644
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 | + |
demo/gradle/wrapper/gradle-wrapper.jar
0 → 100644
No preview for this file type
demo/gradlew
0 → 100644
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" "$@" |
demo/gradlew.bat
0 → 100644
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 |
demo/settings.gradle
0 → 100644
1 | +include ':app' |
1 | # 公共SDK接入文档 # | 1 | # 公共SDK接入文档 # |
2 | 2 | ||
3 | ## 接入必读 | 3 | ## 接入必读 |
4 | -`注意!CP必须设置targetSdkVersion为22及以下版本,不能高于22` | 4 | +`注意!targetSdkVersion建议设置22及以下版本` |
5 | 5 | ||
6 | -`如果需使用高版本,权限获取问题需要CP自行处理` | 6 | +`如果需使用高版本,游戏自身动态申请权限获取问题需要CP自行处理` |
7 | 7 | ||
8 | ` | 8 | ` |
9 | -接入公共SDK测试没问题后游戏必须删除掉assets下公共SDK相关资源, | 9 | +接入公共SDK测试没问题后游戏必须删除掉assets下公共SDK相关资源 |
10 | +(sdk文件夹、sdk.zip、sdkconf.ini)、(supplierconfig.json文件需要保留) | ||
10 | 删除manifest中关于公共SDK添加activity和service相关, | 11 | 删除manifest中关于公共SDK添加activity和service相关, |
11 | -删除libs下的XingWanSDK.jar或YouYuSDK.jar, | 12 | +删除libs下的YouYuSDK_190516.jar, |
12 | 然后打出一个母包,需要上哪个渠道使用打包工具进行打对应渠道包。 | 13 | 然后打出一个母包,需要上哪个渠道使用打包工具进行打对应渠道包。 |
13 | ` | 14 | ` |
14 | 15 | ||
... | @@ -20,7 +21,7 @@ | ... | @@ -20,7 +21,7 @@ |
20 | #### 1.2、复制SDK压缩包中assets目录下的所有内容到游戏工程的assets目录 #### | 21 | #### 1.2、复制SDK压缩包中assets目录下的所有内容到游戏工程的assets目录 #### |
21 | 22 | ||
22 | - 将游戏中的闪屏图片放到assets中poolsdk_splash目录下(选用,图片文件名任意,最多支持2张闪屏) | 23 | - 将游戏中的闪屏图片放到assets中poolsdk_splash目录下(选用,图片文件名任意,最多支持2张闪屏) |
23 | -- 将assets中的poolsdk.xml中的 **YA_APPKEY,YA_APPID,gamesimplename** 修改为申请的参数(必填)(请与相关人员申请) | 24 | +- 将assets中的poolsdk.xml中的 **YA_APPKEY,YA_APPID,gamesimplename,sdksimplename,sdkversioncode** 修改为申请的参数(必填)(请与相关人员申请) |
24 | - channelparameter1 和 channelparameter2 为后台对应渠道编号1和2(选填)(游戏客户端可以通过文档 2.12 方法获取) | 25 | - channelparameter1 和 channelparameter2 为后台对应渠道编号1和2(选填)(游戏客户端可以通过文档 2.12 方法获取) |
25 | - custom 为自定义参数(选填) | 26 | - custom 为自定义参数(选填) |
26 | - gamechannelid 为游戏渠道号(选填)(游戏客户端可以通过文档 2.12 方法获取) | 27 | - gamechannelid 为游戏渠道号(选填)(游戏客户端可以通过文档 2.12 方法获取) |
... | @@ -71,15 +72,7 @@ | ... | @@ -71,15 +72,7 @@ |
71 | <action android:name="com.youai.sdk.YouaiService" /> | 72 | <action android:name="com.youai.sdk.YouaiService" /> |
72 | </intent-filter> | 73 | </intent-filter> |
73 | </service> | 74 | </service> |
74 | - <service | 75 | + |
75 | - android:name="com.youai.sdk.FloatViewService" | ||
76 | - android:enabled="true" | ||
77 | - android:exported="true" > | ||
78 | - <intent-filter> | ||
79 | - <action android:name="com.youai.sdk.FloatViewService" /> | ||
80 | - </intent-filter> | ||
81 | - </service> | ||
82 | - | ||
83 | <receiver android:name="com.youai.sdk.Receiver" > | 76 | <receiver android:name="com.youai.sdk.Receiver" > |
84 | <intent-filter> | 77 | <intent-filter> |
85 | <action android:name="android.intent.action.BOOT_COMPLETED" /> | 78 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
... | @@ -98,15 +91,6 @@ | ... | @@ -98,15 +91,6 @@ |
98 | android:configChanges="keyboardHidden|navigation|orientation" | 91 | android:configChanges="keyboardHidden|navigation|orientation" |
99 | android:exported="false" | 92 | android:exported="false" |
100 | android:screenOrientation="behind" /> | 93 | android:screenOrientation="behind" /> |
101 | - <activity | ||
102 | - android:name=".wxapi.WXPayEntryActivity" | ||
103 | - android:exported="true" | ||
104 | - android:launchMode="singleTop" /> | ||
105 | - <activity | ||
106 | - android:name=".wxapi.WXEntryActivity" | ||
107 | - android:exported="true" | ||
108 | - android:launchMode="singleTop" /> | ||
109 | - | ||
110 | ``` | 94 | ``` |
111 | 95 | ||
112 | 96 | ||
... | @@ -132,7 +116,7 @@ | ... | @@ -132,7 +116,7 @@ |
132 | } | 116 | } |
133 | } | 117 | } |
134 | ``` | 118 | ``` |
135 | -#### 2.2、初始化接口(必接) | 119 | +#### 2.2、初始化接口(必接) 高版本Target请游戏申请完自己需要的权限再调用 |
136 | 接口说明: | 120 | 接口说明: |
137 | 首先在程序开始的地方调用 SDK 的初始化 init 方法,并设 置 Activity 对像和初始化完成回调 | 121 | 首先在程序开始的地方调用 SDK 的初始化 init 方法,并设 置 Activity 对像和初始化完成回调 |
138 | 监听(在初始化失败情况下不 再调用其它 SDK 接口方法) | 122 | 监听(在初始化失败情况下不 再调用其它 SDK 接口方法) |
... | @@ -272,7 +256,7 @@ public static void submitRoleData(final PoolRoleInfo poolRoleInfo,final PoolRole | ... | @@ -272,7 +256,7 @@ public static void submitRoleData(final PoolRoleInfo poolRoleInfo,final PoolRole |
272 | PoolSdkHelper.submitRoleData(poolRoleInfo, new PoolRoleListener() { | 256 | PoolSdkHelper.submitRoleData(poolRoleInfo, new PoolRoleListener() { |
273 | @Override | 257 | @Override |
274 | public void onRoleDataSuccess(String paramCustom) { | 258 | public void onRoleDataSuccess(String paramCustom) { |
275 | - System.out.println("提交角色数据成功 = " + paramCustom); | 259 | + System.out.println("提交角色数据成功 = " + poolRoleInfo.verboseInfo()); |
276 | } | 260 | } |
277 | }); | 261 | }); |
278 | 262 | ||
... | @@ -358,7 +342,7 @@ public static void pay(final PoolPayInfo poolPayInfo,final PoolPayListener poolP | ... | @@ -358,7 +342,7 @@ public static void pay(final PoolPayInfo poolPayInfo,final PoolPayListener poolP |
358 | ```java | 342 | ```java |
359 | public static boolean hasChannelCenter() | 343 | public static boolean hasChannelCenter() |
360 | ``` | 344 | ``` |
361 | -#### 2.7、用户中心接口(必接) | 345 | +#### 2.7、用户中心接口 |
362 | 346 | ||
363 | 说明:打开渠道用户中心界面 | 347 | 说明:打开渠道用户中心界面 |
364 | 348 | ||
... | @@ -680,30 +664,29 @@ PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString()); | ... | @@ -680,30 +664,29 @@ PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString()); |
680 | 664 | ||
681 | 代码示例: | 665 | 代码示例: |
682 | ```java | 666 | ```java |
683 | -if(paramCustom == null || paramCustom.length() <= 0) | 667 | + if(paramCustom == null || paramCustom.length() <= 0) |
684 | -{ | 668 | + { |
685 | -PoolSdkLog.logError("paysuccess data error :" + paramCustom); | 669 | + PoolSdkLog.logError("paysuccess data error :" + paramCustom); |
686 | -return; | 670 | + return; |
687 | -} | 671 | + } |
688 | - | 672 | + |
689 | -try { | 673 | + try { |
690 | -PoolSdkLog.logInfo("paySuccess:" + paramCustom); | 674 | + PoolSdkLog.logInfo("paySuccess:" + paramCustom); |
691 | -JSONArray jsonArray = new JSONArray(paramCustom); | 675 | + JSONArray jsonArray = new JSONArray(paramCustom); |
692 | -StringBuilder orderIds = new StringBuilder(); | 676 | + StringBuilder orderIds = new StringBuilder(); |
693 | -int length = jsonArray.length(); | 677 | + int length = jsonArray.length(); |
694 | -for (int i = 0; i < length; i++) { | 678 | + for (int i = 0; i < length; i++) { |
695 | -JSONObject jb = jsonArray.getJSONObject(i); | 679 | + JSONObject jb = jsonArray.getJSONObject(i); |
696 | -String orderId = jb.getString("orderId"); | 680 | + String orderId = jb.getString("orderId"); |
697 | -orderIds.append(orderId); | 681 | + orderIds.append(orderId); |
698 | -if(i != length -1) {//最后一项不加分割符 | 682 | + if(i != length -1) {//最后一项不加分割符 |
699 | -orderIds.append(","); | 683 | + orderIds.append(","); |
700 | -} | 684 | + } |
701 | -} | 685 | + } |
702 | -PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString()); | 686 | + PoolSdkHelper.paymentSuccess(AppActivity.this, orderIds.toString()); |
703 | -} catch (JSONException e) { | 687 | + } catch (JSONException e) { |
704 | -// TODO Auto-generated catch block | 688 | + e.printStackTrace(); |
705 | -e.printStackTrace(); | 689 | + } |
706 | -} | ||
707 | ``` | 690 | ``` |
708 | 691 | ||
709 | 692 | ... | ... |
No preview for this file type
No preview for this file type
No preview for this file type
libs/miit_mdid_1.0.10.aar
0 → 100644
No preview for this file type
-
Please register or login to post a comment