Commit a4ff7262 authored by gaorui's avatar gaorui
Browse files

feat(app):新增海外迁移SDK参考项目

parent 8ab9403c
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="shareText"
android:text="shareText"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="shareVideo"
android:text="shareVideo" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="sharePhoto"
android:text="sharePhoto" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="fbShareText"
android:text="fbShareText" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="fbPhotoShare"
android:text="fbPhotoShare" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:onClick="fbShareVideo"
android:text="fbShareVideo" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF505050"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/layoutGameContainer"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="8"
android:orientation="vertical">
<TextView
android:id="@+id/showMessage"
android:layout_marginTop="50dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnCopy"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="复制" />
<Button
android:id="@+id/btnCallbackLength"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="回调长度" />
<Button
android:id="@+id/btnCallbackText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="回调内容" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnGetMetaData"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="MetaData" />
<Button
android:id="@+id/btnGetBalance"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="余额" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnEnterPay"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="商品信息" />
<Button
android:id="@+id/btnLogout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="注销" />
<Button
android:id="@+id/btnExitSDK"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="退出" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnAccountManage"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="账号管理" />
<Button
android:id="@+id/btnOpenService"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="打开客服(新增)" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btnGetSpecialFuncCodes"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="功能编码" />
<Button
android:id="@+id/btnInvokeSpecialFunc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="特殊功能" />
<Button
android:id="@+id/btnFbShare"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="fb分享" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/crash"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="崩溃" />
<Button
android:id="@+id/anr"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="ANR" />
<Button
android:id="@+id/error"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="报错" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="27dp"
android:orientation="horizontal">
<Button
android:id="@+id/gameLoginBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/demo_button" />
<Button
android:id="@+id/gameLanguageBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="设置语言" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="10dp"
android:text="Facebook分享"
android:textColor="@android:color/holo_red_dark"
android:textSize="20sp" />
<TextView
android:id="@+id/share_account_msg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="相关信息"
android:textColor="@android:color/holo_orange_light" />
<EditText
android:id="@+id/et_text_fb"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入分享内容"/>
<Button
android:id="@+id/id_facebook_share"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="facebookShareLink"
android:text="facebook分享连接" />
<Button
android:id="@+id/id_facebook_share_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="facebookShareImage"
android:text="facebook分享图片" />
<Button
android:id="@+id/id_facebook_share_video"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="facebookShareVideo"
android:text="facebook分享视频" />
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<resources>
<string name="app_name">海外demo</string>
<string name="facebook_app_id">987654321</string>
<string name="fb_login_protocol_scheme">fb987654321</string>
<string name="facebook_client_token">987654321ABCDEFG</string>
<string name="game_services_project_id">242883477374</string>
<string name="demo_button">Login</string>
</resources>
\ No newline at end of file
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx5120m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true
#android.useDeprecatedNdk=true
#android.enableD8=false
#android.useDexArchive=false
android.useAndroidX=true
android.enableJetifier=true
#android.enableR8=false
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment