Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
faae545e
Commit
faae545e
authored
Aug 10, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理
parent
a90d72a4
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
142 deletions
+12
-142
mobile/build.gradle
mobile/build.gradle
+4
-4
mobile/src/core/AndroidManifest.xml
mobile/src/core/AndroidManifest.xml
+0
-14
mobile/src/core/java/cn/garymb/ygomobile/ui/online/MyCardActivity.java
...re/java/cn/garymb/ygomobile/ui/online/MyCardActivity.java
+0
-15
mobile/src/core/java/cn/garymb/ygomobile/ui/plus/X5WebView.java
.../src/core/java/cn/garymb/ygomobile/ui/plus/X5WebView.java
+0
-99
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+3
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/BaseActivity.java
.../java/cn/garymb/ygomobile/ui/activities/BaseActivity.java
+1
-3
mobile/src/main/res/layout/activity_online_mycard.xml
mobile/src/main/res/layout/activity_online_mycard.xml
+2
-2
mobile/src/main/res/layout/item_chat.xml
mobile/src/main/res/layout/item_chat.xml
+1
-1
mobile/src/main/res/layout/item_chat_me.xml
mobile/src/main/res/layout/item_chat_me.xml
+1
-1
No files found.
mobile/build.gradle
View file @
faae545e
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
applicationId
"cn.garymb.ygomobile"
applicationId
"cn.garymb.ygomobile"
minSdkVersion
16
minSdkVersion
16
targetSdkVersion
22
targetSdkVersion
22
versionCode
33030
723
versionCode
33030
810
versionName
"3.3.
3
"
versionName
"3.3.
4
"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
ndk
{
...
@@ -23,12 +23,12 @@ android {
...
@@ -23,12 +23,12 @@ android {
productFlavors
{
productFlavors
{
en
{
en
{
applicationId
"cn.garymb.ygomobile.EN"
applicationId
"cn.garymb.ygomobile.EN"
versionName
"EN3.3.
3
"
versionName
"EN3.3.
4
"
//assets.srcDirs = ['assets_en']
//assets.srcDirs = ['assets_en']
}
}
ko
{
ko
{
applicationId
"cn.garymb.ygomobile.KO"
applicationId
"cn.garymb.ygomobile.KO"
versionName
"KO3.3.
3
"
versionName
"KO3.3.
4
"
//assets.srcDirs = ['assets_ko']
//assets.srcDirs = ['assets_ko']
}
}
cn
{
cn
{
...
...
mobile/src/core/AndroidManifest.xml
deleted
100644 → 0
View file @
a90d72a4
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"cn.garymb.ygomobile.lite"
>
<application>
<activity
android:name=
"cn.garymb.ygomobile.ui.online.MyCardActivity"
android:configChanges=
"orientation|keyboardHidden|navigation|screenSize"
android:launchMode=
"singleTop"
android:theme=
"@style/AppTheme.Translucent"
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
/>
</application>
</manifest>
\ No newline at end of file
mobile/src/core/java/cn/garymb/ygomobile/ui/online/MyCardActivity.java
deleted
100644 → 0
View file @
a90d72a4
package
cn.garymb.ygomobile.ui.online
;
import
android.os.Bundle
;
import
android.support.annotation.Nullable
;
import
cn.garymb.ygomobile.ui.activities.BaseActivity
;
public
class
MyCardActivity
extends
BaseActivity
{
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
finish
();
}
}
mobile/src/core/java/cn/garymb/ygomobile/ui/plus/X5WebView.java
deleted
100644 → 0
View file @
a90d72a4
package
cn.garymb.ygomobile.ui.plus
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
com.tencent.smtt.sdk.WebSettings
;
import
com.tencent.smtt.sdk.WebView
;
import
com.tencent.smtt.sdk.WebViewClient
;
public
class
X5WebView
extends
WebView
{
private
WebViewClient
client
=
new
WebViewClient
()
{
/**
* 防止加载网页时调起系统浏览器
*/
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
String
url
)
{
view
.
loadUrl
(
url
);
return
true
;
}
};
@SuppressLint
(
"SetJavaScriptEnabled"
)
public
X5WebView
(
Context
arg0
,
AttributeSet
arg1
)
{
super
(
arg0
,
arg1
);
this
.
setWebViewClient
(
client
);
// this.setWebChromeClient(chromeClient);
// WebStorage webStorage = WebStorage.getInstance();
initWebViewSettings
();
this
.
getView
().
setClickable
(
true
);
}
private
void
initWebViewSettings
()
{
WebSettings
webSetting
=
this
.
getSettings
();
webSetting
.
setJavaScriptEnabled
(
true
);
webSetting
.
setJavaScriptCanOpenWindowsAutomatically
(
true
);
webSetting
.
setAllowFileAccess
(
true
);
//webSetting.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS);
webSetting
.
setSupportZoom
(
true
);
webSetting
.
setBuiltInZoomControls
(
true
);
webSetting
.
setUseWideViewPort
(
true
);
//禁止多窗口
webSetting
.
setSupportMultipleWindows
(
false
);
// webSetting.setLoadWithOverviewMode(true);
webSetting
.
setAppCacheEnabled
(
true
);
// webSetting.setDatabaseEnabled(true);
webSetting
.
setDomStorageEnabled
(
true
);
webSetting
.
setGeolocationEnabled
(
true
);
webSetting
.
setAppCacheMaxSize
(
Long
.
MAX_VALUE
);
// webSetting.setPageCacheCapacity(IX5WebSettings.DEFAULT_CACHE_CAPACITY);
webSetting
.
setPluginState
(
WebSettings
.
PluginState
.
ON_DEMAND
);
// webSetting.setRenderPriority(WebSettings.RenderPriority.HIGH);
webSetting
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
// this.getSettingsExtension().setPageCacheCapacity(IX5WebSettings.DEFAULT_CACHE_CAPACITY);//extension
// settings 的设计
webSetting
.
setSaveFormData
(
true
);
webSetting
.
setDatabaseEnabled
(
true
);
webSetting
.
setJavaScriptCanOpenWindowsAutomatically
(
true
);
setScrollBarStyle
(
WebView
.
SCROLLBARS_OUTSIDE_OVERLAY
);
setHorizontalScrollBarEnabled
(
false
);
webSetting
.
setAllowContentAccess
(
true
);
webSetting
.
setMixedContentMode
(
WebSettings
.
LOAD_NORMAL
);
}
@Override
protected
boolean
drawChild
(
Canvas
canvas
,
View
child
,
long
drawingTime
)
{
/*boolean ret = super.drawChild(canvas, child, drawingTime);
canvas.save();
Paint paint = new Paint();
paint.setColor(0x7fff0000);
paint.setTextSize(24.f);
paint.setAntiAlias(true);
if (getX5WebViewExtension() != null) {
canvas.drawText(this.getContext().getPackageName() + "-pid:"
+ android.os.Process.myPid(), 10, 50, paint);
canvas.drawText(
"X5 Core:" + QbSdk.getTbsVersion(this.getContext()), 10,
100, paint);
} else {
canvas.drawText(this.getContext().getPackageName() + "-pid:"
+ android.os.Process.myPid(), 10, 50, paint);
canvas.drawText("Sys Core", 10, 100, paint);
}
canvas.drawText(Build.MANUFACTURER, 10, 150, paint);
canvas.drawText(Build.MODEL, 10, 200, paint);
canvas.restore();
return ret;*/
return
super
.
drawChild
(
canvas
,
child
,
drawingTime
);
}
public
X5WebView
(
Context
arg0
)
{
super
(
arg0
);
setBackgroundColor
(
85621
);
}
}
mobile/src/main/AndroidManifest.xml
View file @
faae545e
...
@@ -154,17 +154,17 @@
...
@@ -154,17 +154,17 @@
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:theme=
"@style/AppTheme"
/>
android:theme=
"@style/AppTheme"
/>
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.
online
.MyCardActivity"
android:name=
"cn.garymb.ygomobile.ui.
mycard
.MyCardActivity"
android:configChanges=
"orientation|keyboardHidden|navigation|screenSize"
android:configChanges=
"orientation|keyboardHidden|navigation|screenSize"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:theme=
"@style/AppTheme.Mycard"
android:theme=
"@style/AppTheme.Mycard"
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
/>
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
/>
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.
online
.mcchat.McchatActivity"
android:name=
"cn.garymb.ygomobile.ui.
mycard
.mcchat.McchatActivity"
android:windowSoftInputMode=
"stateHidden|adjustResize"
android:windowSoftInputMode=
"stateHidden|adjustResize"
android:label=
"@string/app_name"
/>
android:label=
"@string/app_name"
/>
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.
online
.mcchat.SplashActivity"
/>
android:name=
"cn.garymb.ygomobile.ui.
mycard
.mcchat.SplashActivity"
/>
<service
<service
android:name=
"cn.garymb.ygomobile.ui.plus.ServiceDuelAssistant"
/>
android:name=
"cn.garymb.ygomobile.ui.plus.ServiceDuelAssistant"
/>
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/BaseActivity.java
View file @
faae545e
...
@@ -16,12 +16,10 @@ import android.support.v7.widget.Toolbar;
...
@@ -16,12 +16,10 @@ import android.support.v7.widget.Toolbar;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.View
;
import
android.view.Window
;
import
android.view.WindowManager
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.activities.PermissionsActivity
;
public
class
BaseActivity
extends
AppCompatActivity
{
public
class
BaseActivity
extends
AppCompatActivity
{
private
final
static
int
REQUEST_PERMISSIONS
=
0x1000
+
1
;
private
final
static
int
REQUEST_PERMISSIONS
=
0x1000
+
1
;
...
...
mobile/src/main/res/layout/activity_online_mycard.xml
View file @
faae545e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<cn.garymb.ygomobile.ui.
online
.MyCardWebView
<cn.garymb.ygomobile.ui.
mycard
.MyCardWebView
android:id=
"@+id/webbrowser"
android:id=
"@+id/webbrowser"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
android:layout_height=
"5px"
android:layout_height=
"5px"
/>
/>
</cn.garymb.ygomobile.ui.
online
.MyCardWebView>
</cn.garymb.ygomobile.ui.
mycard
.MyCardWebView>
</RelativeLayout>
</RelativeLayout>
...
...
mobile/src/main/res/layout/item_chat.xml
View file @
faae545e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"#00000000"
>
android:background=
"#00000000"
>
<cn.garymb.ygomobile.ui.
online
.mcchat.view.YuanImage
<cn.garymb.ygomobile.ui.
mycard
.mcchat.view.YuanImage
android:layout_height=
"35dp"
android:layout_height=
"35dp"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:id=
"@+id/ic_avatar"
android:id=
"@+id/ic_avatar"
...
...
mobile/src/main/res/layout/item_chat_me.xml
View file @
faae545e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"#00000000"
>
android:background=
"#00000000"
>
<cn.garymb.ygomobile.ui.
online
.mcchat.view.YuanImage
<cn.garymb.ygomobile.ui.
mycard
.mcchat.view.YuanImage
android:id=
"@+id/icm_avatar"
android:id=
"@+id/icm_avatar"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_height=
"35dp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment