react-native-readium 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,11 +53,6 @@ yarn add react-native-readium
53
53
  Due to the current state of the `Readium` swift libraries you need to manually
54
54
  update your `Podfile` ([see more on that here](https://github.com/readium/swift-toolkit/issues/38)).
55
55
 
56
- Additionally, note that the GitHub URL's below are pointing to the `develop`
57
- branch. [This is currently necessary as a fix for CocoaPods was merged but has
58
- not yet been released](https://github.com/readium/swift-toolkit/pull/76#issuecomment-1213170966).
59
- It will land in the next release (after v2.3.0).
60
-
61
56
  ```rb
62
57
  # ./ios/Podfile
63
58
  ...
@@ -68,10 +63,10 @@ platform :ios, '13.0'
68
63
  target 'ExampleApp' do
69
64
  config = use_native_modules!
70
65
  ...
71
- pod 'GCDWebServer', podspec: 'https://raw.githubusercontent.com/readium/GCDWebServer/a8edee9790ef0995b2cf620ba1a9b5cf146b7221/GCDWebServer.podspec', modular_headers: true
72
- pod 'R2Shared', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/develop/Support/CocoaPods/ReadiumShared.podspec'
73
- pod 'R2Streamer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/develop/Support/CocoaPods/ReadiumStreamer.podspec'
74
- pod 'R2Navigator', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/develop/Support/CocoaPods/ReadiumNavigator.podspec'
66
+ pod 'GCDWebServer', podspec: 'https://raw.githubusercontent.com/readium/GCDWebServer/3ec154d358f26858071feaa6429e0f1c16bb11bd/GCDWebServer.podspec', modular_headers: true
67
+ pod 'R2Shared', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.4.0/Support/CocoaPods/ReadiumShared.podspec'
68
+ pod 'R2Streamer', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.4.0/Support/CocoaPods/ReadiumStreamer.podspec'
69
+ pod 'R2Navigator', podspec: 'https://raw.githubusercontent.com/readium/swift-toolkit/2.4.0/Support/CocoaPods/ReadiumNavigator.podspec'
75
70
  pod 'Minizip', modular_headers: true
76
71
  ...
77
72
  end
@@ -1,7 +1,7 @@
1
1
  buildscript {
2
2
  // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
3
  def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Readium_kotlinVersion']
4
- ext.readium_version = '2.1.1'
4
+ ext.readium_version = '2.2.1'
5
5
 
6
6
  repositories {
7
7
  google()
@@ -165,14 +165,6 @@ dependencies {
165
165
  implementation "androidx.recyclerview:recyclerview:1.2.1"
166
166
  implementation "androidx.viewpager2:viewpager2:1.0.0"
167
167
  implementation "androidx.webkit:webkit:1.4.0"
168
- //noinspection GradleDependency
169
- implementation ("com.github.edrlab.nanohttpd:nanohttpd:master-SNAPSHOT") {
170
- exclude group: 'org.parboiled'
171
- }
172
- //noinspection GradleDependency
173
- implementation ("com.github.edrlab.nanohttpd:nanohttpd-nanolets:master-SNAPSHOT") {
174
- exclude group: 'org.parboiled'
175
- }
176
168
  implementation "com.google.android.material:material:1.4.0"
177
169
  implementation "com.jakewharton.timber:timber:4.7.1"
178
170
  // AM NOTE: needs to stay this version for now (June 24,2020)
@@ -1,4 +1,6 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.reactnativereadium">
3
-
2
+ package="com.reactnativereadium">
3
+ <application
4
+ android:networkSecurityConfig="@xml/network_security_config">
5
+ </application>
4
6
  </manifest>
@@ -94,7 +94,7 @@ class ReaderViewModel(
94
94
  private val publication: Publication,
95
95
  private val initialLocation: Locator?
96
96
  ) : ViewModelProvider.NewInstanceFactory() {
97
- override fun <T : ViewModel?> create(modelClass: Class<T>): T =
97
+ override fun <T : ViewModel> create(modelClass: Class<T>): T =
98
98
  modelClass
99
99
  .getDeclaredConstructor(
100
100
  Publication::class.java,
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <network-security-config>
3
+ <domain-config cleartextTrafficPermitted="true">
4
+ <!--
5
+ Required with r2-navigator-kotlin
6
+ Used to serve a publication's resources from the local HTTP server
7
+ -->
8
+ <domain includeSubdomains="false">127.0.0.1</domain>
9
+ <domain includeSubdomains="false">localhost</domain>
10
+ </domain-config>
11
+ </network-security-config>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-readium",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A react-native wrapper for https://readium.org/",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",