@instaread-co/react-native-instaread-sdk 1.3.4 → 1.3.5
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 +21 -44
- package/ios/Frameworks/InstareadSDK.xcframework/Info.plist +44 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Headers/InstareadSDK-Swift.h +392 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/InstareadSDK +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64/InstareadSDK.framework/PrivacyInfo.xcprivacy +40 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Headers/InstareadSDK-Swift.h +780 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/InstareadSDK +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/InstareadSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +42 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/InstareadSDK.xcframework/ios-arm64_x86_64-simulator/InstareadSDK.framework/PrivacyInfo.xcprivacy +40 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
# react-native-instaread-sdk
|
|
1
|
+
# @instaread-co/react-native-instaread-sdk
|
|
2
2
|
|
|
3
3
|
Audio player for article screens in React Native, on iOS and Android. It hosts the native
|
|
4
|
-
InstareadSDK, which renders Instaread's real web player inside a WebView —
|
|
5
|
-
behaves exactly like the web player — publishes it to the lock screen (and the notification
|
|
4
|
+
InstareadSDK, which renders Instaread's real web player inside a WebView — publishes it to the lock screen (and the notification
|
|
6
5
|
shade on Android), and shows a floating mini player above your app while something plays.
|
|
7
6
|
|
|
8
|
-
- **Same player as the web.** Nothing is re-implemented in JavaScript, and there is no
|
|
9
|
-
`react-native-webview` dependency.
|
|
10
|
-
- **Read-only.** It plays audio that already exists for an article. It never triggers audio
|
|
11
|
-
generation.
|
|
12
|
-
- **Server-driven.** Player design, colours and whether the mini player is on come from the
|
|
13
|
-
server per publication, so most changes need no app release.
|
|
14
7
|
- **Both platforms, one API.** The same JavaScript runs on iOS and Android, and on both Android
|
|
15
8
|
architectures (New and old/Paper).
|
|
16
9
|
|
|
@@ -38,32 +31,29 @@ grant it. Without it, playback stops and the lock screen goes empty as soon as t
|
|
|
38
31
|
|
|
39
32
|
## Install
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
The native SDK (the iOS xcframework and the Android library) ships inside the package — nothing
|
|
35
|
+
else to download.
|
|
43
36
|
|
|
44
|
-
1.
|
|
45
|
-
2. Add it as a dependency:
|
|
37
|
+
1. Add the dependency:
|
|
46
38
|
|
|
47
39
|
```sh
|
|
48
|
-
npm install
|
|
49
|
-
# yarn: yarn add
|
|
40
|
+
npm install @instaread-co/react-native-instaread-sdk
|
|
41
|
+
# yarn: yarn add @instaread-co/react-native-instaread-sdk
|
|
50
42
|
```
|
|
51
43
|
|
|
52
|
-
|
|
44
|
+
2. Install pods:
|
|
53
45
|
|
|
54
46
|
```sh
|
|
55
47
|
cd ios && pod install
|
|
56
48
|
```
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
To verify the download, run `shasum -a 256 -c react-native-instaread-sdk-<version>.sha256` next to the zip. It prints `OK`.
|
|
50
|
+
3. iOS: add `audio` to `UIBackgroundModes` (above), then rebuild.
|
|
51
|
+
4. Android: nothing else. Rebuild the app.
|
|
62
52
|
|
|
63
53
|
## Use
|
|
64
54
|
|
|
65
55
|
```tsx
|
|
66
|
-
import { InstareadPlayer, InstareadPlayerView } from 'react-native-instaread-sdk';
|
|
56
|
+
import { InstareadPlayer, InstareadPlayerView } from '@instaread-co/react-native-instaread-sdk';
|
|
67
57
|
|
|
68
58
|
// Once, at app start — before anything renders.
|
|
69
59
|
InstareadPlayer.configure('yourslug');
|
|
@@ -98,9 +88,6 @@ loader, then the player. It never scrolls on its own, so place it inside your ar
|
|
|
98
88
|
on a slow connection that would have come through fine a moment later. It never fires once
|
|
99
89
|
`onReady` has.
|
|
100
90
|
|
|
101
|
-
There is deliberately no `onPlay`/`onPause`/`onEnded`/analytics hook: what happens inside the
|
|
102
|
-
player, and the mini player's own behaviour, are not exposed — see *How it behaves* below.
|
|
103
|
-
|
|
104
91
|
## How it behaves
|
|
105
92
|
|
|
106
93
|
- **`publication`** is your Instaread slug. It must match exactly, and Instaread must have set it
|
|
@@ -112,13 +99,17 @@ player, and the mini player's own behaviour, are not exposed — see *How it beh
|
|
|
112
99
|
|
|
113
100
|
## Server-side settings
|
|
114
101
|
|
|
115
|
-
|
|
102
|
+
The player's look and the mini player are configured per publication from an Instaread dashboard,
|
|
103
|
+
not in your app — which is why they can change without an app release. Through that setup an admin
|
|
104
|
+
can:
|
|
116
105
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
106
|
+
- **Player design** — choose the inline player's visual style.
|
|
107
|
+
- **Mini player** — enable or disable the floating mini player. It is **off by default**, which is
|
|
108
|
+
the usual reason a mini player never appears.
|
|
109
|
+
- **Mini player height** — adjust how far the mini bar sits above the bottom, so it clears your
|
|
110
|
+
app's bottom UI (for example React Navigation's bottom tabs).
|
|
111
|
+
|
|
112
|
+
Ask Instaread to adjust any of these for your publication.
|
|
122
113
|
|
|
123
114
|
## Privacy
|
|
124
115
|
|
|
@@ -127,20 +118,6 @@ It collects an anonymous device ID (a random UUID kept in the Keychain, not the
|
|
|
127
118
|
and playback interactions, for analytics and app functionality, not linked to identity and not
|
|
128
119
|
used for tracking. Your own App Store privacy label is still yours to fill in.
|
|
129
120
|
|
|
130
|
-
## Troubleshooting
|
|
131
|
-
|
|
132
|
-
| Symptom | Likely cause |
|
|
133
|
-
|---|---|
|
|
134
|
-
| Nothing shows | Wrong `publication` slug, or not enabled for the app SDK. Check that `configure` ran before the first `InstareadPlayerView` |
|
|
135
|
-
| Player works, no mini player | `mobile_is_floating_player_enabled` is off for the publication |
|
|
136
|
-
| Audio stops when the screen locks (iOS) | `UIBackgroundModes` → `audio` missing from your `Info.plist` |
|
|
137
|
-
| No notification or lock-screen card (Android 13+) | Your app has not requested `POST_NOTIFICATIONS` |
|
|
138
|
-
| Mini player covers your bottom tab bar | It is not a native `UITabBar`; ask Instaread to set `mobile_mini_player_bottom_height` |
|
|
139
|
-
| `pod install` can't find `InstareadReactNative` | The folder was unzipped outside your project, or `npm install` wasn't re-run after moving it |
|
|
140
|
-
|
|
141
|
-
In a Debug build the native SDK prints reasons prefixed `InstareadSDK:` — to the Xcode console on
|
|
142
|
-
iOS, to logcat on Android. A release build prints nothing.
|
|
143
|
-
|
|
144
121
|
## License
|
|
145
122
|
|
|
146
123
|
Proprietary. See `LICENSE`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>InstareadSDK.framework/InstareadSDK</string>
|
|
10
|
+
<key>LibraryIdentifier</key>
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
|
+
<key>LibraryPath</key>
|
|
13
|
+
<string>InstareadSDK.framework</string>
|
|
14
|
+
<key>SupportedArchitectures</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>arm64</string>
|
|
17
|
+
</array>
|
|
18
|
+
<key>SupportedPlatform</key>
|
|
19
|
+
<string>ios</string>
|
|
20
|
+
</dict>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>BinaryPath</key>
|
|
23
|
+
<string>InstareadSDK.framework/InstareadSDK</string>
|
|
24
|
+
<key>LibraryIdentifier</key>
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
26
|
+
<key>LibraryPath</key>
|
|
27
|
+
<string>InstareadSDK.framework</string>
|
|
28
|
+
<key>SupportedArchitectures</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
32
|
+
</array>
|
|
33
|
+
<key>SupportedPlatform</key>
|
|
34
|
+
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
|
+
</dict>
|
|
38
|
+
</array>
|
|
39
|
+
<key>CFBundlePackageType</key>
|
|
40
|
+
<string>XFWK</string>
|
|
41
|
+
<key>XCFrameworkFormatVersion</key>
|
|
42
|
+
<string>1.0</string>
|
|
43
|
+
</dict>
|
|
44
|
+
</plist>
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
#if 0
|
|
2
|
+
#elif defined(__arm64__) && __arm64__
|
|
3
|
+
// Generated by Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
4
|
+
#ifndef INSTAREADSDK_SWIFT_H
|
|
5
|
+
#define INSTAREADSDK_SWIFT_H
|
|
6
|
+
#pragma clang diagnostic push
|
|
7
|
+
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
8
|
+
|
|
9
|
+
#if !defined(__has_include)
|
|
10
|
+
# define __has_include(x) 0
|
|
11
|
+
#endif
|
|
12
|
+
#if !defined(__has_attribute)
|
|
13
|
+
# define __has_attribute(x) 0
|
|
14
|
+
#endif
|
|
15
|
+
#if !defined(__has_feature)
|
|
16
|
+
# define __has_feature(x) 0
|
|
17
|
+
#endif
|
|
18
|
+
#if !defined(__has_warning)
|
|
19
|
+
# define __has_warning(x) 0
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#if __has_include(<swift/objc-prologue.h>)
|
|
23
|
+
# include <swift/objc-prologue.h>
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#pragma clang diagnostic ignored "-Wauto-import"
|
|
27
|
+
#if defined(__OBJC__)
|
|
28
|
+
#include <Foundation/Foundation.h>
|
|
29
|
+
#endif // defined(__OBJC__)
|
|
30
|
+
#if defined(__cplusplus)
|
|
31
|
+
#include <cstdint>
|
|
32
|
+
#include <cstddef>
|
|
33
|
+
#include <cstdbool>
|
|
34
|
+
#include <cstring>
|
|
35
|
+
#include <stdlib.h>
|
|
36
|
+
#include <new>
|
|
37
|
+
#include <type_traits>
|
|
38
|
+
#else
|
|
39
|
+
#include <stdint.h>
|
|
40
|
+
#include <stddef.h>
|
|
41
|
+
#include <stdbool.h>
|
|
42
|
+
#include <string.h>
|
|
43
|
+
#endif
|
|
44
|
+
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
47
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
48
|
+
# include <ptrauth.h>
|
|
49
|
+
#else
|
|
50
|
+
#pragma clang diagnostic push
|
|
51
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
52
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
53
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
54
|
+
# endif
|
|
55
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
56
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
57
|
+
# endif
|
|
58
|
+
#pragma clang diagnostic pop
|
|
59
|
+
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#if !defined(SWIFT_TYPEDEFS)
|
|
64
|
+
# define SWIFT_TYPEDEFS 1
|
|
65
|
+
# if __has_include(<uchar.h>)
|
|
66
|
+
# include <uchar.h>
|
|
67
|
+
# elif !defined(__cplusplus)
|
|
68
|
+
typedef unsigned char char8_t;
|
|
69
|
+
typedef uint_least16_t char16_t;
|
|
70
|
+
typedef uint_least32_t char32_t;
|
|
71
|
+
# endif
|
|
72
|
+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
73
|
+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
74
|
+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
75
|
+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
76
|
+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
77
|
+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
78
|
+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
79
|
+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
80
|
+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
81
|
+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
82
|
+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
83
|
+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
#if !defined(SWIFT_PASTE)
|
|
87
|
+
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
88
|
+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
89
|
+
#endif
|
|
90
|
+
#if !defined(SWIFT_METATYPE)
|
|
91
|
+
# define SWIFT_METATYPE(X) Class
|
|
92
|
+
#endif
|
|
93
|
+
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
94
|
+
# if __has_feature(objc_class_property)
|
|
95
|
+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
96
|
+
# else
|
|
97
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
98
|
+
# endif
|
|
99
|
+
#endif
|
|
100
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
101
|
+
# if __has_attribute(objc_runtime_name)
|
|
102
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
103
|
+
# else
|
|
104
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
105
|
+
# endif
|
|
106
|
+
#endif
|
|
107
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
108
|
+
# if __has_attribute(swift_name)
|
|
109
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
110
|
+
# else
|
|
111
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
112
|
+
# endif
|
|
113
|
+
#endif
|
|
114
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
115
|
+
# if __has_attribute(objc_method_family)
|
|
116
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
117
|
+
# else
|
|
118
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
119
|
+
# endif
|
|
120
|
+
#endif
|
|
121
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
122
|
+
# if __has_attribute(noescape)
|
|
123
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
124
|
+
# else
|
|
125
|
+
# define SWIFT_NOESCAPE
|
|
126
|
+
# endif
|
|
127
|
+
#endif
|
|
128
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
129
|
+
# if __has_attribute(ns_consumed)
|
|
130
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
131
|
+
# else
|
|
132
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
133
|
+
# endif
|
|
134
|
+
#endif
|
|
135
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
136
|
+
# if __has_attribute(warn_unused_result)
|
|
137
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
138
|
+
# else
|
|
139
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
140
|
+
# endif
|
|
141
|
+
#endif
|
|
142
|
+
#if !defined(SWIFT_NORETURN)
|
|
143
|
+
# if __has_attribute(noreturn)
|
|
144
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
145
|
+
# else
|
|
146
|
+
# define SWIFT_NORETURN
|
|
147
|
+
# endif
|
|
148
|
+
#endif
|
|
149
|
+
#if !defined(SWIFT_CLASS_EXTRA)
|
|
150
|
+
# define SWIFT_CLASS_EXTRA
|
|
151
|
+
#endif
|
|
152
|
+
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
153
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
154
|
+
#endif
|
|
155
|
+
#if !defined(SWIFT_ENUM_EXTRA)
|
|
156
|
+
# define SWIFT_ENUM_EXTRA
|
|
157
|
+
#endif
|
|
158
|
+
#if !defined(SWIFT_CLASS)
|
|
159
|
+
# if __has_attribute(objc_subclassing_restricted)
|
|
160
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
161
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
162
|
+
# else
|
|
163
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
164
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
165
|
+
# endif
|
|
166
|
+
#endif
|
|
167
|
+
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
168
|
+
# if __has_attribute(objc_class_stub)
|
|
169
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
170
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
171
|
+
# else
|
|
172
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
173
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
174
|
+
# endif
|
|
175
|
+
#endif
|
|
176
|
+
#if !defined(SWIFT_PROTOCOL)
|
|
177
|
+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
178
|
+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
179
|
+
#endif
|
|
180
|
+
#if !defined(SWIFT_EXTENSION)
|
|
181
|
+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
182
|
+
#endif
|
|
183
|
+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
184
|
+
# if __has_attribute(objc_designated_initializer)
|
|
185
|
+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
186
|
+
# else
|
|
187
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
188
|
+
# endif
|
|
189
|
+
#endif
|
|
190
|
+
#if !defined(SWIFT_ENUM_ATTR)
|
|
191
|
+
# if __has_attribute(enum_extensibility)
|
|
192
|
+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
193
|
+
# else
|
|
194
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
195
|
+
# endif
|
|
196
|
+
#endif
|
|
197
|
+
#if !defined(SWIFT_ENUM)
|
|
198
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
199
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
200
|
+
# if __has_feature(generalized_swift_name)
|
|
201
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
202
|
+
# else
|
|
203
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
204
|
+
# endif
|
|
205
|
+
# else
|
|
206
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
207
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
208
|
+
# endif
|
|
209
|
+
#endif
|
|
210
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
211
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
212
|
+
# define SWIFT_ENUM_TAG enum
|
|
213
|
+
# else
|
|
214
|
+
# define SWIFT_ENUM_TAG
|
|
215
|
+
# endif
|
|
216
|
+
#endif
|
|
217
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
218
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
219
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
220
|
+
# else
|
|
221
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
222
|
+
# endif
|
|
223
|
+
#endif
|
|
224
|
+
#if !defined(SWIFT_UNAVAILABLE)
|
|
225
|
+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
226
|
+
#endif
|
|
227
|
+
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
228
|
+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
229
|
+
#endif
|
|
230
|
+
#if !defined(SWIFT_AVAILABILITY)
|
|
231
|
+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
232
|
+
#endif
|
|
233
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
234
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
235
|
+
#endif
|
|
236
|
+
#if !defined(SWIFT_WEAK_IMPORT)
|
|
237
|
+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
238
|
+
#endif
|
|
239
|
+
#if !defined(SWIFT_DEPRECATED)
|
|
240
|
+
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
241
|
+
#endif
|
|
242
|
+
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
243
|
+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
244
|
+
#endif
|
|
245
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
246
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
247
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
248
|
+
# else
|
|
249
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
250
|
+
# endif
|
|
251
|
+
#endif
|
|
252
|
+
#if defined(__OBJC__)
|
|
253
|
+
#if !defined(IBSegueAction)
|
|
254
|
+
# define IBSegueAction
|
|
255
|
+
#endif
|
|
256
|
+
#endif
|
|
257
|
+
#if !defined(SWIFT_EXTERN)
|
|
258
|
+
# if defined(__cplusplus)
|
|
259
|
+
# define SWIFT_EXTERN extern "C"
|
|
260
|
+
# else
|
|
261
|
+
# define SWIFT_EXTERN extern
|
|
262
|
+
# endif
|
|
263
|
+
#endif
|
|
264
|
+
#if !defined(SWIFT_CALL)
|
|
265
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
266
|
+
#endif
|
|
267
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
268
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
269
|
+
#endif
|
|
270
|
+
#if !defined(SWIFT_CONTEXT)
|
|
271
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
272
|
+
#endif
|
|
273
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
274
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
275
|
+
#endif
|
|
276
|
+
#if defined(__cplusplus)
|
|
277
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
278
|
+
#else
|
|
279
|
+
# define SWIFT_NOEXCEPT
|
|
280
|
+
#endif
|
|
281
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
282
|
+
# if __has_attribute(always_inline)
|
|
283
|
+
# if __has_attribute(nodebug)
|
|
284
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
285
|
+
# else
|
|
286
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
287
|
+
# endif
|
|
288
|
+
# else
|
|
289
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
290
|
+
# endif
|
|
291
|
+
#endif
|
|
292
|
+
#if defined(_WIN32)
|
|
293
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
294
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
295
|
+
#endif
|
|
296
|
+
#else
|
|
297
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
298
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
299
|
+
#endif
|
|
300
|
+
#endif
|
|
301
|
+
#if !__has_feature(nullability)
|
|
302
|
+
# define _Nonnull
|
|
303
|
+
# define _Nullable
|
|
304
|
+
# define _Null_unspecified
|
|
305
|
+
#elif !defined(__OBJC__)
|
|
306
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
307
|
+
#endif
|
|
308
|
+
#if !__has_feature(nullability_nullable_result)
|
|
309
|
+
# define _Nullable_result _Nullable
|
|
310
|
+
#endif
|
|
311
|
+
#if __has_feature(objc_modules)
|
|
312
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
313
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
314
|
+
#endif
|
|
315
|
+
#endif
|
|
316
|
+
|
|
317
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
318
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
319
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
320
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
321
|
+
#endif
|
|
322
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
323
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
324
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
325
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
326
|
+
|
|
327
|
+
#if __has_attribute(external_source_symbol)
|
|
328
|
+
# pragma push_macro("any")
|
|
329
|
+
# undef any
|
|
330
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="InstareadSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
331
|
+
# pragma pop_macro("any")
|
|
332
|
+
#endif
|
|
333
|
+
|
|
334
|
+
#if defined(__cplusplus)
|
|
335
|
+
extern "C" {
|
|
336
|
+
#endif
|
|
337
|
+
|
|
338
|
+
#if defined(__cplusplus)
|
|
339
|
+
} // extern "C"
|
|
340
|
+
#endif
|
|
341
|
+
#if __has_attribute(external_source_symbol)
|
|
342
|
+
# pragma clang attribute pop
|
|
343
|
+
#endif
|
|
344
|
+
#if defined(__OBJC__)
|
|
345
|
+
#if __has_feature(objc_modules)
|
|
346
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
347
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
348
|
+
#endif
|
|
349
|
+
@import CoreFoundation;
|
|
350
|
+
@import UIKit;
|
|
351
|
+
#endif
|
|
352
|
+
|
|
353
|
+
#endif // defined(__OBJC__)
|
|
354
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
355
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
356
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
357
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
358
|
+
#endif
|
|
359
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
360
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
361
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
362
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
363
|
+
|
|
364
|
+
#if __has_attribute(external_source_symbol)
|
|
365
|
+
# pragma push_macro("any")
|
|
366
|
+
# undef any
|
|
367
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="InstareadSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
368
|
+
# pragma pop_macro("any")
|
|
369
|
+
#endif
|
|
370
|
+
|
|
371
|
+
#if defined(__OBJC__)
|
|
372
|
+
|
|
373
|
+
@class NSCoder;
|
|
374
|
+
SWIFT_CLASS("_TtC12InstareadSDK19InstareadPlayerView")
|
|
375
|
+
@interface InstareadPlayerView : UIView
|
|
376
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE;
|
|
377
|
+
@property (nonatomic, readonly) CGSize intrinsicContentSize;
|
|
378
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
379
|
+
@end
|
|
380
|
+
|
|
381
|
+
#endif // defined(__OBJC__)
|
|
382
|
+
#if __has_attribute(external_source_symbol)
|
|
383
|
+
# pragma clang attribute pop
|
|
384
|
+
#endif
|
|
385
|
+
#if defined(__cplusplus)
|
|
386
|
+
#endif
|
|
387
|
+
#pragma clang diagnostic pop
|
|
388
|
+
#endif
|
|
389
|
+
|
|
390
|
+
#else
|
|
391
|
+
#error unsupported Swift architecture
|
|
392
|
+
#endif
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name InstareadSDK
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
|
+
import Combine
|
|
6
|
+
import Foundation
|
|
7
|
+
import Security
|
|
8
|
+
import Swift
|
|
9
|
+
import SwiftUI
|
|
10
|
+
import UIKit
|
|
11
|
+
@preconcurrency import WebKit
|
|
12
|
+
import _Concurrency
|
|
13
|
+
import _StringProcessing
|
|
14
|
+
import _SwiftConcurrencyShims
|
|
15
|
+
import _WebKit_SwiftUI
|
|
16
|
+
extension SwiftUICore.View {
|
|
17
|
+
@_Concurrency.MainActor @preconcurrency public func instareadMiniPlayer(publication: Swift.String) -> some SwiftUICore.View
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
public enum InstareadPlayer {
|
|
21
|
+
@available(iOSApplicationExtension, unavailable)
|
|
22
|
+
@_Concurrency.MainActor public static func configure(publication: Swift.String)
|
|
23
|
+
}
|
|
24
|
+
@objc @_Concurrency.MainActor final public class InstareadPlayerView : UIKit.UIView {
|
|
25
|
+
@_Concurrency.MainActor convenience public init(articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
26
|
+
@_Concurrency.MainActor public init(publication: Swift.String, articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
27
|
+
@available(*, unavailable)
|
|
28
|
+
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
29
|
+
@_Concurrency.MainActor @objc override final public var intrinsicContentSize: CoreFoundation.CGSize {
|
|
30
|
+
@objc get
|
|
31
|
+
}
|
|
32
|
+
@objc deinit
|
|
33
|
+
}
|
|
34
|
+
@_Concurrency.MainActor @preconcurrency public struct WebInlinePlayerView : SwiftUICore.View {
|
|
35
|
+
@_Concurrency.MainActor @preconcurrency public init(publication: Swift.String, articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
36
|
+
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
37
|
+
get
|
|
38
|
+
}
|
|
39
|
+
public typealias Body = @_opaqueReturnTypeOf("$s12InstareadSDK19WebInlinePlayerViewV4bodyQrvp", 0) __
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
extension InstareadSDK.WebInlinePlayerView : Swift.Sendable {}
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name InstareadSDK
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
|
+
import Combine
|
|
6
|
+
import Foundation
|
|
7
|
+
import Security
|
|
8
|
+
import Swift
|
|
9
|
+
import SwiftUI
|
|
10
|
+
import UIKit
|
|
11
|
+
@preconcurrency import WebKit
|
|
12
|
+
import _Concurrency
|
|
13
|
+
import _StringProcessing
|
|
14
|
+
import _SwiftConcurrencyShims
|
|
15
|
+
import _WebKit_SwiftUI
|
|
16
|
+
extension SwiftUICore.View {
|
|
17
|
+
@_Concurrency.MainActor @preconcurrency public func instareadMiniPlayer(publication: Swift.String) -> some SwiftUICore.View
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
public enum InstareadPlayer {
|
|
21
|
+
@available(iOSApplicationExtension, unavailable)
|
|
22
|
+
@_Concurrency.MainActor public static func configure(publication: Swift.String)
|
|
23
|
+
}
|
|
24
|
+
@objc @_Concurrency.MainActor final public class InstareadPlayerView : UIKit.UIView {
|
|
25
|
+
@_Concurrency.MainActor convenience public init(articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
26
|
+
@_Concurrency.MainActor public init(publication: Swift.String, articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
27
|
+
@available(*, unavailable)
|
|
28
|
+
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
29
|
+
@_Concurrency.MainActor @objc override final public var intrinsicContentSize: CoreFoundation.CGSize {
|
|
30
|
+
@objc get
|
|
31
|
+
}
|
|
32
|
+
@objc deinit
|
|
33
|
+
}
|
|
34
|
+
@_Concurrency.MainActor @preconcurrency public struct WebInlinePlayerView : SwiftUICore.View {
|
|
35
|
+
@_Concurrency.MainActor @preconcurrency public init(publication: Swift.String, articleUrl: Swift.String, dark: Swift.Bool = false)
|
|
36
|
+
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
37
|
+
get
|
|
38
|
+
}
|
|
39
|
+
public typealias Body = @_opaqueReturnTypeOf("$s12InstareadSDK19WebInlinePlayerViewV4bodyQrvp", 0) __
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
extension InstareadSDK.WebInlinePlayerView : Swift.Sendable {}
|