Commit 83715f60d781d79ced8332a256beb307c0dc778f
1 parent
ef2ec63d9b
Exists in
master
add inlandSDKRelease
Showing 31 changed files with 526 additions and 0 deletions Side-by-side Diff
- .gitignore
- InlandSDKDemo/.classpath
- InlandSDKDemo/.project
- InlandSDKDemo/AndroidManifest.xml
- InlandSDKDemo/assets/data.bin
- InlandSDKDemo/libs/android-support-v4.jar
- InlandSDKDemo/proguard-project.txt
- InlandSDKDemo/project.properties
- InlandSDKDemo/res/drawable-hdpi/ic_launcher.png
- InlandSDKDemo/res/drawable-mdpi/ic_launcher.png
- InlandSDKDemo/res/drawable-xhdpi/ic_launcher.png
- InlandSDKDemo/res/layout/activity_main.xml
- InlandSDKDemo/res/layout/fragment_logic.xml
- InlandSDKDemo/res/layout/fragment_signin.xml
- InlandSDKDemo/res/values/colors.xml
- InlandSDKDemo/res/values/strings.xml
- InlandSDKDemo/res/values/styles.xml
- InlandSDKDemo/src/com/gump/inland/sdk/demo/MainActivity.java
- InlandSDKDemo/src/com/ninjaonline/wxapi/WXPayEntryActivity.java
- InlandSDKRelease/.classpath
- InlandSDKRelease/.project
- InlandSDKRelease/AndroidManifest.xml
- InlandSDKRelease/proguard-project.txt
- InlandSDKRelease/project.properties
- InlandSDKRelease/res/drawable-hdpi/ic_launcher.png
- InlandSDKRelease/res/drawable-mdpi/ic_launcher.png
- InlandSDKRelease/res/drawable-xhdpi/ic_launcher.png
- InlandSDKRelease/res/values-v11/styles.xml
- InlandSDKRelease/res/values-v14/styles.xml
- InlandSDKRelease/res/values/strings.xml
- InlandSDKRelease/res/values/styles.xml
.gitignore
InlandSDKDemo/.classpath
| ... | ... | @@ -0,0 +1,9 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<classpath> | |
| 3 | + <classpathentry kind="src" path="src"/> | |
| 4 | + <classpathentry kind="src" path="gen"/> | |
| 5 | + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | |
| 6 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | |
| 7 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | |
| 8 | + <classpathentry kind="output" path="bin/classes"/> | |
| 9 | +</classpath> |
InlandSDKDemo/.project
| ... | ... | @@ -0,0 +1,33 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<projectDescription> | |
| 3 | + <name>InlandSDKDemo</name> | |
| 4 | + <comment></comment> | |
| 5 | + <projects> | |
| 6 | + </projects> | |
| 7 | + <buildSpec> | |
| 8 | + <buildCommand> | |
| 9 | + <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | |
| 10 | + <arguments> | |
| 11 | + </arguments> | |
| 12 | + </buildCommand> | |
| 13 | + <buildCommand> | |
| 14 | + <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | |
| 15 | + <arguments> | |
| 16 | + </arguments> | |
| 17 | + </buildCommand> | |
| 18 | + <buildCommand> | |
| 19 | + <name>org.eclipse.jdt.core.javabuilder</name> | |
| 20 | + <arguments> | |
| 21 | + </arguments> | |
| 22 | + </buildCommand> | |
| 23 | + <buildCommand> | |
| 24 | + <name>com.android.ide.eclipse.adt.ApkBuilder</name> | |
| 25 | + <arguments> | |
| 26 | + </arguments> | |
| 27 | + </buildCommand> | |
| 28 | + </buildSpec> | |
| 29 | + <natures> | |
| 30 | + <nature>com.android.ide.eclipse.adt.AndroidNature</nature> | |
| 31 | + <nature>org.eclipse.jdt.core.javanature</nature> | |
| 32 | + </natures> | |
| 33 | +</projectDescription> |
InlandSDKDemo/AndroidManifest.xml
| ... | ... | @@ -0,0 +1,67 @@ |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + package="com.ninjaonline" | |
| 4 | + android:versionCode="1" | |
| 5 | + android:versionName="1.0" > | |
| 6 | + | |
| 7 | + <uses-sdk | |
| 8 | + android:minSdkVersion="10" | |
| 9 | + android:targetSdkVersion="21" /> | |
| 10 | + | |
| 11 | + <uses-permission android:name="android.permission.INTERNET" /> | |
| 12 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| 13 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| 14 | + <uses-permission android:name="android.permission.BLUETOOTH" /> | |
| 15 | + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| 16 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| 17 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| 18 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | |
| 19 | + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | |
| 20 | + <!-- 以下是银联支付专用 --> | |
| 21 | + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
| 22 | + | |
| 23 | + | |
| 24 | + <application | |
| 25 | + android:allowBackup="true" | |
| 26 | + android:icon="@drawable/ic_launcher" | |
| 27 | + android:label="@string/app_name" > | |
| 28 | + <activity | |
| 29 | + android:name="com.gump.inland.sdk.demo.MainActivity" | |
| 30 | + android:label="@string/app_name" > | |
| 31 | + <intent-filter> | |
| 32 | + <action android:name="android.intent.action.MAIN" /> | |
| 33 | + | |
| 34 | + <category android:name="android.intent.category.LAUNCHER" /> | |
| 35 | + </intent-filter> | |
| 36 | + <intent-filter> | |
| 37 | + <action android:name="android.intent.action.VIEW" /> | |
| 38 | + | |
| 39 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 40 | + | |
| 41 | + <data android:scheme="wxdb562d299ac311e0" /> | |
| 42 | + </intent-filter> | |
| 43 | + </activity> | |
| 44 | + <activity | |
| 45 | + android:name="com.gump.inland.gamesdk.PassportBaseActivity" | |
| 46 | + android:theme="@style/Theme.TransparentWin" > | |
| 47 | + </activity> | |
| 48 | + <activity | |
| 49 | + android:name="com.gump.inland.gamesdk.PaymentActivity" | |
| 50 | + android:theme="@android:style/Theme.Light.NoTitleBar" > | |
| 51 | + </activity> | |
| 52 | + <!-- wx callback --> | |
| 53 | + <activity | |
| 54 | + android:name="com.ninjaonline.wxapi.WXPayEntryActivity" | |
| 55 | + android:exported="true" > | |
| 56 | + </activity> | |
| 57 | + <!-- unionPay --> | |
| 58 | + <activity | |
| 59 | + android:name="com.unionpay.uppay.PayActivity" | |
| 60 | + android:configChanges="orientation|keyboardHidden" | |
| 61 | + android:excludeFromRecents="true" | |
| 62 | + android:label="@string/app_name" | |
| 63 | + android:screenOrientation="portrait" | |
| 64 | + android:windowSoftInputMode="adjustResize" /> | |
| 65 | + </application> | |
| 66 | + | |
| 67 | +</manifest> | |
| 0 | 68 | \ No newline at end of file |
InlandSDKDemo/assets/data.bin
No preview for this file type
InlandSDKDemo/libs/android-support-v4.jar
No preview for this file type
InlandSDKDemo/proguard-project.txt
| ... | ... | @@ -0,0 +1,20 @@ |
| 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. | |
| 5 | +# By default, the flags in this file are appended to flags specified | |
| 6 | +# in ${sdk.dir}/tools/proguard/proguard-android.txt | |
| 7 | +# You can edit the include path and order by changing the ProGuard | |
| 8 | +# include property in project.properties. | |
| 9 | +# | |
| 10 | +# For more details, see | |
| 11 | +# http://developer.android.com/guide/developing/tools/proguard.html | |
| 12 | + | |
| 13 | +# Add any project specific keep options here: | |
| 14 | + | |
| 15 | +# If your project uses WebView with JS, uncomment the following | |
| 16 | +# and specify the fully qualified class name to the JavaScript interface | |
| 17 | +# class: | |
| 18 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| 19 | +# public *; | |
| 20 | +#} |
InlandSDKDemo/project.properties
| ... | ... | @@ -0,0 +1,15 @@ |
| 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-22 | |
| 15 | +android.library.reference.1=../../../InlandSDK/InlandSDK |
InlandSDKDemo/res/drawable-hdpi/ic_launcher.png
9.18 KB
InlandSDKDemo/res/drawable-mdpi/ic_launcher.png
5.11 KB
InlandSDKDemo/res/drawable-xhdpi/ic_launcher.png
14 KB
InlandSDKDemo/res/layout/activity_main.xml
| ... | ... | @@ -0,0 +1,48 @@ |
| 1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 2 | + xmlns:tools="http://schemas.android.com/tools" | |
| 3 | + android:id="@+id/main_root" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="match_parent" | |
| 6 | + android:orientation="vertical" | |
| 7 | + android:padding="10dp" > | |
| 8 | + | |
| 9 | + <TextView | |
| 10 | + android:id="@+id/sdk_info" | |
| 11 | + android:layout_width="wrap_content" | |
| 12 | + android:layout_height="wrap_content" /> | |
| 13 | + | |
| 14 | + <Button | |
| 15 | + android:id="@+id/login" | |
| 16 | + android:layout_width="match_parent" | |
| 17 | + android:layout_height="wrap_content" | |
| 18 | + android:layout_marginTop="10dp" | |
| 19 | + android:background="@color/btn_bg_blue" | |
| 20 | + android:text="@string/btn_login" /> | |
| 21 | + | |
| 22 | + <View | |
| 23 | + android:layout_width="match_parent" | |
| 24 | + android:layout_height="1dp" | |
| 25 | + android:layout_marginBottom="10dp" | |
| 26 | + android:layout_marginTop="10dp" | |
| 27 | + android:background="@color/light_gray" /> | |
| 28 | + | |
| 29 | + <TextView | |
| 30 | + android:id="@+id/user_info" | |
| 31 | + android:layout_width="wrap_content" | |
| 32 | + android:layout_height="wrap_content" /> | |
| 33 | + | |
| 34 | + <Button | |
| 35 | + android:id="@+id/purchase" | |
| 36 | + android:layout_width="match_parent" | |
| 37 | + android:layout_height="wrap_content" | |
| 38 | + android:layout_marginTop="10dp" | |
| 39 | + android:background="@color/btn_bg_orange" | |
| 40 | + android:text="@string/purchase" | |
| 41 | + android:visibility="gone" /> | |
| 42 | + | |
| 43 | + <TextView | |
| 44 | + android:id="@+id/purchase_result" | |
| 45 | + android:layout_width="wrap_content" | |
| 46 | + android:layout_height="wrap_content" /> | |
| 47 | + | |
| 48 | +</LinearLayout> | |
| 0 | 49 | \ No newline at end of file |
InlandSDKDemo/res/layout/fragment_logic.xml
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:layout_height="match_parent" | |
| 5 | + android:orientation="vertical" > | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | +</LinearLayout> | |
| 0 | 12 | \ No newline at end of file |
InlandSDKDemo/res/layout/fragment_signin.xml
| ... | ... | @@ -0,0 +1,22 @@ |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + xmlns:tools="http://schemas.android.com/tools" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="match_parent" | |
| 6 | + android:orientation="vertical" | |
| 7 | + android:padding="10dp" > | |
| 8 | + | |
| 9 | + <TextView | |
| 10 | + android:id="@+id/sdk_info" | |
| 11 | + android:layout_width="wrap_content" | |
| 12 | + android:layout_height="wrap_content" /> | |
| 13 | + | |
| 14 | + <Button | |
| 15 | + android:id="@+id/login" | |
| 16 | + android:layout_width="match_parent" | |
| 17 | + android:layout_height="wrap_content" | |
| 18 | + android:layout_marginTop="10dp" | |
| 19 | + android:background="@color/btn_bg_blue" | |
| 20 | + android:text="@string/btn_login" /> | |
| 21 | + | |
| 22 | +</LinearLayout> | |
| 0 | 23 | \ No newline at end of file |
InlandSDKDemo/res/values/colors.xml
InlandSDKDemo/res/values/strings.xml
| ... | ... | @@ -0,0 +1,9 @@ |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<resources> | |
| 3 | + | |
| 4 | + <string name="app_name">InlandSDKDemo</string> | |
| 5 | + <string name="hello_world">Hello world!</string> | |
| 6 | + | |
| 7 | + <string name="btn_login">login with gump</string> | |
| 8 | + <string name="purchase">purchase test</string> | |
| 9 | +</resources> |
InlandSDKDemo/res/values/styles.xml
InlandSDKDemo/src/com/gump/inland/sdk/demo/MainActivity.java
| ... | ... | @@ -0,0 +1,131 @@ |
| 1 | +package com.gump.inland.sdk.demo; | |
| 2 | + | |
| 3 | +import android.app.Activity; | |
| 4 | +import android.content.Intent; | |
| 5 | +import android.os.Bundle; | |
| 6 | +import android.util.Log; | |
| 7 | +import android.view.View; | |
| 8 | +import android.widget.Button; | |
| 9 | +import android.widget.TextView; | |
| 10 | + | |
| 11 | +import com.gump.inland.gamesdk.InlandSDK; | |
| 12 | +import com.gump.inland.gamesdk.InlandSDKCallback; | |
| 13 | +import com.gump.inland.gamesdk.InlandSDKException; | |
| 14 | +import com.gump.inland.gamesdk.bean.GumpUser; | |
| 15 | +import com.gump.inland.gamesdk.bean.PayRequest; | |
| 16 | +import com.gump.inland.gamesdk.callback.PurchaseCallback; | |
| 17 | +import com.gump.inland.gamesdk.passport.Passport; | |
| 18 | +import com.gump.inland.gamesdk.utils.Logger; | |
| 19 | +import com.ninjaonline.R; | |
| 20 | + | |
| 21 | +public class MainActivity extends Activity { | |
| 22 | + | |
| 23 | + private static final String TAG = "MainActivity"; | |
| 24 | + private TextView tvSDKInfo; | |
| 25 | + private TextView tvUserInfo; | |
| 26 | + private TextView tvPurchaseResult; | |
| 27 | + private Button btnLogin; | |
| 28 | + private Button btnPay; | |
| 29 | + | |
| 30 | + @Override | |
| 31 | + protected void onCreate(Bundle savedInstanceState) { | |
| 32 | + super.onCreate(savedInstanceState); | |
| 33 | + setContentView(R.layout.activity_main); | |
| 34 | + tvSDKInfo = (TextView) findViewById(R.id.sdk_info); | |
| 35 | + tvUserInfo = (TextView) findViewById(R.id.user_info); | |
| 36 | + tvPurchaseResult = (TextView) findViewById(R.id.purchase_result); | |
| 37 | + btnLogin = (Button) findViewById(R.id.login); | |
| 38 | + btnPay = (Button) findViewById(R.id.purchase); | |
| 39 | + | |
| 40 | + Log.d(TAG, "MainActivity onCreate"); | |
| 41 | + InlandSDK.setIsDebugEnable(true); | |
| 42 | + InlandSDK.setScreenLandscape(false); | |
| 43 | + InlandSDK.initializeSDK("10000", "dkfjgljdlgjldjgl"); | |
| 44 | + Passport.getInstance().registerCallback(new InlandSDKCallback<GumpUser>() { | |
| 45 | + | |
| 46 | + @Override | |
| 47 | + public void onSuccess(GumpUser result) { | |
| 48 | + Logger.d(TAG, "gumpUser:" + result.toString()); | |
| 49 | + btnLogin.setVisibility(View.GONE); | |
| 50 | + tvUserInfo.setText(formatUserInfo(result)); | |
| 51 | + btnPay.setVisibility(View.VISIBLE); | |
| 52 | + } | |
| 53 | + | |
| 54 | + @Override | |
| 55 | + public void onError(InlandSDKException error) { | |
| 56 | + Logger.d(TAG, "login error:" + error.getMessage()); | |
| 57 | + } | |
| 58 | + | |
| 59 | + @Override | |
| 60 | + public void onCancel() { | |
| 61 | + Logger.d(TAG, "login be canceled"); | |
| 62 | + } | |
| 63 | + }); | |
| 64 | + | |
| 65 | + tvSDKInfo.setText(getSDKInfo()); | |
| 66 | + btnLogin.setOnClickListener(new View.OnClickListener() { | |
| 67 | + | |
| 68 | + @Override | |
| 69 | + public void onClick(View v) { | |
| 70 | + Passport.getInstance().login(MainActivity.this); | |
| 71 | + } | |
| 72 | + }); | |
| 73 | + btnPay.setOnClickListener(new View.OnClickListener() { | |
| 74 | + | |
| 75 | + @Override | |
| 76 | + public void onClick(View v) { | |
| 77 | + PayRequest payRequest = new PayRequest(); | |
| 78 | + payRequest.setPrice(1); | |
| 79 | + payRequest.setProduct("玄冥剑"); | |
| 80 | + payRequest.setExtOrder("p100201508311730"); | |
| 81 | + payRequest.setGumpUid(Passport.getInstance().getGumpUser().getUid()); | |
| 82 | + InlandSDK.purchase(MainActivity.this, payRequest, new PurchaseCallback() { | |
| 83 | + | |
| 84 | + @Override | |
| 85 | + public void onPurchaseError(Exception e) { | |
| 86 | + Logger.w(TAG, "purchase error:" + e.getMessage()); | |
| 87 | + tvPurchaseResult.setText("purchase occured an error:" + e.getMessage()); | |
| 88 | + } | |
| 89 | + | |
| 90 | + @Override | |
| 91 | + public void onPurchaseSuccess(String gumpTransId, String extOrder) { | |
| 92 | + Logger.d(TAG, "purchase success:" + gumpTransId + ",extorder:" + extOrder); | |
| 93 | + tvPurchaseResult.setText("purchase " + gumpTransId + " success,extorder:" + extOrder); | |
| 94 | + } | |
| 95 | + | |
| 96 | + @Override | |
| 97 | + public void onPurchaseCanceled() { | |
| 98 | + Logger.d(TAG, "purchase be canceled"); | |
| 99 | + tvPurchaseResult.setText("purchase be canceled"); | |
| 100 | + } | |
| 101 | + }); | |
| 102 | + } | |
| 103 | + }); | |
| 104 | + } | |
| 105 | + | |
| 106 | + @Override | |
| 107 | + protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
| 108 | + if (!InlandSDK.onActivityResult(requestCode, resultCode, data)) | |
| 109 | + super.onActivityResult(requestCode, resultCode, data); | |
| 110 | + } | |
| 111 | + | |
| 112 | + private String getSDKInfo() { | |
| 113 | + StringBuilder str = new StringBuilder(); | |
| 114 | + str.append("SDK version:"); | |
| 115 | + str.append(InlandSDK.getVersion()); | |
| 116 | + str.append("\nappId:"); | |
| 117 | + str.append(InlandSDK.getAppId()); | |
| 118 | + str.append("\nappKey:"); | |
| 119 | + str.append(InlandSDK.getAppKey()); | |
| 120 | + return str.toString(); | |
| 121 | + } | |
| 122 | + | |
| 123 | + private String formatUserInfo(GumpUser user) { | |
| 124 | + StringBuilder str = new StringBuilder(); | |
| 125 | + str.append("Logined User information:\n"); | |
| 126 | + str.append("userId:" + user.getUid()); | |
| 127 | + str.append("\nacccountType:" + user.getAccountType()); | |
| 128 | + str.append("\nsessionKey:" + user.getSessionKey()); | |
| 129 | + return str.toString(); | |
| 130 | + } | |
| 131 | +} |
InlandSDKDemo/src/com/ninjaonline/wxapi/WXPayEntryActivity.java
InlandSDKRelease/.classpath
| ... | ... | @@ -0,0 +1,9 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<classpath> | |
| 3 | + <classpathentry kind="src" path="src"/> | |
| 4 | + <classpathentry kind="src" path="gen"/> | |
| 5 | + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | |
| 6 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | |
| 7 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | |
| 8 | + <classpathentry kind="output" path="bin/classes"/> | |
| 9 | +</classpath> |
InlandSDKRelease/.project
| ... | ... | @@ -0,0 +1,33 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<projectDescription> | |
| 3 | + <name>InlandSDKRelease</name> | |
| 4 | + <comment></comment> | |
| 5 | + <projects> | |
| 6 | + </projects> | |
| 7 | + <buildSpec> | |
| 8 | + <buildCommand> | |
| 9 | + <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | |
| 10 | + <arguments> | |
| 11 | + </arguments> | |
| 12 | + </buildCommand> | |
| 13 | + <buildCommand> | |
| 14 | + <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | |
| 15 | + <arguments> | |
| 16 | + </arguments> | |
| 17 | + </buildCommand> | |
| 18 | + <buildCommand> | |
| 19 | + <name>org.eclipse.jdt.core.javabuilder</name> | |
| 20 | + <arguments> | |
| 21 | + </arguments> | |
| 22 | + </buildCommand> | |
| 23 | + <buildCommand> | |
| 24 | + <name>com.android.ide.eclipse.adt.ApkBuilder</name> | |
| 25 | + <arguments> | |
| 26 | + </arguments> | |
| 27 | + </buildCommand> | |
| 28 | + </buildSpec> | |
| 29 | + <natures> | |
| 30 | + <nature>com.android.ide.eclipse.adt.AndroidNature</nature> | |
| 31 | + <nature>org.eclipse.jdt.core.javanature</nature> | |
| 32 | + </natures> | |
| 33 | +</projectDescription> |
InlandSDKRelease/AndroidManifest.xml
| ... | ... | @@ -0,0 +1,17 @@ |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| 2 | + package="com.gump.inland.gamesdk.release" | |
| 3 | + android:versionCode="1" | |
| 4 | + android:versionName="1.0" > | |
| 5 | + | |
| 6 | + <uses-sdk | |
| 7 | + android:minSdkVersion="8" | |
| 8 | + android:targetSdkVersion="21" /> | |
| 9 | + | |
| 10 | + <application | |
| 11 | + android:allowBackup="true" | |
| 12 | + android:icon="@drawable/ic_launcher" | |
| 13 | + android:label="@string/app_name" | |
| 14 | + android:theme="@style/AppTheme" > | |
| 15 | + </application> | |
| 16 | + | |
| 17 | +</manifest> |
InlandSDKRelease/proguard-project.txt
| ... | ... | @@ -0,0 +1,20 @@ |
| 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. | |
| 5 | +# By default, the flags in this file are appended to flags specified | |
| 6 | +# in ${sdk.dir}/tools/proguard/proguard-android.txt | |
| 7 | +# You can edit the include path and order by changing the ProGuard | |
| 8 | +# include property in project.properties. | |
| 9 | +# | |
| 10 | +# For more details, see | |
| 11 | +# http://developer.android.com/guide/developing/tools/proguard.html | |
| 12 | + | |
| 13 | +# Add any project specific keep options here: | |
| 14 | + | |
| 15 | +# If your project uses WebView with JS, uncomment the following | |
| 16 | +# and specify the fully qualified class name to the JavaScript interface | |
| 17 | +# class: | |
| 18 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| 19 | +# public *; | |
| 20 | +#} |
InlandSDKRelease/project.properties
| ... | ... | @@ -0,0 +1,15 @@ |
| 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-22 | |
| 15 | +android.library=true |
InlandSDKRelease/res/drawable-hdpi/ic_launcher.png
9.18 KB
InlandSDKRelease/res/drawable-mdpi/ic_launcher.png
5.11 KB
InlandSDKRelease/res/drawable-xhdpi/ic_launcher.png
14 KB
InlandSDKRelease/res/values-v11/styles.xml
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +<resources> | |
| 2 | + | |
| 3 | + <!-- | |
| 4 | + Base application theme for API 11+. This theme completely replaces | |
| 5 | + AppBaseTheme from res/values/styles.xml on API 11+ devices. | |
| 6 | + --> | |
| 7 | + <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> | |
| 8 | + <!-- API 11 theme customizations can go here. --> | |
| 9 | + </style> | |
| 10 | + | |
| 11 | +</resources> |
InlandSDKRelease/res/values-v14/styles.xml
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<resources> | |
| 2 | + | |
| 3 | + <!-- | |
| 4 | + Base application theme for API 14+. This theme completely replaces | |
| 5 | + AppBaseTheme from BOTH res/values/styles.xml and | |
| 6 | + res/values-v11/styles.xml on API 14+ devices. | |
| 7 | + --> | |
| 8 | + <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> | |
| 9 | + <!-- API 14 theme customizations can go here. --> | |
| 10 | + </style> | |
| 11 | + | |
| 12 | +</resources> |
InlandSDKRelease/res/values/strings.xml
InlandSDKRelease/res/values/styles.xml
| ... | ... | @@ -0,0 +1,20 @@ |
| 1 | +<resources> | |
| 2 | + | |
| 3 | + <!-- | |
| 4 | + Base application theme, dependent on API level. This theme is replaced | |
| 5 | + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. | |
| 6 | + --> | |
| 7 | + <style name="AppBaseTheme" parent="android:Theme.Light"> | |
| 8 | + <!-- | |
| 9 | + Theme customizations available in newer API levels can go in | |
| 10 | + res/values-vXX/styles.xml, while customizations related to | |
| 11 | + backward-compatibility can go here. | |
| 12 | + --> | |
| 13 | + </style> | |
| 14 | + | |
| 15 | + <!-- Application theme. --> | |
| 16 | + <style name="AppTheme" parent="AppBaseTheme"> | |
| 17 | + <!-- All customizations that are NOT specific to a particular API-level can go here. --> | |
| 18 | + </style> | |
| 19 | + | |
| 20 | +</resources> |