Skip to content

Commit 68fe717

Browse files
committed
Merge branch 'master' of github.com:FolioReader/FolioReader-Android
2 parents 32bd17d + 93a1fc2 commit 68fe717

Some content is hidden

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

49 files changed

+407
-304
lines changed

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
language: android
22

3-
before_install:
4-
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
5-
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
6-
73
android:
84
components:
95
- tools
10-
- build-tools-23.0.2
11-
- android-23
6+
- build-tools-27.0.0
7+
- build-tools-26.0.2
8+
- android-27
9+
- android-19
1210
- extra-android-m2repository
1311

14-
licenses:
15-
- android-sdk-license-.+
16-
1712
script:
1813
./gradlew checkstyle build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FolioReader-Android is an ePub reader and parser framework written in Java.
3636
### Gradle
3737
Add following dependency to your app build.gradle
3838
``` java
39-
compile 'com.folioreader:folioreader:0.3.1'
39+
compile 'com.folioreader:folioreader:0.3.2'
4040
```
4141

4242
### Usage

ViewPager/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repositories {
55
}
66

77
android {
8-
compileSdkVersion 19
9-
buildToolsVersion "19.1.0"
8+
compileSdkVersion 27
9+
buildToolsVersion "27.0.0"
1010

1111
defaultConfig {
12-
minSdkVersion 7
13-
targetSdkVersion 19
12+
minSdkVersion 14
13+
targetSdkVersion 27
1414
}
1515

1616
compileOptions {
@@ -20,5 +20,5 @@ android {
2020
}
2121

2222
dependencies {
23-
compile 'com.android.support:appcompat-v7:18.0.0'
23+
compile 'com.android.support:appcompat-v7:27.0.0'
2424
}

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ buildscript {
44
maven {
55
url "http://dl.bintray.com/mobisystech/maven"
66
}
7+
maven {
8+
url 'https://maven.google.com/'
9+
name 'Google'
10+
}
711
}
812
dependencies {
913
classpath 'com.android.tools.build:gradle:2.2.0'
10-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
11-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
14+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
15+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1216
}
1317
}
1418

@@ -18,5 +22,9 @@ allprojects {
1822
maven {
1923
url "http://dl.bintray.com/mobisystech/maven"
2024
}
25+
maven {
26+
url 'https://maven.google.com/'
27+
name 'Google'
28+
}
2129
}
2230
}

config/quality/quality.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
checkstyle 'com.puppycrawl.tools:checkstyle:6.5'
1919
}
2020

21-
def qualityConfigDir = "$project.rootDir/config/quality";
21+
def qualityConfigDir = "$project.rootDir/config/quality"
2222
def reportsDir = "$project.buildDir/reports"
2323

2424
check.dependsOn 'checkstyle', 'findbugs', 'pmd'

folioreader/bintray/bintrayv1.gradle

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,35 @@ artifacts {
3030
}
3131

3232
// Bintray
33-
Properties properties = new Properties()
34-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
35-
36-
bintray {
37-
user = properties.getProperty("bintray.user")
38-
key = properties.getProperty("bintray.apikey")
39-
40-
configurations = ['archives']
41-
pkg {
42-
repo = bintrayRepo
43-
name = bintrayName
44-
desc = libraryDescription
45-
websiteUrl = siteUrl
46-
vcsUrl = gitUrl
47-
licenses = allLicenses
48-
publish = true
49-
publicDownloadNumbers = true
50-
version {
33+
def propertiesFile = project.rootProject.file('local.properties')
34+
if( propertiesFile.exists()) {
35+
Properties properties = new Properties()
36+
properties.load(propertiesFile.newDataInputStream())
37+
38+
bintray {
39+
user = properties.getProperty("bintray.user")
40+
key = properties.getProperty("bintray.apikey")
41+
42+
configurations = ['archives']
43+
pkg {
44+
repo = bintrayRepo
45+
name = bintrayName
5146
desc = libraryDescription
52-
gpg {
53-
sign = true //Determines whether to GPG sign the files. The default is false
54-
passphrase = properties.getProperty("bintray.gpg.password")
55-
//Optional. The passphrase for GPG signing'
47+
websiteUrl = siteUrl
48+
vcsUrl = gitUrl
49+
licenses = allLicenses
50+
publish = true
51+
publicDownloadNumbers = true
52+
version {
53+
desc = libraryDescription
54+
gpg {
55+
sign = true //Determines whether to GPG sign the files. The default is false
56+
passphrase = properties.getProperty("bintray.gpg.password")
57+
//Optional. The passphrase for GPG signing'
58+
}
5659
}
5760
}
5861
}
59-
}
62+
} else {
63+
logger.info("local.properties does not exist. Skipping Bintray.")
64+
}

folioreader/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply from: '../config/quality/quality.gradle'
3+
apply plugin: 'com.github.dcendents.android-maven'
34

45
ext {
56
bintrayRepo = 'maven'
@@ -27,14 +28,14 @@ ext {
2728

2829
android {
2930
useLibrary 'org.apache.http.legacy'
30-
compileSdkVersion 26
31-
buildToolsVersion "26.0.1"
31+
compileSdkVersion 27
32+
buildToolsVersion "27.0.0"
3233

3334
defaultConfig {
3435
versionCode 1
3536
versionName "1.0"
3637
minSdkVersion 14
37-
targetSdkVersion 26
38+
targetSdkVersion 27
3839
}
3940

4041
sourceSets {
@@ -81,8 +82,9 @@ dependencies {
8182
compile fileTree(include: ['*.jar'], dir: 'libs')
8283
compile project(':webViewMarker')
8384

84-
final ANDROID_LIB_VERSION = '26.0.0-alpha1'
85+
final ANDROID_LIB_VERSION = '27.0.0'
8586

87+
//noinspection GradleDependency
8688
compile "com.android.support:appcompat-v7:$ANDROID_LIB_VERSION"
8789
compile "com.android.support:recyclerview-v7:$ANDROID_LIB_VERSION"
8890
compile "com.android.support:support-v4:$ANDROID_LIB_VERSION"

folioreader/res/layout/row_table_of_contents.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
android:layout_width="wrap_content"
1818
android:layout_height="match_parent"
1919
android:gravity="center_vertical"
20-
app:font="SanFranciscoText-Regular.otf" />
20+
app:folio_font="SanFranciscoText-Regular.otf" />
2121
</LinearLayout>

folioreader/res/layout/view_audio_player.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
android:gravity="center"
8181
android:text="@string/half_speed"
8282
android:textSize="14sp"
83-
app:font="@string/andada_font" />
83+
app:folio_font="@string/andada_font" />
8484

8585
<com.folioreader.view.StyleableTextView
8686
android:id="@+id/btn_one_x_speed"
@@ -90,7 +90,7 @@
9090
android:gravity="center"
9191
android:text="@string/onex"
9292
android:textSize="17sp"
93-
app:font="@string/lato_font" />
93+
app:folio_font="@string/lato_font" />
9494

9595
<com.folioreader.view.StyleableTextView
9696
android:id="@+id/btn_one_and_half_speed"
@@ -100,7 +100,7 @@
100100
android:gravity="center"
101101
android:text="@string/one_and_half"
102102
android:textSize="14sp"
103-
app:font="@string/lora_font" />
103+
app:folio_font="@string/lora_font" />
104104

105105
<com.folioreader.view.StyleableTextView
106106
android:id="@+id/btn_twox_speed"
@@ -110,7 +110,7 @@
110110
android:gravity="center"
111111
android:text="@string/two_x"
112112
android:textSize="17sp"
113-
app:font="@string/raleway_font" />
113+
app:folio_font="@string/raleway_font" />
114114
</LinearLayout>
115115

116116
<View
@@ -134,7 +134,7 @@
134134
android:gravity="center"
135135
android:text="@string/style"
136136
android:textSize="17sp"
137-
app:font="@string/lato_font" />
137+
app:folio_font="@string/lato_font" />
138138

139139
<View
140140
android:id="@+id/third_separator"
@@ -152,7 +152,7 @@
152152
android:layerType="software"
153153
android:text="@string/style_underline"
154154
android:textSize="17sp"
155-
app:font="@string/lora_font" />
155+
app:folio_font="@string/lora_font" />
156156

157157
<View
158158
android:id="@+id/fourth_separator"
@@ -168,7 +168,7 @@
168168
android:gravity="center"
169169
android:text="@string/style"
170170
android:textSize="17sp"
171-
app:font="@string/raleway_font" />
171+
app:folio_font="@string/raleway_font" />
172172

173173
</LinearLayout>
174174

folioreader/res/layout/view_config.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
android:gravity="center"
4848
android:text="@string/andada"
4949
android:textSize="17sp"
50-
app:font="@string/andada_font" />
50+
app:folio_font="@string/andada_font" />
5151
<com.folioreader.view.StyleableTextView
5252
android:id="@+id/btn_font_lato"
5353
android:layout_width="0dp"
@@ -56,7 +56,7 @@
5656
android:gravity="center"
5757
android:text="@string/lato"
5858
android:textSize="17sp"
59-
app:font="@string/lato_font" />
59+
app:folio_font="@string/lato_font" />
6060
<com.folioreader.view.StyleableTextView
6161
android:id="@+id/btn_font_lora"
6262
android:layout_width="0dp"
@@ -65,7 +65,7 @@
6565
android:gravity="center"
6666
android:text="@string/lora"
6767
android:textSize="17sp"
68-
app:font="@string/lora_font" />
68+
app:folio_font="@string/lora_font" />
6969
<com.folioreader.view.StyleableTextView
7070
android:id="@+id/btn_font_raleway"
7171
android:layout_width="0dp"
@@ -74,7 +74,7 @@
7474
android:gravity="center"
7575
android:text="@string/raleway"
7676
android:textSize="17sp"
77-
app:font="@string/raleway_font" />
77+
app:folio_font="@string/raleway_font" />
7878
</LinearLayout>
7979
<View
8080
android:id="@+id/second_separator"
@@ -136,7 +136,7 @@
136136
android:text="vertical"
137137
android:textColor="@drawable/font_text_selector"
138138
android:textSize="17sp"
139-
app:font="@string/andada_font" />
139+
app:folio_font="@string/andada_font" />
140140
<com.folioreader.view.StyleableTextView
141141
android:id="@+id/btn_horizontal_orentation"
142142
android:layout_width="0dp"
@@ -146,6 +146,6 @@
146146
android:text="horizontal"
147147
android:textColor="@drawable/font_text_selector"
148148
android:textSize="17sp"
149-
app:font="@string/lato_font" />
149+
app:folio_font="@string/lato_font" />
150150
</LinearLayout>
151151
</RelativeLayout>

0 commit comments

Comments
 (0)