forked from celzero/rethink-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
137 lines (118 loc) · 2.92 KB
/
Android.bp
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package {
default_applicable_licenses: ["Rethink_license"],
}
license {
name: "Rethink_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0"
],
license_text: [
"LICENSE"
],
}
android_app {
name: "Rethink",
manifest: "app/src/main/AndroidManifest.xml",
additional_manifests: ["app/src/headless/AndroidManifest.xml"],
srcs: [
"app/src/main/**/*.kt",
"app/src/main/**/*.java",
"app/src/headless/**/*.kt",
"app/src/headless/**/*.java",
],
asset_dirs: [
"app/src/main/assets",
"app/src/headless/assets",
],
resource_dirs: ["app/src/main/res"],
certificate: "testkey",
privileged: true,
platform_apis: true,
system_ext_specific: true,
plugins: [
"androidx.room_room-compiler-plugin",
],
required: [
"privapp_whitelist_com.celzero.bravedns",
"com.celzero.bravedns_whitelist",
],
jni_libs: ["libgojni"],
static_libs: [
"androidx.activity_activity-ktx",
"androidx.appcompat_appcompat",
"androidx.paging_paging-runtime",
"androidx.preference_preference",
"androidx.room_room-paging",
"androidx.work_work-runtime-ktx",
"com.google.android.material_material",
"firestack",
"gson-prebuilt-jar",
"guava",
"ipaddress",
"koin-android",
"koin-core",
"krate",
],
}
android_library_import {
name: "androidx.room_room-paging",
aars: ["app/libs/room-paging*.aar"],
}
android_library_import {
name: "firestack",
aars: ["app/libs/firestack*.aar"],
extract_jni: true,
}
android_library_import {
name: "koin-android",
aars: ["app/libs/koin-android*.aar"],
}
android_library_import {
name: "krate",
aars: ["app/libs/krate*.aar"],
}
cc_prebuilt_library_shared {
name: "libgojni",
target: {
android_arm64: {
srcs: ["app/libs/jni/arm64-v8a/libgojni.so"],
},
android_arm: {
srcs: ["app/libs/jni/armeabi-v7a/libgojni.so"],
},
android_x86: {
srcs: ["app/libs/jni/x86/libgojni.so"],
},
android_x86_64: {
srcs: ["app/libs/jni/x86_64/libgojni.so"],
},
},
shared_libs: [
"libandroid",
"liblog"
],
system_ext_specific: true,
}
java_import {
name: "ipaddress",
jars: ["app/libs/ipaddress*.jar"],
}
java_import {
name: "koin-core",
jars: ["app/libs/koin-core*.jar"],
}
prebuilt_etc {
name: "privapp_whitelist_com.celzero.bravedns",
system_ext_specific: true,
sub_dir: "permissions",
src: "com.celzero.bravedns.xml",
filename_from_src: true,
}
prebuilt_etc {
name: "com.celzero.bravedns_whitelist",
system_ext_specific: true,
sub_dir: "sysconfig",
src: "com.celzero.bravedns_whitelist.xml",
filename_from_src: true,
}