Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_freeworld
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_freeworld
Commits
7c16a2b2
Commit
7c16a2b2
authored
Jun 30, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编译时生成的文件,一般用于编译的版本控制
parent
51ebdcfb
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
74 additions
and
9 deletions
+74
-9
gradle.xml
.idea/gradle.xml
+0
-1
build.gradle
app/build.gradle
+16
-0
configProduct.properties
app/configs/auto/configProduct.properties
+4
-0
configTest.properties
app/configs/auto/configTest.properties
+4
-0
supplierconfig.json
app/configs/auto/supplierconfig.json
+17
-0
config.properties
app/configs/release/config.properties
+4
-0
supplierconfig.json
app/configs/release/supplierconfig.json
+17
-0
library.build.gradle
library.build.gradle
+10
-0
PropertyUtils.java
..._base/src/main/java/com/fry/base/utils/PropertyUtils.java
+0
-6
version.properties
library_base/version.properties
+2
-2
No files found.
.idea/gradle.xml
View file @
7c16a2b2
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
</set>
</set>
</option>
</option>
<option
name=
"resolveModulePerSourceSet"
value=
"false"
/>
<option
name=
"resolveModulePerSourceSet"
value=
"false"
/>
<option
name=
"useQualifiedModuleNames"
value=
"true"
/>
</GradleProjectSettings>
</GradleProjectSettings>
</option>
</option>
</component>
</component>
...
...
app/build.gradle
View file @
7c16a2b2
...
@@ -19,6 +19,22 @@ android {
...
@@ -19,6 +19,22 @@ android {
sourceCompatibility
rootProject
.
ext
.
java_version
[
"compileJavaVersion"
]
sourceCompatibility
rootProject
.
ext
.
java_version
[
"compileJavaVersion"
]
targetCompatibility
rootProject
.
ext
.
java_version
[
"targetJavaVersion"
]
targetCompatibility
rootProject
.
ext
.
java_version
[
"targetJavaVersion"
]
}
}
productFlavors
{
// 开发版本
auto
{
buildConfigField
(
'boolean'
,
'IS_DEV'
,
"true"
)
manifestPlaceholders
=
[
app_logo_name:
"Auto"
]
}
// 线上产品版本
product
{
buildConfigField
(
'boolean'
,
'IS_DEV'
,
"false"
)
manifestPlaceholders
=
[
app_logo_name:
"线上"
]
}
}
}
}
dependencies
{
dependencies
{
...
...
app/configs/auto/configProduct.properties
0 → 100644
View file @
7c16a2b2
# 环境名
name
=
product
api.base.url
=
https://
isProduct
=
true
\ No newline at end of file
app/configs/auto/configTest.properties
0 → 100644
View file @
7c16a2b2
# 环境名 默认
name
=
test
api.base.url
=
http://apitest.
isProduct
=
false
\ No newline at end of file
app/configs/auto/supplierconfig.json
0 → 100644
View file @
7c16a2b2
{
"supplier"
:{
"vivo"
:{
"appid"
:
"103881568"
},
"xiaomi"
:{
"appid"
:
"2882303761518348857"
},
"huawei"
:{
"appid"
:
"101833995"
},
"oppo"
:{
"appid"
:
"30251013"
}
}
}
app/configs/release/config.properties
0 → 100644
View file @
7c16a2b2
# 环境名
name
=
product
api.base.url
=
https://api.
isProduct
=
true
\ No newline at end of file
app/configs/release/supplierconfig.json
0 → 100644
View file @
7c16a2b2
{
"supplier"
:{
"vivo"
:{
"appid"
:
"103881568"
},
"xiaomi"
:{
"appid"
:
"2882303761518348857"
},
"huawei"
:{
"appid"
:
"101833995"
},
"oppo"
:{
"appid"
:
"30251013"
}
}
}
library.build.gradle
View file @
7c16a2b2
...
@@ -52,6 +52,16 @@ android {
...
@@ -52,6 +52,16 @@ android {
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
}
}
productFlavors
{
//包含所有环境
auto
{
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"true"
)
}
// 线上产品版本
product
{
buildConfigField
(
"boolean"
,
"IS_DEV"
,
"false"
)
}
}
compileOptions
{
compileOptions
{
...
...
library_base/src/main/java/com/fry/base/utils/PropertyUtils.java
View file @
7c16a2b2
...
@@ -63,14 +63,8 @@ public class PropertyUtils {
...
@@ -63,14 +63,8 @@ public class PropertyUtils {
public
static
ConfigManager
.
EnvironmentType
environmentMap
()
{
public
static
ConfigManager
.
EnvironmentType
environmentMap
()
{
String
envName
=
getEnvironmentName
();
String
envName
=
getEnvironmentName
();
switch
(
envName
){
switch
(
envName
){
case
"uat"
:
return
ConfigManager
.
EnvironmentType
.
UAT
;
case
"product"
:
case
"product"
:
return
ConfigManager
.
EnvironmentType
.
PRODUCT
;
return
ConfigManager
.
EnvironmentType
.
PRODUCT
;
case
"pre"
:
return
ConfigManager
.
EnvironmentType
.
PRE
;
case
"apifz"
:
return
ConfigManager
.
EnvironmentType
.
API_FZ
;
default
:
default
:
return
ConfigManager
.
EnvironmentType
.
TEST
;
return
ConfigManager
.
EnvironmentType
.
TEST
;
}
}
...
...
library_base/version.properties
View file @
7c16a2b2
#Wed Jun 30 1
4:54:57
CST 2021
#Wed Jun 30 1
7:38:32
CST 2021
VERSION_BUILD
=
22
07
VERSION_BUILD
=
22
28
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