FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
AndroidModulePattern/module_app/build.gradle at master · paperscz/AndroidModulePattern · GitHub
paperscz
AndroidModulePattern
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
AndroidModulePattern
/
module_app
/
build.gradle
Copy path
More file actions
More file actions
Latest commit
History
History
History
84 lines (73 loc) · 2.66 KB
Breadcrumbs
AndroidModulePattern
/
module_app
/
build.gradle
Copy path
File metadata and controls
84 lines (73 loc) · 2.66 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apply
plugin
:
'
com.android.application
'
//
Create a variable called keystorePropertiesFile, and initialize it to your
//
keystore.properties file, in the rootProject folder.
def
keystorePropertiesFile
=
rootProject
.
file(
"
keystore.properties
"
)
//
Initialize a new Properties() object called keystoreProperties.
def
keystoreProperties
=
new
Properties
()
//
Load your keystore.properties file into the keystoreProperties object.
keystoreProperties
.
load(
new
FileInputStream
(keystorePropertiesFile))
static
def
buildTime
() {
return
new
Date
()
.
format(
"
yyyyMMdd
"
);
}
android
{
signingConfigs {
release {
keyAlias keystoreProperties[
'
keyAlias
'
]
keyPassword keystoreProperties[
'
keyPassword
'
]
storeFile file(keystoreProperties[
'
storeFile
'
])
storePassword keystoreProperties[
'
storePassword
'
]
}
}
compileSdkVersion build_versions
.
target_sdk
defaultConfig {
applicationId
"
com.guiying.module
"
minSdkVersion build_versions
.
min_sdk
targetSdkVersion build_versions
.
target_sdk
versionCode
1
versionName
"
1.0
"
multiDexEnabled
true
//
打包时间
resValue
"
string
"
,
"
build_time
"
, buildTime()
}
compileOptions {
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
buildTypes {
release {
//
更改AndroidManifest.xml中预先定义好占位符信息
//
manifestPlaceholders = [app_icon: "@drawable/icon"]
//
不显示Log
buildConfigField
"
boolean
"
,
"
LEO_DEBUG
"
,
"
false
"
//
是否zip对齐
zipAlignEnabled
true
//
缩减resource文件
shrinkResources
true
//
Proguard
minifyEnabled
true
proguardFiles getDefaultProguardFile(
'
proguard-android.txt
'
),
'
proguard-rules.pro
'
//
签名
signingConfig signingConfigs
.
release
}
debug {
//
给applicationId添加后缀“.debug”
applicationIdSuffix
"
.debug
"
//
manifestPlaceholders = [app_icon: "@drawable/launch_beta"]
buildConfigField
"
boolean
"
,
"
LOG_DEBUG
"
,
"
true
"
zipAlignEnabled
false
shrinkResources
false
minifyEnabled
false
debuggable
true
}
}
}
dependencies
{
implementation fileTree(
dir
:
'
libs
'
,
include
: [
'
*.jar
'
])
implementation deps
.
support
.
multidex
implementation project(
'
:lib_common
'
)
if
(
!
isModule
.
toBoolean()) {
implementation project(
'
:module_main
'
)
implementation project(
'
:module_girls
'
)
implementation project(
'
:module_news
'
)
}
}
Back
|
FazBrowse Home
|
New Git URL