@youversion/platform-react-native 0.7.2 → 0.8.0
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/.releaserc.json +1 -0
- package/AGENTS.md +86 -0
- package/CHANGELOG.md +17 -0
- package/android/build.gradle +16 -2
- package/android/src/main/java/com/youversion/reactnativesdk/RNSignInWithYouVersionButtonModule.kt +15 -0
- package/android/src/main/java/com/youversion/reactnativesdk/RNYouVersionPlatformModule.kt +99 -0
- package/android/src/main/java/com/youversion/reactnativesdk/api/YVPBibleApi.kt +32 -0
- package/android/src/main/java/com/youversion/reactnativesdk/api/YVPHighlightsApi.kt +44 -0
- package/android/src/main/java/com/youversion/reactnativesdk/api/YVPLanguagesApi.kt +11 -0
- package/android/src/main/java/com/youversion/reactnativesdk/api/YVPRecords.kt +185 -0
- package/android/src/main/java/com/youversion/reactnativesdk/api/YVPVotdApi.kt +12 -0
- package/android/src/main/java/com/youversion/reactnativesdk/views/YVPSignInWithYouVersionButton.kt +76 -0
- package/build/api/bible.d.ts +4 -4
- package/build/api/bible.d.ts.map +1 -1
- package/build/api/bible.js +2 -2
- package/build/api/bible.js.map +1 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/users.d.ts +1 -2
- package/build/api/users.d.ts.map +1 -1
- package/build/api/users.js +2 -3
- package/build/api/users.js.map +1 -1
- package/build/native.d.ts +3 -3
- package/build/native.d.ts.map +1 -1
- package/build/native.js.map +1 -1
- package/build/types.d.ts +33 -23
- package/build/types.d.ts.map +1 -1
- package/build/types.js.map +1 -1
- package/dist/{youversion-platform-react-native-0.7.2.tgz → youversion-platform-react-native-0.8.0.tgz} +0 -0
- package/expo-module.config.json +5 -2
- package/ios/APIs/YVPBibleAPI.swift +18 -14
- package/ios/APIs/YVPLanguagesAPI.swift +2 -2
- package/ios/Views/YVPBibleTextView.swift +5 -6
- package/ios/YVPAuthAPI.swift +9 -16
- package/ios/YouVersionReactNative.podspec +4 -4
- package/mocks/RNYouVersionPlatform.ts +7 -7
- package/package.json +2 -3
- package/src/api/bible.ts +4 -4
- package/src/api/users.ts +2 -3
- package/src/native.ts +3 -3
- package/src/types.ts +42 -29
package/build/api/bible.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Module } from "../native";
|
|
2
2
|
export const BibleAPI = {
|
|
3
3
|
/**
|
|
4
|
-
* Retrieves a list of Bible versions available for a specified language
|
|
4
|
+
* Retrieves a list of Bible versions available for a specified language tag (like "eng").
|
|
5
5
|
*
|
|
6
6
|
* @param languageTag - An optional language code per BCP 47 for filtering available Bible versions. If `nil`
|
|
7
7
|
* the function returns versions for all languages.
|
|
@@ -22,7 +22,7 @@ export const BibleAPI = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves the content of a single Bible chapter from the server as an HTML string.
|
|
24
24
|
*
|
|
25
|
-
* @param bibleReference - A {@link
|
|
25
|
+
* @param bibleReference - A {@link BibleReferenceBase} object specifying the reference to retrieve.
|
|
26
26
|
* @returns The chapter content as an HTML string.
|
|
27
27
|
*/
|
|
28
28
|
getChapter(bibleReference) {
|
package/build/api/bible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bible.js","sourceRoot":"","sources":["../../src/api/bible.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;;;;;;OAMG;IACH,WAAW,CAAC,WAAoB;QAC9B,OAAO,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,SAAiB;QAC1B,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"bible.js","sourceRoot":"","sources":["../../src/api/bible.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;;;;;;OAMG;IACH,WAAW,CAAC,WAAoB;QAC9B,OAAO,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,SAAiB;QAC1B,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,cAAkC;QAC3C,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { Module } from \"../native\";\nimport { BibleReferenceBase, BibleVersion } from \"../types\";\n\nexport const BibleAPI = {\n /**\n * Retrieves a list of Bible versions available for a specified language tag (like \"eng\").\n *\n * @param languageTag - An optional language code per BCP 47 for filtering available Bible versions. If `nil`\n * the function returns versions for all languages.\n * @returns An array of {@link BibleVersion} objects.\n */\n getVersions(languageTag?: string): Promise<Omit<BibleVersion, \"books\">[]> {\n return Module.versions(languageTag);\n },\n\n /**\n * Retrieves a single Bible version by its unique identifier.\n *\n * @param versionId - The id of the Bible version\n * @returns A {@link BibleVersion} object\n */\n getVersion(versionId: number): Promise<BibleVersion> {\n return Module.version(versionId);\n },\n\n /**\n * Retrieves the content of a single Bible chapter from the server as an HTML string.\n *\n * @param bibleReference - A {@link BibleReferenceBase} object specifying the reference to retrieve.\n * @returns The chapter content as an HTML string.\n */\n getChapter(bibleReference: BibleReferenceBase): Promise<string> {\n return Module.chapter(bibleReference);\n },\n};\n"]}
|
package/build/api/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const YouVersionAPI: {
|
|
|
2
2
|
Users: {
|
|
3
3
|
signIn: (permissions?: import("..").SignInWithYouVersionPermission[]) => Promise<import("..").SignInWithYouVersionResult>;
|
|
4
4
|
signOut(): Promise<void>;
|
|
5
|
-
userInfo(
|
|
5
|
+
userInfo(): Promise<import("..").YouVersionUserInfo>;
|
|
6
6
|
};
|
|
7
7
|
VOTD: {
|
|
8
8
|
verseOfTheDay({ dayOfYear }?: {
|
|
@@ -12,7 +12,7 @@ export declare const YouVersionAPI: {
|
|
|
12
12
|
Bible: {
|
|
13
13
|
getVersions(languageTag?: string): Promise<Omit<import("..").BibleVersion, "books">[]>;
|
|
14
14
|
getVersion(versionId: number): Promise<import("..").BibleVersion>;
|
|
15
|
-
getChapter(bibleReference: import("..").
|
|
15
|
+
getChapter(bibleReference: import("..").BibleReferenceBase): Promise<string>;
|
|
16
16
|
};
|
|
17
17
|
Languages: {
|
|
18
18
|
getLanguages(country?: string): Promise<import("..").LanguageOverview[]>;
|
package/build/api/users.d.ts
CHANGED
|
@@ -12,9 +12,8 @@ export declare const UsersAPI: {
|
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves user information for the authenticated user using the provided access token.
|
|
14
14
|
*
|
|
15
|
-
* @param accessToken - Optionally provide an accessToken, or use the one stored in the SDK after the user signs in
|
|
16
15
|
* @returns A promise that resolves to the user information as a {@link YouVersionUserInfo} object.
|
|
17
16
|
*/
|
|
18
|
-
userInfo(
|
|
17
|
+
userInfo(): Promise<YouVersionUserInfo>;
|
|
19
18
|
};
|
|
20
19
|
//# sourceMappingURL=users.d.ts.map
|
package/build/api/users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/api/users.ts"],"names":[],"mappings":"AACA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,QAAQ;IACnB;;;;;OAKG;2BAEY,8BAA8B,EAAE,KAC5C,OAAO,CAAC,0BAA0B,CAAC;IAItC,iFAAiF;eACtE,OAAO,CAAC,IAAI,CAAC;IAIxB
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/api/users.ts"],"names":[],"mappings":"AACA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,QAAQ;IACnB;;;;;OAKG;2BAEY,8BAA8B,EAAE,KAC5C,OAAO,CAAC,0BAA0B,CAAC;IAItC,iFAAiF;eACtE,OAAO,CAAC,IAAI,CAAC;IAIxB;;;;OAIG;gBACS,OAAO,CAAC,kBAAkB,CAAC;CAGxC,CAAC"}
|
package/build/api/users.js
CHANGED
|
@@ -16,11 +16,10 @@ export const UsersAPI = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Retrieves user information for the authenticated user using the provided access token.
|
|
18
18
|
*
|
|
19
|
-
* @param accessToken - Optionally provide an accessToken, or use the one stored in the SDK after the user signs in
|
|
20
19
|
* @returns A promise that resolves to the user information as a {@link YouVersionUserInfo} object.
|
|
21
20
|
*/
|
|
22
|
-
userInfo(
|
|
23
|
-
return Module.userInfo(
|
|
21
|
+
userInfo() {
|
|
22
|
+
return Module.userInfo();
|
|
24
23
|
},
|
|
25
24
|
};
|
|
26
25
|
//# sourceMappingURL=users.js.map
|
package/build/api/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/api/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;;;;;OAKG;IACH,MAAM,EAAE,CACN,cAAgD,EAAE,EACb,EAAE;QACvC,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC;IAED,iFAAiF;IACjF,OAAO;QACL,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/api/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOnC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;;;;;OAKG;IACH,MAAM,EAAE,CACN,cAAgD,EAAE,EACb,EAAE;QACvC,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC;IAED,iFAAiF;IACjF,OAAO;QACL,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC","sourcesContent":["import { Module } from \"../native\";\nimport {\n SignInWithYouVersionPermission,\n SignInWithYouVersionResult,\n YouVersionUserInfo,\n} from \"../types\";\n\nexport const UsersAPI = {\n /**\n * Presents the YouVersion login flow to the user and returns the login result upon completion.\n *\n * @param permissions - An array of permissions to request during sign-in.\n * @returns A promise that resolves to the login result as a {@link SignInWithYouVersionResult} object.\n */\n signIn: (\n permissions: SignInWithYouVersionPermission[] = [],\n ): Promise<SignInWithYouVersionResult> => {\n return Module.signIn(permissions);\n },\n\n /** Signs out the current user by clearing the access token from local storage */\n signOut(): Promise<void> {\n return Module.signOut();\n },\n\n /**\n * Retrieves user information for the authenticated user using the provided access token.\n *\n * @returns A promise that resolves to the user information as a {@link YouVersionUserInfo} object.\n */\n userInfo(): Promise<YouVersionUserInfo> {\n return Module.userInfo();\n },\n};\n"]}
|
package/build/native.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NativeModule } from "expo";
|
|
2
|
-
import {
|
|
2
|
+
import { BibleReferenceBase, BibleVersion, HighlightResponse, LanguageOverview, SignInWithYouVersionResult, YouVersionUserInfo, YouVersionVerseOfTheDay } from "./types";
|
|
3
3
|
declare class RNYouVersionPlatformModule extends NativeModule {
|
|
4
4
|
configure(appKey: string): void;
|
|
5
5
|
setApiHost(apiHost: string): void;
|
|
6
6
|
signIn(permissions: string[]): Promise<SignInWithYouVersionResult>;
|
|
7
7
|
signOut(): Promise<void>;
|
|
8
|
-
userInfo(
|
|
8
|
+
userInfo(): Promise<YouVersionUserInfo>;
|
|
9
9
|
verseOfTheDay(dayOfYear: number): Promise<YouVersionVerseOfTheDay>;
|
|
10
10
|
createHighlight(versionId: number, passageId: string, color: string): Promise<boolean>;
|
|
11
11
|
getHighlights(versionId: number, passageId: string): Promise<HighlightResponse[]>;
|
|
@@ -14,7 +14,7 @@ declare class RNYouVersionPlatformModule extends NativeModule {
|
|
|
14
14
|
languages(country?: string): Promise<LanguageOverview[]>;
|
|
15
15
|
versions(languageTag?: string): Promise<BibleVersion[]>;
|
|
16
16
|
version(versionId: number): Promise<BibleVersion>;
|
|
17
|
-
chapter(bibleReference:
|
|
17
|
+
chapter(bibleReference: BibleReferenceBase): Promise<string>;
|
|
18
18
|
getAccessToken(): string | null;
|
|
19
19
|
}
|
|
20
20
|
export declare const Module: RNYouVersionPlatformModule;
|
package/build/native.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AAEzD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AAEzD,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,OAAO,0BAA2B,SAAQ,YAAY;IAC3D,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAE/B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAEjC,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAElE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAExB,QAAQ,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAEvC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAElE,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC;IAEnB,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAE/B,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC;IAEnB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAEvE,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAExD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAEvD,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAEjD,OAAO,CAAC,cAAc,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAE5D,cAAc,IAAI,MAAM,GAAG,IAAI;CAChC;AAED,eAAO,MAAM,MAAM,4BAElB,CAAC"}
|
package/build/native.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAuDzD,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CACvC,sBAAsB,CACvB,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from \"expo\";\n\nimport {\n
|
|
1
|
+
{"version":3,"file":"native.js","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAuDzD,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CACvC,sBAAsB,CACvB,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from \"expo\";\n\nimport {\n BibleReferenceBase,\n BibleVersion,\n HighlightResponse,\n LanguageOverview,\n SignInWithYouVersionResult,\n YouVersionUserInfo,\n YouVersionVerseOfTheDay,\n} from \"./types\";\n\ndeclare class RNYouVersionPlatformModule extends NativeModule {\n configure(appKey: string): void;\n\n setApiHost(apiHost: string): void;\n\n signIn(permissions: string[]): Promise<SignInWithYouVersionResult>;\n\n signOut(): Promise<void>;\n\n userInfo(): Promise<YouVersionUserInfo>;\n\n verseOfTheDay(dayOfYear: number): Promise<YouVersionVerseOfTheDay>;\n\n createHighlight(\n versionId: number,\n passageId: string,\n color: string,\n ): Promise<boolean>;\n\n getHighlights(\n versionId: number,\n passageId: string,\n ): Promise<HighlightResponse[]>;\n\n updateHighlight(\n versionId: number,\n passageId: string,\n color: string,\n ): Promise<boolean>;\n\n deleteHighlight(versionId: number, passageId: string): Promise<boolean>;\n\n languages(country?: string): Promise<LanguageOverview[]>;\n\n versions(languageTag?: string): Promise<BibleVersion[]>;\n\n version(versionId: number): Promise<BibleVersion>;\n\n chapter(bibleReference: BibleReferenceBase): Promise<string>;\n\n getAccessToken(): string | null;\n}\n\nexport const Module = requireNativeModule<RNYouVersionPlatformModule>(\n \"RNYouVersionPlatform\",\n);\n"]}
|
package/build/types.d.ts
CHANGED
|
@@ -8,13 +8,14 @@ export type SignInWithYouVersionResult = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
profilePicture?: string;
|
|
10
10
|
email?: string;
|
|
11
|
+
idToken?: string;
|
|
11
12
|
};
|
|
12
|
-
export type SignInWithYouVersionPermission = "
|
|
13
|
+
export type SignInWithYouVersionPermission = "openid" | "email" | "profile";
|
|
13
14
|
export interface YouVersionUserInfo {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
name?: string;
|
|
16
|
+
email?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
profilePicture?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface YouVersionVerseOfTheDay {
|
|
20
21
|
passageId: string;
|
|
@@ -70,8 +71,8 @@ export interface BibleTextOptions {
|
|
|
70
71
|
*/
|
|
71
72
|
renderVerseNumbers?: boolean | null | undefined;
|
|
72
73
|
}
|
|
73
|
-
export type BibleTextFootnoteMode = "none" | "inline" | "marker";
|
|
74
|
-
interface BibleReferenceBase {
|
|
74
|
+
export type BibleTextFootnoteMode = "none" | "inline" | "marker" | "letters" | "image";
|
|
75
|
+
export interface BibleReferenceBase {
|
|
75
76
|
/** The ID of the Bible version */
|
|
76
77
|
versionId: number;
|
|
77
78
|
/** The book identifier */
|
|
@@ -110,11 +111,9 @@ export type BibleReference = BibleReferenceVerseRange | BibleReferenceChapter |
|
|
|
110
111
|
export interface OnBibleTextPressEvent {
|
|
111
112
|
/** A reference to the Bible verse that was pressed */
|
|
112
113
|
bibleReference: BibleReferenceVerse;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
y: number;
|
|
117
|
-
};
|
|
114
|
+
urlScheme: string;
|
|
115
|
+
/** Not implemented yet */
|
|
116
|
+
footnotes: unknown[];
|
|
118
117
|
}
|
|
119
118
|
export interface LanguageOverview {
|
|
120
119
|
/**
|
|
@@ -181,7 +180,7 @@ export interface LanguageOverview {
|
|
|
181
180
|
*
|
|
182
181
|
* @example 111
|
|
183
182
|
*/
|
|
184
|
-
|
|
183
|
+
defaultBibleId?: number;
|
|
185
184
|
}
|
|
186
185
|
export interface HighlightResponse {
|
|
187
186
|
id?: string;
|
|
@@ -225,13 +224,13 @@ export interface BibleVersion {
|
|
|
225
224
|
*
|
|
226
225
|
* @example "<p>Biblica is the worldwide publisher and translation sponsor of the New International Version—one of the most widely read contemporary English versions of the Bible. </p> <p>At Biblica, we believe that with God, all things are possible. Partnering with other ministries and people like you, we are reaching the world with God’s Word, providing Bibles that are easier to understand and faster to receive. When God’s Word is put into someone’s hands, it has the power to change everything. </p> <p>To learn more, visit <a href="https://www.biblica.com/privacy-policy/">biblica.com</a> and <a href="http://facebook.com/Biblica">facebook.com/Biblica</a>.</p> <p> </p>"
|
|
227
226
|
*/
|
|
228
|
-
|
|
227
|
+
promotionalContent?: string;
|
|
229
228
|
/**
|
|
230
229
|
* Short version of the copyright text provided by the publisher for the given Bible version.
|
|
231
230
|
*
|
|
232
231
|
* @example "The Holy Bible, New International Version® NIV® Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.® Used by Permission of Biblica, Inc.® All rights reserved worldwide."
|
|
233
232
|
*/
|
|
234
|
-
|
|
233
|
+
copyright?: string;
|
|
235
234
|
/**
|
|
236
235
|
* BCP47 canonical language tag for this Bible version
|
|
237
236
|
*
|
|
@@ -272,14 +271,16 @@ export interface BibleVersion {
|
|
|
272
271
|
* @example "ltr"
|
|
273
272
|
*/
|
|
274
273
|
textDirection?: string;
|
|
274
|
+
/** uuid */
|
|
275
|
+
organizationId?: string;
|
|
275
276
|
}
|
|
276
277
|
export interface BibleBook {
|
|
277
278
|
/**
|
|
278
|
-
*
|
|
279
|
+
* Book identifier
|
|
279
280
|
*
|
|
280
281
|
* @example "GEN"
|
|
281
282
|
*/
|
|
282
|
-
|
|
283
|
+
id?: string;
|
|
283
284
|
/**
|
|
284
285
|
* Book name abbreviation if provided by the publisher
|
|
285
286
|
*
|
|
@@ -292,17 +293,27 @@ export interface BibleBook {
|
|
|
292
293
|
* @example "Genesis"
|
|
293
294
|
*/
|
|
294
295
|
title?: string;
|
|
295
|
-
|
|
296
|
+
/**
|
|
297
|
+
* Full book title if available
|
|
298
|
+
*
|
|
299
|
+
* @example "The Book of Genesis"
|
|
300
|
+
*/
|
|
301
|
+
fullTitle?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates if this is Old Testament, New Testament, or Deuterocanonical
|
|
304
|
+
*
|
|
305
|
+
* @example "new_testament"
|
|
306
|
+
*/
|
|
307
|
+
canon?: "new_testament" | "old_testament" | "deuterocanon";
|
|
296
308
|
chapters?: BibleChapter[];
|
|
297
309
|
}
|
|
298
310
|
export interface BibleChapter {
|
|
299
311
|
/**
|
|
300
|
-
*
|
|
312
|
+
* Chapter identifier based off the USFM reference
|
|
301
313
|
*
|
|
302
|
-
* @example
|
|
314
|
+
* @example 1
|
|
303
315
|
*/
|
|
304
|
-
|
|
305
|
-
isCanonical?: boolean;
|
|
316
|
+
id?: string;
|
|
306
317
|
/**
|
|
307
318
|
* Canonical representation of the passage
|
|
308
319
|
*
|
|
@@ -316,5 +327,4 @@ export interface BibleChapter {
|
|
|
316
327
|
*/
|
|
317
328
|
title?: string;
|
|
318
329
|
}
|
|
319
|
-
export {};
|
|
320
330
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,0BAA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YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,kDAAkD;IAClD,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,WAAW;IACX,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,cAAc,CAAC;IAE3D,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ColorValue } from \"react-native\";\n\nexport type SignInWithYouVersionResult = {\n accessToken?: string;\n permissions: SignInWithYouVersionPermission[];\n yvpUserId?: string;\n expiryDate?: string;\n refreshToken?: string;\n name?: string;\n profilePicture?: string;\n email?: string;\n};\n\nexport type SignInWithYouVersionPermission
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ColorValue } from \"react-native\";\n\nexport type SignInWithYouVersionResult = {\n accessToken?: string;\n permissions: SignInWithYouVersionPermission[];\n yvpUserId?: string;\n expiryDate?: string;\n refreshToken?: string;\n name?: string;\n profilePicture?: string;\n email?: string;\n idToken?: string;\n};\n\nexport type SignInWithYouVersionPermission = \"openid\" | \"email\" | \"profile\";\n\nexport interface YouVersionUserInfo {\n name?: string;\n email?: string;\n id?: string;\n profilePicture?: string;\n}\n\nexport interface YouVersionVerseOfTheDay {\n passageId: string;\n day: number;\n}\n\nexport interface BibleTextOptions {\n /**\n * Controls the font family of the Bible text\n *\n * @defaultValue \"Times New Roman\"\n */\n fontFamily?: string | null | undefined;\n\n /**\n * Controls the font size of the Bible text\n *\n * @defaultValue 16\n */\n fontSize?: number | null | undefined;\n\n /**\n * Controls the line spacing of the Bible text\n *\n * @defaultValue `fontSize` / 2\n */\n lineSpacing?: number | null | undefined;\n\n /**\n * Controls the spacing between paragraphs in the Bible text\n *\n * @defaultValue `fontSize` / 2\n */\n paragraphSpacing?: number | null | undefined;\n\n /**\n * Controls the text color of the Bible text\n *\n * @defaultValue Theme dependent text color\n */\n textColor?: ColorValue | null | undefined;\n\n /**\n * Controls the color of the words of Christ (WOC) in the Bible text\n *\n * @defaultValue \"#FF3D4D\" in light mode, \"#F04C59\" in dark mode\n */\n wocColor?: ColorValue | null | undefined;\n\n /**\n * Controls how footnotes are displayed in the Bible text\n *\n * @defaultValue \"none\"\n */\n footnoteMode?: BibleTextFootnoteMode | null | undefined;\n\n /**\n * Controls whether verse numbers are rendered in the Bible text\n *\n * @defaultValue true\n */\n renderVerseNumbers?: boolean | null | undefined;\n}\n\nexport type BibleTextFootnoteMode =\n | \"none\"\n | \"inline\"\n | \"marker\"\n | \"letters\"\n | \"image\";\n\nexport interface BibleReferenceBase {\n /** The ID of the Bible version */\n versionId: number;\n\n /** The book identifier */\n bookUSFM: string;\n\n /** The chapter number */\n chapter: number;\n}\n\n/**\n * A reference to a range of verses\n */\nexport interface BibleReferenceVerseRange extends BibleReferenceBase {\n type: \"range\";\n verseStart: number;\n verseEnd: number;\n verse?: never;\n}\n\n/**\n * A reference to an entire chapter in the Bible\n */\nexport interface BibleReferenceChapter extends BibleReferenceBase {\n type: \"chapter\";\n verse?: never;\n verseStart?: never;\n verseEnd?: never;\n}\n\n/**\n * A reference to a single verse in the Bible\n */\nexport interface BibleReferenceVerse extends BibleReferenceBase {\n type: \"verse\";\n verse: number;\n verseStart?: never;\n verseEnd?: never;\n}\n\nexport type BibleReference =\n | BibleReferenceVerseRange\n | BibleReferenceChapter\n | BibleReferenceVerse;\n\nexport interface OnBibleTextPressEvent {\n /** A reference to the Bible verse that was pressed */\n bibleReference: BibleReferenceVerse;\n urlScheme: string;\n /** Not implemented yet */\n footnotes: unknown[];\n}\n\nexport interface LanguageOverview {\n /**\n * Canonical BCP 47 id limited to language or language+script. Region, variants, and extensions are not allowed.\n *\n * @example \"en\"\n */\n id: string;\n\n /**\n * ISO 639 canonical language subtag\n *\n * @example \"sr\"\n */\n language: string;\n\n /**\n * ISO 15924 script code if present in id\n *\n * @example \"Latn\"\n */\n script?: string;\n\n /**\n * The English name for the script\n *\n * @example \"Latin\"\n */\n scriptName?: string;\n\n /**\n * Deprecated or legacy subtags mapped during canonicalization for this language.\n *\n * @example []\n */\n aliases: string[];\n\n /**\n * Localized display names for the language/script combination\n * @example { \"en\": \"Chechen\" }\n */\n displayNames: Record<string, string>;\n\n /**\n * All scripts known for this language (CLDR/ISO-15924)\n *\n * @example [\"Cyrl\", \"Latn\"]\n */\n scripts: string[];\n\n /**\n * Variants associated with this language (not part of the id)\n *\n * @example [\"1996\",\"fonipa\"]\n */\n variants: string[];\n\n /**\n * Ids of countries where this language is used or supported. Extended details can be retrieved from the countries API with the provided id.\n *\n * @example [\"RS\",\"BA\",\"ME\"]\n */\n countries: string[];\n\n /**\n * Default text direction for this language. ltr is left to right and rtl is right to left.\n *\n * @example \"ltr\"\n */\n textDirection: string;\n\n /**\n * The chosen default Bible version for this language.\n *\n * @example 111\n */\n defaultBibleId?: number;\n}\n\nexport interface HighlightResponse {\n id?: string;\n\n /**\n * Bible version identifier\n *\n * @example 111\n */\n bibleId: number;\n\n /**\n * The passage identifier (verse USFM format)\n *\n * @example \"MAT.1.1\"\n */\n passageId: string;\n\n /**\n * The highlight color in hex format\n *\n * @example \"#44aa44\"\n */\n color: string;\n userId?: string;\n createTime?: string;\n updateTime?: string;\n}\n\nexport interface BibleVersion {\n /**\n * Bible version identifier\n *\n * @example 111\n */\n id: number;\n\n /**\n * Bible version abbreviation\n *\n * @example \"NIV\"\n */\n abbreviation?: string;\n\n /**\n * Longer form of copyright text provided by the publisher for the given Bible version.\n *\n * @example \"<p>Biblica is the worldwide publisher and translation sponsor of the New International Version—one of the most widely read contemporary English versions of the Bible. </p> <p>At Biblica, we believe that with God, all things are possible. Partnering with other ministries and people like you, we are reaching the world with God’s Word, providing Bibles that are easier to understand and faster to receive. When God’s Word is put into someone’s hands, it has the power to change everything. </p> <p>To learn more, visit <a href=\"https://www.biblica.com/privacy-policy/\">biblica.com</a> and <a href=\"http://facebook.com/Biblica\">facebook.com/Biblica</a>.</p> <p> </p>\"\n */\n promotionalContent?: string;\n\n /**\n * Short version of the copyright text provided by the publisher for the given Bible version.\n *\n * @example \"The Holy Bible, New International Version® NIV® Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.® Used by Permission of Biblica, Inc.® All rights reserved worldwide.\"\n */\n copyright?: string;\n\n /**\n * BCP47 canonical language tag for this Bible version\n *\n * @example \"en\"\n */\n languageTag?: string;\n\n /**\n * Localized Bible version abbreviation\n *\n * @example \"NIV\"\n */\n localizedAbbreviation?: string;\n\n /**\n * Localized title of Bible version\n *\n * @example \"New International Version\"\n */\n localizedTitle?: string;\n\n readerFooter?: string;\n readerFooterUrl?: string;\n\n /**\n * English title of Bible version\n *\n * @example \"New International Version 2011\"\n */\n title?: string;\n\n /**\n * Array of book codes for this Bible version\n *\n * @example [\"GEN\",\"EXO\",\"LEV\"]\n */\n bookCodes?: string[];\n\n /** Array of Bible books for this Bible version */\n books?: BibleBook[];\n\n /**\n * Default text direction for this language. ltr is left to right and rtl is right to left.\n *\n * @example \"ltr\"\n */\n textDirection?: string;\n\n /** uuid */\n organizationId?: string;\n}\n\nexport interface BibleBook {\n /**\n * Book identifier\n *\n * @example \"GEN\"\n */\n id?: string;\n\n /**\n * Book name abbreviation if provided by the publisher\n *\n * @example \"Gen\"\n */\n abbreviation?: string;\n\n /**\n * Book title\n *\n * @example \"Genesis\"\n */\n title?: string;\n\n /**\n * Full book title if available\n *\n * @example \"The Book of Genesis\"\n */\n fullTitle?: string;\n\n /**\n * Indicates if this is Old Testament, New Testament, or Deuterocanonical\n *\n * @example \"new_testament\"\n */\n canon?: \"new_testament\" | \"old_testament\" | \"deuterocanon\";\n\n chapters?: BibleChapter[];\n}\n\nexport interface BibleChapter {\n /**\n * Chapter identifier based off the USFM reference\n *\n * @example 1\n */\n id?: string;\n\n /**\n * Canonical representation of the passage\n *\n * @example \"GEN.1\"\n */\n passageId?: string;\n\n /**\n * Human readable chapter title\n *\n * @example \"1\"\n */\n title?: string;\n}\n"]}
|
|
Binary file
|
package/expo-module.config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"platforms": ["apple", "android"],
|
|
3
|
-
"
|
|
3
|
+
"coreFeatures": ["swiftui", "compose"],
|
|
4
4
|
"apple": {
|
|
5
5
|
"modules": [
|
|
6
6
|
"RNYouVersionPlatformModule",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"android": {
|
|
15
|
-
"modules": [
|
|
15
|
+
"modules": [
|
|
16
|
+
"com.youversion.reactnativesdk.RNYouVersionPlatformModule",
|
|
17
|
+
"com.youversion.reactnativesdk.RNSignInWithYouVersionButtonModule"
|
|
18
|
+
]
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -68,10 +68,10 @@ internal struct BibleVersionRecord: Record {
|
|
|
68
68
|
var abbreviation: String?
|
|
69
69
|
|
|
70
70
|
@Field
|
|
71
|
-
var
|
|
71
|
+
var promotionalContent: String?
|
|
72
72
|
|
|
73
73
|
@Field
|
|
74
|
-
var
|
|
74
|
+
var copyright: String?
|
|
75
75
|
|
|
76
76
|
@Field
|
|
77
77
|
var languageTag: String?
|
|
@@ -94,6 +94,9 @@ internal struct BibleVersionRecord: Record {
|
|
|
94
94
|
@Field
|
|
95
95
|
var bookCodes: [String]?
|
|
96
96
|
|
|
97
|
+
@Field
|
|
98
|
+
var organizationId: String?
|
|
99
|
+
|
|
97
100
|
@Field
|
|
98
101
|
var books: [BibleBookRecord]?
|
|
99
102
|
|
|
@@ -105,14 +108,15 @@ internal struct BibleVersionRecord: Record {
|
|
|
105
108
|
init(bibleVersion: BibleVersion) {
|
|
106
109
|
self.id = bibleVersion.id
|
|
107
110
|
self.abbreviation = bibleVersion.abbreviation
|
|
108
|
-
self.
|
|
109
|
-
self.
|
|
111
|
+
self.promotionalContent = bibleVersion.promotionalContent
|
|
112
|
+
self.copyright = bibleVersion.copyright
|
|
110
113
|
self.languageTag = bibleVersion.languageTag
|
|
111
114
|
self.localizedAbbreviation = bibleVersion.localizedAbbreviation
|
|
112
115
|
self.localizedTitle = bibleVersion.localizedTitle
|
|
113
116
|
self.readerFooter = bibleVersion.readerFooter
|
|
114
117
|
self.readerFooterUrl = bibleVersion.readerFooterUrl
|
|
115
118
|
self.title = bibleVersion.title
|
|
119
|
+
self.organizationId = bibleVersion.organizationId
|
|
116
120
|
self.bookCodes = bibleVersion.bookCodes
|
|
117
121
|
|
|
118
122
|
if let bibleVersionBooks = bibleVersion.books {
|
|
@@ -125,7 +129,7 @@ internal struct BibleVersionRecord: Record {
|
|
|
125
129
|
|
|
126
130
|
internal struct BibleBookRecord: Record {
|
|
127
131
|
@Field
|
|
128
|
-
var
|
|
132
|
+
var id: String?
|
|
129
133
|
|
|
130
134
|
@Field
|
|
131
135
|
var abbreviation: String?
|
|
@@ -134,18 +138,22 @@ internal struct BibleBookRecord: Record {
|
|
|
134
138
|
var title: String?
|
|
135
139
|
|
|
136
140
|
@Field
|
|
137
|
-
var
|
|
141
|
+
var fullTitle: String?
|
|
138
142
|
|
|
139
143
|
@Field
|
|
140
144
|
var chapters: [BibleChapterRecord]?
|
|
141
145
|
|
|
146
|
+
@Field
|
|
147
|
+
var canon: String?
|
|
148
|
+
|
|
142
149
|
init() { }
|
|
143
150
|
|
|
144
151
|
init(bibleBook: BibleBook) {
|
|
145
|
-
self.
|
|
152
|
+
self.id = bibleBook.id
|
|
146
153
|
self.abbreviation = bibleBook.abbreviation
|
|
147
154
|
self.title = bibleBook.title
|
|
148
|
-
self.
|
|
155
|
+
self.fullTitle = bibleBook.fullTitle
|
|
156
|
+
self.canon = bibleBook.canon
|
|
149
157
|
|
|
150
158
|
if let bibleBookChapters = bibleBook.chapters {
|
|
151
159
|
self.chapters = bibleBookChapters.map(BibleChapterRecord.init)
|
|
@@ -155,10 +163,7 @@ internal struct BibleBookRecord: Record {
|
|
|
155
163
|
|
|
156
164
|
internal struct BibleChapterRecord: Record {
|
|
157
165
|
@Field
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
@Field
|
|
161
|
-
var isCanonical: Bool?
|
|
166
|
+
var id: String?
|
|
162
167
|
|
|
163
168
|
@Field
|
|
164
169
|
var passageId: String?
|
|
@@ -169,8 +174,7 @@ internal struct BibleChapterRecord: Record {
|
|
|
169
174
|
init() { }
|
|
170
175
|
|
|
171
176
|
init(bibleChapter: BibleChapter) {
|
|
172
|
-
self.
|
|
173
|
-
self.isCanonical = bibleChapter.isCanonical
|
|
177
|
+
self.id = bibleChapter.id
|
|
174
178
|
self.passageId = bibleChapter.passageId
|
|
175
179
|
self.title = bibleChapter.title
|
|
176
180
|
}
|
|
@@ -52,7 +52,7 @@ internal struct LanguageRecord: Record {
|
|
|
52
52
|
var textDirection: String
|
|
53
53
|
|
|
54
54
|
@Field
|
|
55
|
-
var
|
|
55
|
+
var defaultBibleId: Int?
|
|
56
56
|
|
|
57
57
|
init(_ response: LanguageOverview) {
|
|
58
58
|
self.id = response.id
|
|
@@ -65,6 +65,6 @@ internal struct LanguageRecord: Record {
|
|
|
65
65
|
self.variants = response.variants
|
|
66
66
|
self.countries = response.countries
|
|
67
67
|
self.textDirection = response.textDirection
|
|
68
|
-
self.
|
|
68
|
+
self.defaultBibleId = response.defaultBibleId
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -38,10 +38,10 @@ struct YVPBibleTextView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
38
38
|
BibleTextView(
|
|
39
39
|
bibleReference(),
|
|
40
40
|
textOptions: textOptions(),
|
|
41
|
-
onVerseTap: { bibleRef,
|
|
41
|
+
onVerseTap: { bibleRef, urlScheme, footnotes in
|
|
42
42
|
props.onTap([
|
|
43
43
|
"bibleReference": toJsBibleReference(bibleRef),
|
|
44
|
-
"
|
|
44
|
+
"urlScheme": urlScheme
|
|
45
45
|
])
|
|
46
46
|
}
|
|
47
47
|
)
|
|
@@ -57,10 +57,7 @@ struct YVPBibleTextView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
57
57
|
"type": "verse"
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
func toJsPoint(_ point: CGPoint) -> [String: CGFloat] {
|
|
62
|
-
["x": point.x, "y": point.y]
|
|
63
|
-
}
|
|
60
|
+
|
|
64
61
|
|
|
65
62
|
func bibleReference() -> BibleReference {
|
|
66
63
|
if let start = props.verseStart, let end = props.verseEnd {
|
|
@@ -108,6 +105,8 @@ struct YVPBibleTextView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
108
105
|
case "none": .none
|
|
109
106
|
case "inline": .inline
|
|
110
107
|
case "marker": .marker
|
|
108
|
+
case "letters": .letters
|
|
109
|
+
case "image": .image
|
|
111
110
|
default: .none
|
|
112
111
|
}
|
|
113
112
|
}
|
package/ios/YVPAuthAPI.swift
CHANGED
|
@@ -23,7 +23,8 @@ struct YVPAuthAPI {
|
|
|
23
23
|
"refreshToken": response.refreshToken,
|
|
24
24
|
"name": response.name,
|
|
25
25
|
"profilePicture": response.profilePicture,
|
|
26
|
-
"email": response.email
|
|
26
|
+
"email": response.email,
|
|
27
|
+
"idToken": response.idToken,
|
|
27
28
|
])
|
|
28
29
|
} catch {
|
|
29
30
|
promise.reject(error)
|
|
@@ -37,21 +38,13 @@ struct YVPAuthAPI {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
static func userInfo(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"lastName": response.lastName,
|
|
48
|
-
"userId": response.userId,
|
|
49
|
-
"avatarUrl": response.avatarUrl?.absoluteString
|
|
50
|
-
])
|
|
51
|
-
} catch {
|
|
52
|
-
promise.reject(error)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
41
|
+
static func userInfo(promise: Promise) {
|
|
42
|
+
promise.resolve([
|
|
43
|
+
"name": YouVersionAPI.Users.currentUserName,
|
|
44
|
+
"email": YouVersionAPI.Users.currentUserEmail,
|
|
45
|
+
"id": YouVersionAPI.Users.currentUserId,
|
|
46
|
+
"profilePicture": YouVersionAPI.Users.currentUserProfilePicture
|
|
47
|
+
])
|
|
55
48
|
}
|
|
56
49
|
}
|
|
57
50
|
|
|
@@ -19,10 +19,10 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.static_framework = true
|
|
20
20
|
|
|
21
21
|
s.dependency 'ExpoModulesCore'
|
|
22
|
-
s.dependency 'YouVersionPlatform', '0.1
|
|
23
|
-
s.dependency 'YouVersionPlatformCore', '0.1
|
|
24
|
-
s.dependency 'YouVersionPlatformUI', '0.1
|
|
25
|
-
s.dependency 'YouVersionPlatformReader', '0.1
|
|
22
|
+
s.dependency 'YouVersionPlatform', '1.0.1'
|
|
23
|
+
s.dependency 'YouVersionPlatformCore', '1.0.1'
|
|
24
|
+
s.dependency 'YouVersionPlatformUI', '1.0.1'
|
|
25
|
+
s.dependency 'YouVersionPlatformReader', '1.0.1'
|
|
26
26
|
|
|
27
27
|
# Swift/Objective-C compatibility
|
|
28
28
|
s.pod_target_xcconfig = {
|
|
@@ -30,12 +30,12 @@ export function signOut(): Promise<void> {
|
|
|
30
30
|
return Promise.resolve();
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function userInfo(
|
|
33
|
+
export function userInfo(): Promise<YouVersionUserInfo> {
|
|
34
34
|
return Promise.resolve({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
profilePicture: "https://example.com/avatar.png",
|
|
36
|
+
name: "Mock User",
|
|
37
|
+
email: "mockuser@example.com",
|
|
38
|
+
id: "mock-yvp-user-id",
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -55,8 +55,8 @@ export function versions(_languageTag?: string): Promise<BibleVersion[]> {
|
|
|
55
55
|
abbreviation: "KJV",
|
|
56
56
|
languageTag: "en",
|
|
57
57
|
bookCodes: ["GEN", "EXO", "LEV"],
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
copyright: "King James Version Copyright",
|
|
59
|
+
promotionalContent: "<div>promotional content</div>",
|
|
60
60
|
localizedAbbreviation: "KJV",
|
|
61
61
|
localizedTitle: "King James Version",
|
|
62
62
|
textDirection: "ltr",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/platform-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "React Native SDK for YouVersion Platform",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"jest": {
|
|
36
36
|
"preset": "expo-module-scripts"
|
|
37
37
|
},
|
|
38
|
-
"dependencies": {},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@commitlint/cli": "^19.6.0",
|
|
41
40
|
"@commitlint/config-conventional": "^19.6.0",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"expo-module-scripts": "^5.0.7",
|
|
49
48
|
"husky": "^9.1.7",
|
|
50
49
|
"react-native": "0.81.4",
|
|
51
|
-
"semantic-release": "^
|
|
50
|
+
"semantic-release": "^25.0.2"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
53
|
"expo": ">=54.0.0",
|