Skip to content

Commit

Permalink
Prepare version 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishikesh-kadam committed Dec 31, 2018
1 parent 13709e1 commit 9d8570b
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 14 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Change Log

## 0.5.3

- FolioReader migrated to AndroidX.
- Search API calls made asynchronous.

### Bugs Fixed

- FolioReader/FolioReader-Android#190
- FolioReader/FolioReader-Android#276
- FolioReader/FolioReader-Android#239
- FolioReader/FolioReader-Android#308
- FolioReader/FolioReader-Android#284
- FolioReader/FolioReader-Android#298

## 0.5.2 (Unreleased)

- ReadPosition replaced with ReadLocator using CFI.
- TTS feature temporarily disabled, see KNOWN_ISSUES.md for more information.
- SearchQueryResults and SearchItem replaced with SearchLocator using CFI.

## 0.5.1

- r2-streamer-java replaced with r2-streamer-kotlin and r2-shared-kotlin
- WebViewMarker replaced with Native text selection popup.
- Media Overlay feature temporarily unavailable, see KNOWN_ISSUES.md for more information.
9 changes: 9 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Migration

## 0.5.2

- Developer now don't need to add network_security_config.xml explicitly.

## 0.4.1

- Developer now don't need to specify permissions and FolioActivity tag in AndroidManifest.xml
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://api.travis-ci.org/FolioReader/FolioReader-Android.svg?branch=master)](https://travis-ci.org/FolioReader/FolioReader-Android)

FolioReader-Android is an ePub reader written in Java and Kotlin.
FolioReader-Android is an EPUB reader written in Java and Kotlin.

### Features

Expand Down Expand Up @@ -56,7 +56,7 @@ Add following dependency to your app module `build.gradle` file:
```groovy
dependencies {
...
implementation "com.folioreader:folioreader:0.5.2"
implementation "com.folioreader:folioreader:0.5.3"
...
}
```
Expand Down Expand Up @@ -97,8 +97,6 @@ folioReader.openBook(R.raw.adventures);
* [Highlight Event](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight-Event)
* [Providing External Highlight](https://github.com/FolioReader/FolioReader-Android/wiki/Providing-External-Highlight)
* [ReadLocator](https://github.com/FolioReader/FolioReader-Android/wiki/ReadLocator)
* [Get ReadLocator](https://github.com/FolioReader/FolioReader-Android/wiki/Get-ReadLocator)
* [Set ReadLocator](https://github.com/FolioReader/FolioReader-Android/wiki/Set-ReadLocator)
* [Clean up code](https://github.com/FolioReader/FolioReader-Android/wiki/Clean-up-code)

## Reporting Issue
Expand Down
2 changes: 1 addition & 1 deletion config/quality/quality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ task findbugs(type: FindBugs,
effort = "max"
reportLevel = "high"
excludeFilter = new File("$qualityConfigDir/findbugs/android-exclude-filter.xml")
classes = files("$project.rootDir/folioreader/build/intermediates/classes")
classes = files("$project.rootDir/folioreader/build/intermediates/javac")

source 'src'
include '**/*.java'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.folioreader.Config;
import com.folioreader.Constants;
import com.folioreader.R;
import com.folioreader.model.TOCLinkWrapper;
import com.folioreader.ui.adapter.TOCAdapter;
Expand All @@ -39,7 +38,7 @@ public static TableOfContentFragment newInstance(Publication publication,
String selectedChapterHref, String bookTitle) {
TableOfContentFragment tableOfContentFragment = new TableOfContentFragment();
Bundle args = new Bundle();
args.putSerializable(Constants.PUBLICATION, publication);
args.putSerializable(PUBLICATION, publication);
args.putString(SELECTED_CHAPTER_POSITION, selectedChapterHref);
args.putString(BOOK_TITLE, bookTitle);
tableOfContentFragment.setArguments(args);
Expand All @@ -49,7 +48,7 @@ public static TableOfContentFragment newInstance(Publication publication,
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
publication = (Publication) getArguments().getSerializable(Constants.PUBLICATION);
publication = (Publication) getArguments().getSerializable(PUBLICATION);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public DirectionalViewpager(Context context, AttributeSet attrs) {
initViewPager();
}

@SuppressWarnings("PMD.UnnecessaryFullyQualifiedName")
void initViewPager() {
setWillNotDraw(false);
setDescendantFocusability(FOCUS_AFTER_DESCENDANTS);
Expand Down
2 changes: 1 addition & 1 deletion folioreader/src/main/java/com/folioreader/util/UiUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static void setColorResToDrawable(@ColorRes int colorResId, Drawable draw
int color = ContextCompat.getColor(AppContext.get(), colorResId);
drawable.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
} catch (Resources.NotFoundException e) {
Log.e(LOG_TAG, "-> ", e);
Log.e(LOG_TAG, "-> Exception in setColorResToDrawable -> ", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import org.readium.r2.shared.Locator

class LocatorUnitTest {

@Test
// Remove below line to check test the difference
//@Test
fun testJackson() {

val locations = Locations()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private ReadLocator getLastReadLocator() {

@Override
public void saveReadLocator(ReadLocator readLocator) {
Log.i(LOG_TAG, "-> ReadLocator -> " + readLocator.toJson());
Log.i(LOG_TAG, "-> saveReadLocator -> " + readLocator.toJson());
}

/*
Expand Down
6 changes: 3 additions & 3 deletions versions.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def versions = [:]

versions.folioreaderSdk = "0.5.3.dev.3"
versions.r2SharedKotlin = "1.0.4-1.dev.2"
versions.r2StreamerKotlin = "1.0.4-1.dev.2"
versions.folioreaderSdk = "0.5.3"
versions.r2SharedKotlin = "1.0.4-1"
versions.r2StreamerKotlin = "1.0.4-1"

versions.projectVersionCode = 1
versions.projectVersionName = "1.0"
Expand Down

0 comments on commit 9d8570b

Please sign in to comment.