Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
Project
Project
Details
Activity
Releases
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
android
android_fiveworld
Commits
ff02d2c2
Commit
ff02d2c2
authored
Aug 05, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
aea56f39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
build.gradle
app/build.gradle
+1
-1
library.build.gradle
library.build.gradle
+3
-2
Constants.java
...ary_base/src/main/java/com/fry/base/global/Constants.java
+1
-2
No files found.
app/build.gradle
View file @
ff02d2c2
...
@@ -67,7 +67,7 @@ android {
...
@@ -67,7 +67,7 @@ android {
// 不显示Log
// 不显示Log
buildConfigField
"boolean"
,
"LOG_DEBUG"
,
"true"
buildConfigField
"boolean"
,
"LOG_DEBUG"
,
"true"
buildConfigField
"String"
,
"AppKeyPre"
,
"\"abcd\""
buildConfigField
"String"
,
"AppKeyPre"
,
"\"abcd\""
buildConfigField
"String"
,
"MainIp"
,
DEBUG
_URL
buildConfigField
"String"
,
"MainIp"
,
RELEASE
_URL
//混淆
//混淆
minifyEnabled
false
minifyEnabled
false
...
...
library.build.gradle
View file @
ff02d2c2
...
@@ -52,13 +52,14 @@ android {
...
@@ -52,13 +52,14 @@ android {
buildTypes
{
buildTypes
{
release
{
release
{
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"false"
)
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"false"
)
buildConfigField
(
"String"
,
"
DEBUG_URL"
,
DEBUG
_URL
)
buildConfigField
(
"String"
,
"
MAINIP"
,
RELEASE
_URL
)
minifyEnabled
false
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
debug
{
debug
{
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"true"
)
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"true"
)
buildConfigField
(
"String"
,
"DEBUG_URL"
,
DEBUG_URL
)
buildConfigField
(
"String"
,
"MAINIP"
,
DEBUG_URL
)
// buildConfigField ("String","MAINIP",RELEASE_URL)
}
}
}
}
// productFlavors {
// productFlavors {
...
...
library_base/src/main/java/com/fry/base/global/Constants.java
View file @
ff02d2c2
...
@@ -41,7 +41,6 @@ public class Constants {
...
@@ -41,7 +41,6 @@ public class Constants {
}
}
public
static
String
getBaseUrl
()
{
public
static
String
getBaseUrl
()
{
return
BuildConfig
.
MAINIP
;
return
BuildConfig
.
DEBUG_URL
;
}
}
}
}
\ No newline at end of file
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