Skip to content

Commit 6f9f591

Browse files
committed
Simplify file structure
1 parent 0403429 commit 6f9f591

File tree

788 files changed

+566
-2916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

788 files changed

+566
-2916
lines changed
File renamed without changes.
File renamed without changes.

readium/lcp/build.gradle

Lines changed: 76 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,87 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1+
/*
2+
* Copyright 2018 Readium Foundation. All rights reserved.
3+
* Use of this source code is governed by the BSD-style license
4+
* available in the top-level LICENSE file of the project.
5+
*/
26

3-
buildscript {
4-
ext.kotlin_version = '1.5.31'
7+
plugins {
8+
id 'com.android.library'
9+
id 'kotlin-android'
10+
id 'kotlin-parcelize'
11+
id 'kotlin-kapt'
12+
id 'maven-publish'
13+
}
514

6-
repositories {
7-
google()
8-
mavenCentral()
9-
}
10-
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.2'
15+
group='com.github.readium'
1216

13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17+
android {
1418

15-
// NOTE: Do not place your application dependencies here; they belong
16-
// in the individual module build.gradle files
19+
compileSdkVersion 31
20+
defaultConfig {
21+
minSdkVersion 21
22+
targetSdkVersion 31
23+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24+
}
25+
compileOptions {
26+
sourceCompatibility 1.8
27+
targetCompatibility 1.8
28+
}
29+
kotlinOptions {
30+
jvmTarget = "1.8"
31+
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
32+
allWarningsAsErrors = true
33+
}
34+
buildTypes {
35+
release {
36+
minifyEnabled false
37+
proguardFiles getDefaultProguardFile('proguard-android.txt')
38+
}
1739
}
1840
}
1941

20-
allprojects {
21-
repositories {
22-
google()
23-
mavenCentral()
24-
maven { url 'https://jitpack.io' }
42+
afterEvaluate {
43+
publishing {
44+
publications {
45+
release(MavenPublication) {
46+
from components.release
47+
}
48+
}
2549
}
2650
}
2751

28-
task clean(type: Delete) {
29-
delete rootProject.buildDir
52+
dependencies {
53+
implementation fileTree(include: ['*.jar'], dir: 'libs')
54+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
55+
56+
if (findProject(':r2-shared')) {
57+
implementation project(':r2-shared')
58+
} else {
59+
implementation "com.github.readium:r2-shared-kotlin:2.1.0"
60+
}
61+
62+
63+
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
64+
implementation 'androidx.core:core-ktx:1.6.0'
65+
implementation 'com.google.android.material:material:1.4.0'
66+
implementation "com.jakewharton.timber:timber:4.7.1"
67+
implementation("com.mcxiaoke.koi:async:0.5.5") {
68+
exclude module: 'support-v4'
69+
}
70+
implementation("com.mcxiaoke.koi:core:0.5.5") {
71+
exclude module: 'support-v4'
72+
}
73+
implementation "joda-time:joda-time:2.10.10"
74+
implementation "org.zeroturnaround:zt-zip:1.14"
75+
implementation 'androidx.browser:browser:1.3.0'
76+
77+
final room_version = '2.4.0-alpha04'
78+
implementation "androidx.room:room-runtime:$room_version"
79+
implementation "androidx.room:room-ktx:$room_version"
80+
kapt "androidx.room:room-compiler:$room_version"
81+
82+
testImplementation "junit:junit:4.13.2"
83+
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
84+
85+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
86+
androidTestImplementation 'androidx.test:runner:1.4.0'
3087
}

readium/lcp/gradle.properties

Lines changed: 0 additions & 20 deletions
This file was deleted.

readium/lcp/gradle/wrapper/gradle-wrapper.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

readium/lcp/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

readium/lcp/gradlew

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)