Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
454d7512
Commit
454d7512
authored
Sep 12, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改AAR包
parent
dc9b8f34
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
21 deletions
+21
-21
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+3
-3
CoursePlugin.kt
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
+4
-4
YDLCommonPlugin.kt
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
+9
-11
AppUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/AppUtils.kt
+5
-3
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
454d7512
...
...
@@ -8,6 +8,7 @@ import com.ydl.ydlcommon.base.config.IConfigModule;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.base.delegate.IAppLifecycles
;
import
com.ydl.ydlcommon.base.config.GlobalConfig
;
import
com.ydl.ydlcommon.utils.YDLCacheUtils
;
import
org.jetbrains.annotations.NotNull
;
...
...
@@ -20,10 +21,9 @@ import java.util.List;
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
//
public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
//
public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_NEW_TEST
;
//配置未上传到maven库
// public static String appEnv = YDLConstants.ENV_PROD;
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
lifecycles
.
add
(
new
DemoAppLifecycles
());
...
...
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
View file @
454d7512
...
...
@@ -74,17 +74,17 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
GETPUBLICPARAMAS
->
{
val
appEnv
=
BaseApp
.
instance
.
getGlobalConfig
().
appEnv
var
isDevelopment
=
0
var
isDevelopment
=
"0"
if
(
YDLConstants
.
ENV_TEST
==
appEnv
)
{
isDevelopment
=
1
isDevelopment
=
"1"
}
else
if
(
YDLConstants
.
ENV_NEW_TEST
==
appEnv
)
{
isDevelopment
=
2
isDevelopment
=
"2"
}
val
loginBean
=
ModularServiceManager
.
getPlatformUserService
()
?.
getUser
()
val
mMap
=
mutableMapOf
<
String
,
Any
>()
var
uid
=
loginBean
?.
userId
?:
""
mMap
[
"isDevelopment"
]
=
isDevelopment
mMap
[
"isDevelopment"
]
=
isDevelopment
mMap
[
"uid"
]
=
if
(
TextUtils
.
isEmpty
(
uid
))
"0"
else
uid
mMap
[
"accessToken"
]
=
loginBean
?.
token
?:
""
?:
""
...
...
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
View file @
454d7512
...
...
@@ -12,10 +12,7 @@ import com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.data.http.GsonProvider
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.router.YdlCommonOut
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YdlBuryPointUtil
import
com.ydl.ydlcommon.utils.*
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.RxDeviceTool
import
de.greenrobot.event.EventBus
...
...
@@ -82,21 +79,22 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
val
appEnv
=
BaseApp
.
instance
.
getGlobalConfig
().
appEnv
val
cacheAppEnv
=
YDLCacheUtils
.
getCacheApi
()
var
isDevelopment
=
0
var
isDevelopment
=
"0"
if
(!
TextUtils
.
isEmpty
(
cacheAppEnv
))
{
if
(
YDLConstants
.
ENV_TEST
==
cacheAppEnv
||
YDLConstants
.
ENV_AUTO_TEST
==
cacheAppEnv
)
{
isDevelopment
=
1
isDevelopment
=
"1"
}
else
if
(
YDLConstants
.
ENV_NEW_TEST
==
cacheAppEnv
)
{
isDevelopment
=
2
isDevelopment
=
"2"
}
}
else
{
if
(
YDLConstants
.
ENV_TEST
==
cacheAppEnv
||
YDLConstants
.
ENV_AUTO
_TEST
==
appEnv
)
{
isDevelopment
=
1
}
else
if
(
YDLConstants
.
ENV_NEW_TEST
==
cacheA
ppEnv
)
{
isDevelopment
=
2
if
(
YDLConstants
.
ENV
_TEST
==
appEnv
)
{
isDevelopment
=
"1"
}
else
if
(
YDLConstants
.
ENV_NEW_TEST
==
a
ppEnv
)
{
isDevelopment
=
"2"
}
}
com
.
yidianling
.
common
.
tools
.
LogUtil
.
e
(
"aaaaacommon"
+
isDevelopment
+
"环境"
+
appEnv
)
mMap
[
"isDevelopment"
]
=
isDevelopment
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/AppUtils.kt
View file @
454d7512
...
...
@@ -7,6 +7,7 @@ import com.ydl.ydlcommon.base.config.YDLConstants.ENV_NEW_TEST
import
com.ydl.ydlcommon.base.config.YDLConstants.ENV_TEST
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.RxAppTool
import
com.yidianling.common.tools.RxDeviceTool
...
...
@@ -43,13 +44,14 @@ object AppUtils {
fun
getHttpCommonParams
():
Map
<
String
,
Any
>
{
val
mMap
=
mutableMapOf
<
String
,
Any
>()
val
appEnv
=
BaseApp
.
instance
.
getGlobalConfig
().
appEnv
var
isDevelopment
=
0
var
isDevelopment
=
"0"
if
(
ENV_TEST
==
appEnv
)
{
isDevelopment
=
1
isDevelopment
=
"1"
}
else
if
(
ENV_NEW_TEST
==
appEnv
)
{
isDevelopment
=
2
isDevelopment
=
"2"
}
LogUtil
.
e
(
"aaaaaapputils"
+
isDevelopment
+
"环境"
+
appEnv
)
val
osBuild
=
"${RxDeviceTool.getBuildBrandModel()},${RxDeviceTool.getSDKVersionName()},${
RxAppTool
.
getAppVersionName
(
...
...
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