Skip to content

Commit cba0e06

Browse files
poire-zplotn
authored andcommitted
KnownReader era begin
1 parent 08d7951 commit cba0e06

File tree

2,164 files changed

+414585
-327979
lines changed

Some content is hidden

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

2,164 files changed

+414585
-327979
lines changed

android/app/build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ android {
77
compileSdkVersion 28
88

99
defaultConfig {
10-
applicationId "org.coolreader.mod.plotn"
10+
//applicationId "org.coolreader.knownreader"
11+
applicationId "org.knownreader.premium"
1112
minSdkVersion 14
1213
targetSdkVersion 28
1314
multiDexEnabled true
1415
// When new version released, version code must be incremented at least by 8
1516
// for compatibility with ABI versioning of split apk (see below).
16-
versionCode 32390
17-
versionName "3.2.39-1"
17+
versionCode 202006031
18+
versionName "2020.06.03.1"
1819
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1920
externalNativeBuild {
2021
cmake {
@@ -119,15 +120,15 @@ android {
119120
// Variant 2: big version code increment for various ABI
120121
//output.versionCodeOverride = variant.versionCode + 1000000*baseAbiVersionCode
121122
}
122-
def project = "CoolReader_plotn"
123+
def project = "KnownReader"
123124
def SEP = "_"
124-
def buildType = variant.variantData.variantConfiguration.buildType.name
125+
def buildType = variant.buildType.name
125126
def version = variant.versionName
126127
def date = new Date();
127128
def formattedDate = date.format('yyyyMMdd_HHmm')
128129
def abi = output.getFilter(com.android.build.OutputFile.ABI)
129130
if (abi == null) abi = "universal"
130-
def newApkName = formattedDate + SEP + project + SEP + version + SEP + abi + SEP + buildType + ".apk"
131+
def newApkName = abi + SEP + formattedDate + SEP + project + SEP + version + SEP + buildType + "_FREE.apk"
131132
output.outputFileName = newApkName
132133
}
133134
}
@@ -163,6 +164,7 @@ dependencies {
163164
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
164165
implementation files('libs/okhttp-3.12.3.jar')
165166
implementation files('libs/okio-1.15.0.jar')
167+
implementation 'org.jetbrains:annotations:15.0'
166168
//api 'com.squareup.okhttp3:okhttp:4.0.1'
167169
testImplementation 'junit:junit:4.12'
168170
//implementation 'net.htmlparser.jericho:jericho-html:3.4'

android/app/src/main/AndroidManifest.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
<application
3030
android:allowBackup="true"
3131
android:allowClearUserData="true"
32-
android:icon="@mipmap/cr3_logo"
32+
android:icon="@mipmap/known_reader_logo"
3333
android:label="@string/app_name_fork"
34-
android:process="org.coolreader.mod.plotn"
34+
android:process="org.knownreader.premium"
3535
android:resizeableActivity="true"
3636
android:usesCleartextTraffic="true"
3737
>
@@ -173,7 +173,7 @@
173173
</activity>
174174

175175
<activity-alias
176-
android:name=".CoolReaderForFB2"
176+
android:name=".KnownReaderForFB2"
177177
android:targetActivity=".CoolReader" >
178178
<!-- intent-filter with recognized extensions and */* mimeType -->
179179
<intent-filter>
@@ -385,7 +385,7 @@
385385

386386
<!-- alias activity to disable EPUB -->
387387
<activity-alias
388-
android:name=".CoolReaderForEPUB"
388+
android:name=".KnownReaderForEPUB"
389389
android:targetActivity=".CoolReader" >
390390
<!-- intent-filter with recognized extensions and */* mimeType -->
391391
<intent-filter>
@@ -455,7 +455,7 @@
455455

456456
<!-- alias activity to disable TXT -->
457457
<activity-alias
458-
android:name=".CoolReaderForTXT"
458+
android:name=".KnownReaderForTXT"
459459
android:targetActivity=".CoolReader" >
460460
<!-- intent-filter with recognized extensions and */* mimeType -->
461461
<intent-filter>
@@ -529,7 +529,7 @@
529529
</activity-alias>
530530
<!-- alias activity to disable HTML -->
531531
<activity-alias
532-
android:name=".CoolReaderForHTML"
532+
android:name=".KnownReaderForHTML"
533533
android:targetActivity=".CoolReader" >
534534
<!-- intent-filter with recognized extensions and */* mimeType -->
535535
<intent-filter>
@@ -655,7 +655,7 @@
655655
</activity-alias>
656656
<!-- alias activity to disable CHM -->
657657
<activity-alias
658-
android:name=".CoolReaderForCHM"
658+
android:name=".KnowmReaderForCHM"
659659
android:targetActivity=".CoolReader" >
660660
<!-- intent-filter with recognized extensions and */* mimeType -->
661661
<intent-filter>
@@ -709,7 +709,7 @@
709709

710710
<!-- alias activity to disable CBZ -->
711711
<activity-alias
712-
android:name=".CoolReaderForCBZ"
712+
android:name=".KnownReaderForCBZ"
713713
android:targetActivity=".CoolReader" >
714714
<!-- intent-filter with recognized extensions and */* mimeType -->
715715
<intent-filter>
@@ -852,7 +852,7 @@
852852
</activity-alias>
853853
<!-- alias activity to disable RTF -->
854854
<activity-alias
855-
android:name=".CoolReaderForRTF"
855+
android:name=".KnownReaderForRTF"
856856
android:targetActivity=".CoolReader" >
857857
<!-- intent-filter with recognized extensions and */* mimeType -->
858858
<intent-filter>
@@ -924,7 +924,7 @@
924924
</activity-alias>
925925
<!-- alias activity to disable DOCX -->
926926
<activity-alias
927-
android:name=".CoolReaderForDOCX"
927+
android:name=".KnownReaderForDOCX"
928928
android:targetActivity=".CoolReader" >
929929
<!-- intent-filter with recognized extensions and */* mimeType -->
930930
<intent-filter>
@@ -1012,7 +1012,7 @@
10121012
</activity-alias>
10131013
<!-- alias activity to disable DOCX -->
10141014
<activity-alias
1015-
android:name=".CoolReaderForDOC"
1015+
android:name=".KnownReaderForDOC"
10161016
android:targetActivity=".CoolReader" >
10171017
<!-- intent-filter with recognized extensions and */* mimeType -->
10181018
<intent-filter>
@@ -1075,7 +1075,7 @@
10751075
</activity-alias>
10761076
<!-- alias activity to disable MOBI -->
10771077
<activity-alias
1078-
android:name=".CoolReaderForMOBI"
1078+
android:name=".KnownReaderForMOBI"
10791079
android:targetActivity=".CoolReader" >
10801080
<!-- intent-filter with recognized extensions and */* mimeType -->
10811081
<intent-filter>
@@ -1200,7 +1200,7 @@
12001200

12011201
<!-- alias activity to disable PIC -->
12021202
<activity-alias
1203-
android:name=".CoolReaderForPIC"
1203+
android:name=".KnownReaderForPIC"
12041204
android:targetActivity=".CoolReader" >
12051205
<!-- intent-filter with recognized extensions and */* mimeType -->
12061206
<intent-filter>
@@ -1285,6 +1285,7 @@
12851285
<service android:name=".db.CRDBService" />
12861286

12871287
<!-- Donations support -->
1288+
<!--
12881289
<service android:name=".donations.BillingService" />
12891290
12901291
<receiver android:name="org.coolreader.donations.BillingReceiver">
@@ -1294,6 +1295,7 @@
12941295
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
12951296
</intent-filter>
12961297
</receiver>
1298+
-->
12971299
<!-- Stop TTS on incoming call -->
12981300
<receiver android:name="org.coolreader.PhoneStateReceiver">
12991301
<intent-filter>
@@ -1302,7 +1304,7 @@
13021304
</receiver>
13031305
<provider
13041306
android:name=".GenericFileProvider"
1305-
android:authorities="org.coolreader.mod.plotn.fileprovider"
1307+
android:authorities="org.knownreader.fileprovider"
13061308
android:exported="false"
13071309
android:grantUriPermissions="true">
13081310
<meta-data
@@ -1311,4 +1313,4 @@
13111313
</provider>
13121314
</application>
13131315

1314-
</manifest>
1316+
</manifest>
-16 Bytes
Loading
1.04 KB
Loading
-16 Bytes
Loading
4.47 KB
Loading
-16 Bytes
Loading
601 Bytes
Loading
-16 Bytes
Loading
1.79 KB
Loading

0 commit comments

Comments
 (0)