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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
repositories {
google()
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 33
defaultConfig {
targetSdkVersion 33
minSdkVersion 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [
'java',
'../service-core/java',
'../framework/java',
'../../../../../external/guava/guava/src',
'../../../../../frameworks/base/packages/SettingsLib/' +
'ActionBarShadow/src',
'../../../../../frameworks/base/core/java',
'../../../../../frameworks/base/packages/SettingsLib/' +
'CollapsingToolbarBaseActivity/src',
'../../../../../frameworks/base/packages/SettingsLib/' +
'MainSwitchPreference/src',
'../../../../../out/soong/.intermediates/packages/modules/AdServices/adservices/service-core/statslog-adservices-java-gen/gen',
]
java.setIncludes(new HashSet([
'com/android/adservices/ui/**/*.java',
'com/android/adservices/**/*.java',
'com/android/settingslib/widget/**/*.java',
'com/google/common/collect/*.java',
'android/os/*.java',
'com/android/settingslib/collapsingtoolbar/**/*.java',
'com/android/adservices/service/stats/*.java',
]))
res.srcDirs = [
'res',
'../../../../../frameworks/base/packages/SettingsLib/' +
'SettingsTheme/res',
]
resources.setIncludes(new HashSet([
'drawable/*',
'drawable24/*',
'layout/*',
'mipmap-*/*',
'values/*',
'xml/*',
]))
}
androidTest {
java.srcDirs = [
'tests/src',
'unittest/src',
]
java.setIncludes(new HashSet([
'com/android/adservices/ui/**/*.java',
]))
}
}
buildToolsVersion '30.0.3'
}
dependencies {
implementation 'androidx.preference:preference:1.2.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation files('../../../../../prebuilts/tools/common/m2/repository/com/google/truth/truth/1.0.1/truth-1.0.1.jar')
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
// test dependencies
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'org.mockito:mockito-core:1.10.19'
}
|