-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (65 loc) · 2.08 KB
/
Copy pathbuild.gradle
File metadata and controls
80 lines (65 loc) · 2.08 KB
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
plugins {
id 'com.android.application'
}
android {
namespace 'com.uzong.camera'
compileSdk 34
defaultConfig {
applicationId "com.uzong.camera"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
renderscriptTargetApi 21
renderscriptSupportModeEnabled true
// 应用名称
resValue "string", "app_name", "极简相机"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// 添加内存配置
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = true
jumboMode = true
}
// 启用 R8 完全模式
buildFeatures {
buildConfig true
}
// 配置 aaptOptions
aaptOptions {
cruncherEnabled = false
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// 图片处理库
implementation 'com.github.bumptech.glide:glide:4.16.0'
// 相机库
def camerax_version = "1.2.3"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:${camerax_version}"
// 图片滤镜处理库
implementation 'jp.co.cyberagent.android:gpuimage:2.1.0'
// Fragment 相关
implementation "androidx.fragment:fragment:1.6.2"
// 生命周期组件
implementation "androidx.lifecycle:lifecycle-viewmodel:2.6.2"
implementation "androidx.lifecycle:lifecycle-livedata:2.6.2"
// 图片编辑
implementation 'com.burhanrashid52:photoeditor:3.0.1'
}