Skip to content

Commit 51dc6b6

Browse files
author
Mahavir Jain
authored
Merge pull request #337 from codetoart/master
Prepare version 0.5.4 for release
2 parents 8701a23 + 3254d84 commit 51dc6b6

File tree

10 files changed

+12
-11
lines changed

10 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.5.4
4+
5+
- Search API from codetoart/r2-streamer-kotlin now use window.find() instead of Rangy solution.
6+
37
## 0.5.3
48

59
- FolioReader migrated to AndroidX. You will have to migrate your project to AndroidX. Read more about it here - [Migrating to AndroidX](https://developer.android.com/jetpack/androidx/migrate)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Add following dependency to your app module `build.gradle` file:
5656
```groovy
5757
dependencies {
5858
...
59-
implementation "com.folioreader:folioreader:0.5.3"
59+
implementation "com.folioreader:folioreader:0.5.4"
6060
...
6161
}
6262
```
@@ -83,7 +83,7 @@ folioReader.openBook("file:///android_asset/TheSilverChair.epub");
8383
##### opening book from raw -
8484

8585
```java
86-
folioReader.openBook(R.raw.adventures);
86+
folioReader.openBook(R.raw.accessible_epub_3);
8787
```
8888

8989

folioreader/src/main/java/com/folioreader/ui/activity/FolioActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ class FolioActivity : AppCompatActivity(), FolioActivityCallback, MediaControlle
506506
private fun onBookInitSuccess() {
507507

508508
val publication = pubBox!!.publication
509-
spine = publication.spine
509+
spine = publication.readingOrder
510510
title = publication.metadata.title
511511

512512
if (mBookId == null) {

folioreader/src/main/java/com/folioreader/ui/fragment/TableOfContentFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void initAdapter() {
9191
}
9292
onLoadTOC(tocLinkWrappers);
9393
} else {
94-
onLoadTOC(createTOCFromSpine(publication.getSpine()));
94+
onLoadTOC(createTOCFromSpine(publication.getReadingOrder()));
9595
}
9696
} else {
9797
onError();

sample/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ dependencies {
5656
androidTestImplementation "androidx.test.ext:junit:1.0.0"
5757
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
5858

59-
implementation 'androidx.multidex:multidex:2.0.0'
60-
6159
implementation project(':folioreader')
6260
//implementation "com.folioreader:folioreader:$versions.folioreaderSdk"
6361

sample/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package="com.folioreader.android.sample">
44

55
<application
6-
android:name="androidx.multidex.MultiDexApplication"
76
android:allowBackup="true"
87
android:icon="@mipmap/ic_launcher"
98
android:label="@string/app_name"
File renamed without changes.

sample/src/main/java/com/folioreader/android/sample/HomeActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void onClick(View v) {
6767
config.setAllowedDirection(Config.AllowedDirection.VERTICAL_AND_HORIZONTAL);
6868

6969
folioReader.setConfig(config, true)
70-
.openBook(R.raw.adventures);
70+
.openBook(R.raw.accessible_epub_3);
7171
}
7272
});
7373

3.86 MB
Binary file not shown.

versions.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
def versions = [:]
22

3-
versions.folioreaderSdk = "0.5.3"
4-
versions.r2SharedKotlin = "1.0.4-1"
5-
versions.r2StreamerKotlin = "1.0.4-1"
3+
versions.folioreaderSdk = "0.5.4"
4+
versions.r2SharedKotlin = "1.0.4-2"
5+
versions.r2StreamerKotlin = "1.0.4-2"
66

77
versions.projectVersionCode = 1
88
versions.projectVersionName = "1.0"

0 commit comments

Comments
 (0)