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
2ca10186
Commit
2ca10186
authored
Nov 25, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加flutter代理设置功能
parent
7b03f104
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
build.gradle
app/build.gradle
+1
-0
config.gradle
config.gradle
+10
-10
modular.gradle
m-audioim/modular.gradle
+0
-1
build.gradle
m-confide/build.gradle
+1
-3
YDLCommonPlugin.kt
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
+4
-0
No files found.
app/build.gradle
View file @
2ca10186
...
@@ -207,6 +207,7 @@ dependencies {
...
@@ -207,6 +207,7 @@ dependencies {
api
project
(
':m-course'
)
api
project
(
':m-course'
)
implementation
modularPublication
(
'com.ydl:m-fm-api'
)
implementation
modularPublication
(
'com.ydl:m-fm-api'
)
}
else
{
}
else
{
//发布模式
//发布模式
api
'com.ydl:m-user-module-ydl:0.0.6'
api
'com.ydl:m-user-module-ydl:0.0.6'
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-webview"
]
...
...
config.gradle
View file @
2ca10186
...
@@ -42,14 +42,14 @@ ext {
...
@@ -42,14 +42,14 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.2
6
"
,
"m-confide"
:
"0.0.2
7.1
"
,
"m-consultant"
:
"0.0.39"
,
"m-consultant"
:
"0.0.39"
,
"m-fm"
:
"0.0.20"
,
"m-fm"
:
"0.0.20"
,
"m-user"
:
"0.0.33"
,
"m-user"
:
"0.0.33"
,
// 接入flutter的模块
// 接入flutter的模块
"m-tests"
:
"0.0.11.
1
"
,
"m-tests"
:
"0.0.11.
5
"
,
"m-muse"
:
"0.0.14.
1
"
,
"m-muse"
:
"0.0.14.
5
"
,
"m-course"
:
"0.0.2
5.1
"
,
"m-course"
:
"0.0.2
8.5
"
,
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.2"
,
"m-audioim-api"
:
"0.0.2"
,
...
@@ -69,19 +69,19 @@ ext {
...
@@ -69,19 +69,19 @@ ext {
"ydl-webview"
:
"0.0.27"
,
"ydl-webview"
:
"0.0.27"
,
"ydl-media"
:
"0.0.13"
,
"ydl-media"
:
"0.0.13"
,
"ydl-pay"
:
"0.0.10"
,
"ydl-pay"
:
"0.0.10"
,
"m-audioim"
:
"0.0.26"
,
"m-audioim"
:
"0.0.26
.7
"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.2"
,
"ydl-net"
:
"0.0.2"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-flutter-base"
:
"0.0.5.
3
"
,
"ydl-flutter-base"
:
"0.0.5.
8
"
,
]
]
ydlCompileVersion
=
[
ydlCompileVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.2
3
"
,
"m-confide"
:
"0.0.2
7.1
"
,
"m-consultant"
:
"0.0.26"
,
"m-consultant"
:
"0.0.26"
,
"m-course"
:
"0.0.22"
,
"m-course"
:
"0.0.22"
,
"m-fm"
:
"0.0.15"
,
"m-fm"
:
"0.0.15"
,
...
@@ -110,14 +110,14 @@ ext {
...
@@ -110,14 +110,14 @@ ext {
"ydl-webview"
:
"0.0.27"
,
"ydl-webview"
:
"0.0.27"
,
"ydl-media"
:
"0.0.13"
,
"ydl-media"
:
"0.0.13"
,
"ydl-pay"
:
"0.0.10"
,
"ydl-pay"
:
"0.0.10"
,
"m-audioim"
:
"0.0.26"
,
"m-audioim"
:
"0.0.26
.7
"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.2"
,
"ydl-net"
:
"0.0.2"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-flutter-base"
:
"0.0.5.
3
"
,
"ydl-flutter-base"
:
"0.0.5.
8
"
,
]
]
dependencies
=
[
dependencies
=
[
...
@@ -255,7 +255,7 @@ ext {
...
@@ -255,7 +255,7 @@ ext {
//flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块
//flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块
"ydl-flutter-base"
:
"com.ydl:ydl-flutter-base:${ydlCompileVersion["
ydl
-
flutter
-
base
"]}"
,
//组件化项目中的flutter base模块
"ydl-flutter-base"
:
"com.ydl:ydl-flutter-base:${ydlCompileVersion["
ydl
-
flutter
-
base
"]}"
,
//组件化项目中的flutter base模块
"ydl-flutter"
:
"com.ydl:ydl-flutter:0.0.15.
1
@aar"
,
//flutter aar
"ydl-flutter"
:
"com.ydl:ydl-flutter:0.0.15.
3
@aar"
,
//flutter aar
"ydl-flutter-sp"
:
"com.ydl:ydl-flutter-sp:0.0.2@aar"
,
//flutter 缓存 aar
"ydl-flutter-sp"
:
"com.ydl:ydl-flutter-sp:0.0.2@aar"
,
//flutter 缓存 aar
//基础组件 <<--- 先发这个,发完改这里的版本号
//基础组件 <<--- 先发这个,发完改这里的版本号
...
...
m-audioim/modular.gradle
View file @
2ca10186
...
@@ -6,7 +6,6 @@ modular {
...
@@ -6,7 +6,6 @@ modular {
//发布信息 module/api 通用
//发布信息 module/api 通用
groupId
=
"com.ydl"
groupId
=
"com.ydl"
artifactId
=
"m-audioim-api"
artifactId
=
"m-audioim-api"
// version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
version
=
"0.0.5"
version
=
"0.0.5"
// API 层打包时需要引入的依赖
// API 层打包时需要引入的依赖
apiDependencies
{
apiDependencies
{
...
...
m-confide/build.gradle
View file @
2ca10186
...
@@ -88,9 +88,7 @@ dependencies {
...
@@ -88,9 +88,7 @@ dependencies {
}
else
{
}
else
{
//发布时使用
//发布时使用
api
rootProject
.
ext
.
dependencies
[
"ydl-media"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-media"
]
api
(
rootProject
.
ext
.
dependencies
[
"m-audioim"
]){
api
rootProject
.
ext
.
dependencies
[
"m-audioim"
]
transitive
=
true
}
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
api
(
rootProject
.
ext
.
dependencies
[
"ydl-platform"
])
{
transitive
=
true
transitive
=
true
}
}
...
...
ydl-flutter-base/src/main/java/com/channel/ydl_flutter_base/plugin/YDLCommonPlugin.kt
View file @
2ca10186
package
com.channel.ydl_flutter_base.plugin
package
com.channel.ydl_flutter_base.plugin
import
android.content.SharedPreferences
import
android.text.TextUtils
import
android.text.TextUtils
import
com.channel.ydl_flutter_base.BuildConfig
import
com.channel.ydl_flutter_base.BuildConfig
import
com.channel.ydl_flutter_base.base.BaseFlutterFragment
import
com.channel.ydl_flutter_base.base.BaseFlutterFragment
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxDeviceTool
import
io.flutter.app.FlutterActivity
import
io.flutter.app.FlutterActivity
import
io.flutter.embedding.engine.FlutterEngine
import
io.flutter.embedding.engine.FlutterEngine
...
@@ -64,6 +66,8 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
...
@@ -64,6 +66,8 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
RxDeviceTool
.
getBuildMANUFACTURER
()
+
","
+
RxDeviceTool
.
getBuildBrandModel
()
+
","
+
RxDeviceTool
.
getOsBuileVersion
()
+
","
+
RxDeviceTool
.
getAppVersionName
(
RxDeviceTool
.
getBuildMANUFACTURER
()
+
","
+
RxDeviceTool
.
getBuildBrandModel
()
+
","
+
RxDeviceTool
.
getOsBuileVersion
()
+
","
+
RxDeviceTool
.
getAppVersionName
(
BaseApp
.
getApp
()
BaseApp
.
getApp
()
)
)
var
res
=
SharedPreferencesEditor
.
getString
(
"flutter_proxy_sp_ip"
)
mMap
[
"proxyIp"
]
=
if
(
TextUtils
.
isEmpty
(
res
))
""
else
res
result
.
success
(
mMap
)
result
.
success
(
mMap
)
}
}
}
}
...
...
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