Skip to content

Commit f2ebf0c

Browse files
committed
flow layout
2 parents 8be85a9 + 1dd0676 commit f2ebf0c

File tree

118 files changed

+19659
-6609
lines changed

Some content is hidden

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

118 files changed

+19659
-6609
lines changed

android/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
android:icon="@mipmap/cr3_logo"
3232
android:allowClearUserData="true"
3333
android:process="org.coolreader"
34+
android:usesCleartextTraffic="true"
3435
>
3536
<!--
3637
android:configChanges="orientation|keyboardHidden|locale|screenSize"
@@ -71,6 +72,10 @@
7172
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fb2"/>
7273
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fb2"/>
7374
<!-- end of inner files in archive -->
75+
<data android:pathPattern=".*\\.fb3"/>
76+
<data android:pathPattern=".*\\..*\\.fb3"/>
77+
<data android:pathPattern=".*\\..*\\..*\\.fb3"/>
78+
<data android:pathPattern=".*\\..*\\..*\\..*\\.fb3"/>
7479
<data android:pathPattern=".*\\.txt"/>
7580
<data android:pathPattern=".*\\.html"/>
7681
<data android:pathPattern=".*\\.xhtml"/>
@@ -86,6 +91,7 @@
8691
<data android:pathPattern=".*\\..*\\..*\\..*\\.fb2\\.epub"/>
8792
<data android:pathPattern=".*\\.pdb"/>
8893
<data android:pathPattern=".*\\.doc"/>
94+
<data android:pathPattern=".*\\.docx"/>
8995
<data android:pathPattern=".*\\.prc"/>
9096
<data android:pathPattern=".*\\.pml"/>
9197
<data android:pathPattern=".*\\.mobi"/>
@@ -117,6 +123,7 @@
117123
<data android:mimeType="application/x-chm"/>
118124
<data android:mimeType="application/fb2"/>
119125
<data android:mimeType="application/fb2.zip"/>
126+
<data android:mimeType="application/fb3"/>
120127
<data android:mimeType="application/epub"/>
121128
<data android:mimeType="application/epub+zip"/>
122129
<data android:mimeType="application/x-fictionbook"/>
@@ -131,6 +138,7 @@
131138
<data android:mimeType="application/word"/>
132139
<data android:mimeType="application/x-msw6"/>
133140
<data android:mimeType="application/x-msword"/>
141+
<data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
134142
</intent-filter>
135143
</activity>
136144

android/app/CMakeLists.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ set(LOCAL_CFLAGS "${LOCAL_CFLAGS} -funwind-tables")
3434
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LOCAL_CFLAGS}")
3535
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LOCAL_CFLAGS}")
3636

37-
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3")
38-
set(CMAKE_C_FLAGS_RELEASE "-O2 -g0 -DNDEBUG")
39-
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g1 -DNDEBUG")
37+
set(CMAKE_C_FLAGS_DEBUG "-O0 -g")
38+
set(CMAKE_C_FLAGS_RELEASE "-O3 -g0 -flto -DNDEBUG")
39+
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g1 -flto -DNDEBUG")
4040
set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
4141
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE})
4242
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO})
@@ -57,12 +57,17 @@ set(CRENGINE_SRC_FILES
5757
${CR3_ROOT}/crengine/src/epubfmt.cpp
5858
${CR3_ROOT}/crengine/src/pdbfmt.cpp
5959
${CR3_ROOT}/crengine/src/wordfmt.cpp
60+
${CR3_ROOT}/crengine/src/lvopc.cpp
61+
${CR3_ROOT}/crengine/src/docxfmt.cpp
62+
${CR3_ROOT}/crengine/src/fb3fmt.cpp
6063
${CR3_ROOT}/crengine/src/lvstsheet.cpp
6164
${CR3_ROOT}/crengine/src/txtselector.cpp
6265
${CR3_ROOT}/crengine/src/crtest.cpp
6366
${CR3_ROOT}/crengine/src/lvbmpbuf.cpp
6467
${CR3_ROOT}/crengine/src/lvfnt.cpp
6568
${CR3_ROOT}/crengine/src/hyphman.cpp
69+
${CR3_ROOT}/crengine/src/lvfont.cpp
70+
${CR3_ROOT}/crengine/src/lvembeddedfont.cpp
6671
${CR3_ROOT}/crengine/src/lvfntman.cpp
6772
${CR3_ROOT}/crengine/src/lvimg.cpp
6873
${CR3_ROOT}/crengine/src/crskin.cpp
@@ -74,6 +79,12 @@ set(CRENGINE_SRC_FILES
7479
${CR3_ROOT}/crengine/src/wolutil.cpp
7580
${CR3_ROOT}/crengine/src/crconcurrent.cpp
7681
${CR3_ROOT}/crengine/src/hist.cpp
82+
${CR3_ROOT}/crengine/src/private/lvfontglyphcache.cpp
83+
${CR3_ROOT}/crengine/src/private/lvfontboldtransform.cpp
84+
${CR3_ROOT}/crengine/src/private/lvfontcache.cpp
85+
${CR3_ROOT}/crengine/src/private/lvfontdef.cpp
86+
${CR3_ROOT}/crengine/src/private/lvfreetypeface.cpp
87+
${CR3_ROOT}/crengine/src/private/lvfreetypefontman.cpp
7788
${CR3_ROOT}/crengine/fc-lang/fc-lang-cat.c
7889
)
7990
# ${CR3_ROOT}/crengine/src/cri18n.cpp

android/app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
4+
compileSdkVersion 28
55

66
defaultConfig {
77
applicationId "org.coolreader.mod.plotn"
8-
minSdkVersion 14
9-
targetSdkVersion 26
8+
minSdkVersion 24
9+
targetSdkVersion 28
1010
multiDexEnabled true
1111
// When new version released, version code must be incremented at least by 8
1212
// for compatibility with ABI versioning of split apk (see below).
@@ -64,7 +64,6 @@ android {
6464
debug {
6565
minifyEnabled false
6666
shrinkResources false
67-
//useProguard false
6867
jniDebuggable true
6968
debuggable true
7069
externalNativeBuild {
@@ -149,4 +148,7 @@ dependencies {
149148
androidTestImplementation 'com.android.support.test:runner:1.0.2'
150149
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
151150
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
151+
implementation files('libs/commons.jar')
152+
implementation files('libs/OpenDocument.jar')
153+
//implementation 'org.jopendocument:jOpenDocument:1.3'
152154
}

0 commit comments

Comments
 (0)