Skip to content

Commit 16e7985

Browse files
committed
Make it Android Studio compilable
- The precompiled jars are included in libs dir * android-common.jar * guava.jar * framesequence.jar * jsr305.jar * libphonenumber.jar * vcard.jar All compiled from Lineage 16.0 source tree - LibChips,ColorPicker and PhotoViewer submodule are include in the source
1 parent 7ea2a93 commit 16e7985

File tree

15 files changed

+217
-2
lines changed

15 files changed

+217
-2
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.bin
2+
.lock
3+
.classpath
4+
.project
5+
*.iml
6+
**/*.iml
7+
.settings/
8+
bin/
9+
libs/
10+
gen/
11+
.idea/
12+
.idea/libraries/*.xml
13+
.gitignore
14+
.project.properties
15+
.externalNativeBuild/
16+
tests/stress/gen/
17+
local.properties
18+
gradle/
19+
.gradle/
20+
build/
21+
gradlew*

build.gradle

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
jcenter()
5+
google()
6+
}
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:3.1.4'
9+
}
10+
}
11+
12+
apply plugin: 'com.android.application'
13+
14+
project(':modules:photoviewer') {
15+
apply plugin: 'android-library'
16+
17+
android {
18+
compileSdkVersion 28
19+
buildToolsVersion '28.0.3'
20+
21+
defaultConfig {
22+
minSdkVersion 21
23+
targetSdkVersion 28
24+
}
25+
26+
sourceSets {
27+
main {
28+
manifest.srcFile 'AndroidManifest.xml'
29+
java.srcDirs = ['src']
30+
aidl.srcDirs = ['src']
31+
renderscript.srcDirs = ['src']
32+
res.srcDirs = ['res']
33+
assets.srcDirs = ['assets']
34+
}
35+
}
36+
}
37+
}
38+
39+
project(':modules:colorpicker') {
40+
apply plugin: 'android-library'
41+
42+
android {
43+
compileSdkVersion 28
44+
buildToolsVersion '28.0.3'
45+
46+
defaultConfig {
47+
minSdkVersion 23
48+
targetSdkVersion 28
49+
}
50+
51+
sourceSets {
52+
main {
53+
manifest.srcFile 'AndroidManifest.xml'
54+
java.srcDirs = ['src']
55+
aidl.srcDirs = ['src']
56+
renderscript.srcDirs = ['src']
57+
res.srcDirs = ['res']
58+
assets.srcDirs = ['assets']
59+
}
60+
}
61+
}
62+
}
63+
64+
project(':modules:chips') {
65+
apply plugin: 'android-library'
66+
67+
android {
68+
compileSdkVersion 28
69+
buildToolsVersion '28.0.3'
70+
71+
defaultConfig {
72+
minSdkVersion 23
73+
targetSdkVersion 28
74+
}
75+
76+
sourceSets {
77+
main {
78+
manifest.srcFile 'AndroidManifest.xml'
79+
java.srcDirs = ['src']
80+
aidl.srcDirs = ['src']
81+
renderscript.srcDirs = ['src']
82+
res.srcDirs = ['res']
83+
assets.srcDirs = ['assets']
84+
}
85+
}
86+
87+
88+
lintOptions {
89+
abortOnError false
90+
}
91+
}
92+
}
93+
94+
android {
95+
compileSdkVersion 28
96+
buildToolsVersion '28.0.3'
97+
98+
defaultConfig {
99+
minSdkVersion 23
100+
targetSdkVersion 28
101+
versionCode 1
102+
versionName "1.0"
103+
vectorDrawables.useSupportLibrary = true
104+
}
105+
106+
compileOptions {
107+
targetCompatibility 1.8
108+
sourceCompatibility 1.8
109+
}
110+
111+
lintOptions {
112+
abortOnError false
113+
}
114+
115+
buildTypes {
116+
release {
117+
minifyEnabled true
118+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
119+
'proguard.flags'
120+
}
121+
}
122+
123+
productFlavors {
124+
aosp {
125+
flavorDimensions 'default'
126+
applicationId 'com.android.messaging'
127+
}
128+
}
129+
130+
sourceSets {
131+
main {
132+
res.srcDirs = ['res']
133+
java.srcDirs = ['src']
134+
assets.srcDirs = ['assets']
135+
manifest.srcFile 'AndroidManifest.xml'
136+
}
137+
}
138+
}
139+
140+
repositories {
141+
mavenCentral()
142+
jcenter()
143+
google()
144+
}
145+
146+
final String SUPPORT_LIBS_VERSION = '28.0.0'
147+
148+
dependencies {
149+
implementation project(':modules:colorpicker')
150+
implementation project(':modules:photoviewer')
151+
implementation project(':modules:chips')
152+
implementation fileTree(dir: 'libs', include: ['*.jar'])
153+
implementation "com.android.support:support-compat:${SUPPORT_LIBS_VERSION}"
154+
implementation "com.android.support:support-media-compat:${SUPPORT_LIBS_VERSION}"
155+
implementation "com.android.support:support-core-utils:${SUPPORT_LIBS_VERSION}"
156+
implementation "com.android.support:support-core-ui:${SUPPORT_LIBS_VERSION}"
157+
implementation "com.android.support:support-fragment:${SUPPORT_LIBS_VERSION}"
158+
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBS_VERSION}"
159+
implementation "com.android.support:palette-v7:${SUPPORT_LIBS_VERSION}"
160+
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
161+
implementation "com.android.support:support-v13:${SUPPORT_LIBS_VERSION}"
162+
implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
163+
}

libs/android-common.jar

143 KB
Binary file not shown.

libs/framesequence.jar

12.9 KB
Binary file not shown.

libs/guava.jar

2.47 MB
Binary file not shown.

libs/jsr305.jar

19.5 KB
Binary file not shown.

libs/libphonenumber.jar

2.18 MB
Binary file not shown.

libs/vcard.jar

129 KB
Binary file not shown.

modules/chips

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 57e47c5d7d123729dd81b038c857afb6bb9a5721

modules/colorpicker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit e7de9c54d16aa90b210294c3c5ec20211d01f3a3

0 commit comments

Comments
 (0)