expo-line-login 1.0.0 → 1.0.1

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/android/.gradle/8.0/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/android/.gradle/8.0/dependencies-accessors/gc.properties +0 -0
  5. package/android/.gradle/8.0/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/8.0/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/8.0/gc.properties +0 -0
  8. package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
  9. package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  10. package/android/.gradle/8.1.1/dependencies-accessors/gc.properties +0 -0
  11. package/android/.gradle/8.1.1/fileChanges/last-build.bin +0 -0
  12. package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
  13. package/android/.gradle/8.1.1/gc.properties +0 -0
  14. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  16. package/android/.gradle/config.properties +2 -0
  17. package/android/.gradle/vcs-1/gc.properties +0 -0
  18. package/android/.idea/gradle.xml +12 -0
  19. package/android/.idea/migrations.xml +10 -0
  20. package/android/.idea/misc.xml +10 -0
  21. package/android/.idea/vcs.xml +6 -0
  22. package/android/local.properties +8 -0
  23. package/build/ExpoLineLogin.types.d.ts +7 -0
  24. package/build/ExpoLineLogin.types.d.ts.map +1 -0
  25. package/build/ExpoLineLogin.types.js +2 -0
  26. package/build/ExpoLineLogin.types.js.map +1 -0
  27. package/build/ExpoLineLoginModule.web.d.ts +7 -0
  28. package/build/ExpoLineLoginModule.web.d.ts.map +1 -0
  29. package/build/ExpoLineLoginModule.web.js +12 -0
  30. package/build/ExpoLineLoginModule.web.js.map +1 -0
  31. package/build/ExpoLineLoginView.d.ts +4 -0
  32. package/build/ExpoLineLoginView.d.ts.map +1 -0
  33. package/build/ExpoLineLoginView.js +7 -0
  34. package/build/ExpoLineLoginView.js.map +1 -0
  35. package/build/ExpoLineLoginView.web.d.ts +4 -0
  36. package/build/ExpoLineLoginView.web.d.ts.map +1 -0
  37. package/build/ExpoLineLoginView.web.js +6 -0
  38. package/build/ExpoLineLoginView.web.js.map +1 -0
  39. package/build/types/index.d.ts +3 -3
  40. package/build/types/index.d.ts.map +1 -1
  41. package/build/types/index.js.map +1 -1
  42. package/package.json +1 -1
  43. package/plugin/build/index.js +5 -8
  44. package/plugin/src/index.ts +5 -8
package/README.md CHANGED
@@ -31,12 +31,12 @@ import {
31
31
  } from 'expo-line-login';
32
32
 
33
33
  const result = await login({
34
- permissions: [
34
+ [
35
35
  LoginPermission.PROFILE,
36
36
  LoginPermission.OPEN_ID,
37
37
  LoginPermission.EMAIL,
38
38
  ],
39
- botPrompt: BotPrompt.NORMAL,
39
+ BotPrompt.NORMAL,
40
40
  });
41
41
  console.log(result);
42
42
  ```
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Dec 28 10:36:11 CST 2023
2
+ gradle.version=8.1.1
@@ -0,0 +1,2 @@
1
+ #Thu Dec 28 10:38:19 CST 2023
2
+ java.home=/Applications/Android Studio.app/Contents/jbr/Contents/Home
File without changes
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GradleSettings">
4
+ <option name="linkedExternalProjectsSettings">
5
+ <GradleProjectSettings>
6
+ <option name="externalProjectPath" value="$PROJECT_DIR$" />
7
+ <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
8
+ <option name="resolveExternalAnnotations" value="false" />
9
+ </GradleProjectSettings>
10
+ </option>
11
+ </component>
12
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectMigrations">
4
+ <option name="MigrateToGradleLocalJavaHome">
5
+ <set>
6
+ <option value="$PROJECT_DIR$" />
7
+ </set>
8
+ </option>
9
+ </component>
10
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+ <component name="ProjectRootManager">
5
+ <output url="file://$PROJECT_DIR$/build/classes" />
6
+ </component>
7
+ <component name="ProjectType">
8
+ <option name="id" value="Android" />
9
+ </component>
10
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ ## This file must *NOT* be checked into Version Control Systems,
2
+ # as it contains information specific to your local configuration.
3
+ #
4
+ # Location of the SDK. This is only used by Gradle.
5
+ # For customization when using a Version Control System, please read the
6
+ # header note.
7
+ #Thu Dec 28 10:38:19 CST 2023
8
+ sdk.dir=/Users/admin/Library/Android/sdk
@@ -0,0 +1,7 @@
1
+ export type ChangeEventPayload = {
2
+ value: string;
3
+ };
4
+ export type ExpoLineLoginViewProps = {
5
+ name: string;
6
+ };
7
+ //# sourceMappingURL=ExpoLineLogin.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLogin.types.d.ts","sourceRoot":"","sources":["../src/ExpoLineLogin.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExpoLineLogin.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLogin.types.js","sourceRoot":"","sources":["../src/ExpoLineLogin.types.ts"],"names":[],"mappings":"","sourcesContent":["export type ChangeEventPayload = {\n value: string;\n};\n\nexport type ExpoLineLoginViewProps = {\n name: string;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ PI: number;
3
+ setValueAsync(value: string): Promise<void>;
4
+ hello(): string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=ExpoLineLoginModule.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginModule.web.d.ts","sourceRoot":"","sources":["../src/ExpoLineLoginModule.web.ts"],"names":[],"mappings":";;yBAM6B,MAAM,GAAG,QAAQ,IAAI,CAAC;;;AAFnD,wBAQE"}
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from 'expo-modules-core';
2
+ const emitter = new EventEmitter({});
3
+ export default {
4
+ PI: Math.PI,
5
+ async setValueAsync(value) {
6
+ emitter.emit('onChange', { value });
7
+ },
8
+ hello() {
9
+ return 'Hello world! 👋';
10
+ },
11
+ };
12
+ //# sourceMappingURL=ExpoLineLoginModule.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginModule.web.js","sourceRoot":"","sources":["../src/ExpoLineLoginModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,EAAS,CAAC,CAAC;AAE5C,eAAe;IACb,EAAE,EAAE,IAAI,CAAC,EAAE;IACX,KAAK,CAAC,aAAa,CAAC,KAAa;QAC/B,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IACD,KAAK;QACH,OAAO,iBAAiB,CAAC;IAC3B,CAAC;CACF,CAAC","sourcesContent":["import { EventEmitter } from 'expo-modules-core';\n\nconst emitter = new EventEmitter({} as any);\n\nexport default {\n PI: Math.PI,\n async setValueAsync(value: string): Promise<void> {\n emitter.emit('onChange', { value });\n },\n hello() {\n return 'Hello world! 👋';\n },\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { ExpoLineLoginViewProps } from './ExpoLineLogin.types';
3
+ export default function ExpoLineLoginView(props: ExpoLineLoginViewProps): React.JSX.Element;
4
+ //# sourceMappingURL=ExpoLineLoginView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginView.d.ts","sourceRoot":"","sources":["../src/ExpoLineLoginView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAK/D,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAEtE"}
@@ -0,0 +1,7 @@
1
+ import { requireNativeViewManager } from 'expo-modules-core';
2
+ import * as React from 'react';
3
+ const NativeView = requireNativeViewManager('ExpoLineLogin');
4
+ export default function ExpoLineLoginView(props) {
5
+ return React.createElement(NativeView, { ...props });
6
+ }
7
+ //# sourceMappingURL=ExpoLineLoginView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginView.js","sourceRoot":"","sources":["../src/ExpoLineLoginView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,UAAU,GACd,wBAAwB,CAAC,eAAe,CAAC,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACrE,OAAO,oBAAC,UAAU,OAAK,KAAK,GAAI,CAAC;AACnC,CAAC","sourcesContent":["import { requireNativeViewManager } from 'expo-modules-core';\nimport * as React from 'react';\n\nimport { ExpoLineLoginViewProps } from './ExpoLineLogin.types';\n\nconst NativeView: React.ComponentType<ExpoLineLoginViewProps> =\n requireNativeViewManager('ExpoLineLogin');\n\nexport default function ExpoLineLoginView(props: ExpoLineLoginViewProps) {\n return <NativeView {...props} />;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { ExpoLineLoginViewProps } from './ExpoLineLogin.types';
3
+ export default function ExpoLineLoginView(props: ExpoLineLoginViewProps): React.JSX.Element;
4
+ //# sourceMappingURL=ExpoLineLoginView.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginView.web.d.ts","sourceRoot":"","sources":["../src/ExpoLineLoginView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAMtE"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export default function ExpoLineLoginView(props) {
3
+ return (React.createElement("div", null,
4
+ React.createElement("span", null, props.name)));
5
+ }
6
+ //# sourceMappingURL=ExpoLineLoginView.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoLineLoginView.web.js","sourceRoot":"","sources":["../src/ExpoLineLoginView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACrE,OAAO,CACL;QACE,kCAAO,KAAK,CAAC,IAAI,CAAQ,CACrB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport { ExpoLineLoginViewProps } from './ExpoLineLogin.types';\n\nexport default function ExpoLineLoginView(props: ExpoLineLoginViewProps) {\n return (\n <div>\n <span>{props.name}</span>\n </div>\n );\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  export interface AccessToken {
2
- token_type?: string;
3
- scope?: string;
4
- refresh_token?: string;
2
+ token_type: string;
3
+ scope: string;
4
+ refresh_token: string;
5
5
  createdAt: number;
6
6
  access_token: string;
7
7
  id_token?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"","sourcesContent":["export interface AccessToken {\n token_type?: string;\n scope?: string;\n refresh_token?: string;\n createdAt: number;\n access_token: string;\n id_token?: string;\n expires_in: number;\n}\n\ninterface UserProfile {\n pictureUrl: string;\n userId: string;\n displayName: string;\n}\n\nexport interface LoginResult {\n friendshipStatusChanged?: boolean;\n scope: string;\n IDTokenNonce?: string;\n accessToken: AccessToken;\n userProfile?: UserProfile;\n}\n\nexport interface ProfileResult {\n displayName: string;\n pictureUrl: string;\n userId: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"","sourcesContent":["export interface AccessToken {\n token_type: string;\n scope: string;\n refresh_token: string;\n createdAt: number;\n access_token: string;\n id_token?: string;\n expires_in: number;\n}\n\ninterface UserProfile {\n pictureUrl: string;\n userId: string;\n displayName: string;\n}\n\nexport interface LoginResult {\n friendshipStatusChanged?: boolean;\n scope: string;\n IDTokenNonce?: string;\n accessToken: AccessToken;\n userProfile?: UserProfile;\n}\n\nexport interface ProfileResult {\n displayName: string;\n pictureUrl: string;\n userId: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-line-login",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Integrate LINE login to Expo App",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -6,14 +6,11 @@ const withMyApiKey = (config, { channelId, universalLink }) => {
6
6
  config = (0, config_plugins_1.withInfoPlist)(config, (config) => {
7
7
  config.modResults["LINE_CHANNEL_ID"] = channelId;
8
8
  // push scheme to CFBundleURLSchemes
9
- config.modResults["CFBundleURLTypes"] = [
10
- {
11
- CFBundleURLSchemes: [
12
- ...config.ios?.infoPlist?.CFBundleURLTypes?.[0]?.CFBundleURLSchemes,
13
- `line3rdp.${ios_1.BundleIdentifier.getBundleIdentifier(config)}`,
14
- ],
15
- },
16
- ];
9
+ config.modResults["CFBundleURLTypes"]?.push({
10
+ CFBundleURLSchemes: [
11
+ `line3rdp.${ios_1.BundleIdentifier.getBundleIdentifier(config)}`,
12
+ ],
13
+ });
17
14
  config.modResults["LSApplicationQueriesSchemes"] = ["lineauth2"];
18
15
  if (universalLink) {
19
16
  config.modResults["LINE_UNIVERSAL_LINK_URL"] = universalLink;
@@ -13,14 +13,11 @@ const withMyApiKey: ConfigPlugin<{
13
13
  config = withInfoPlist(config, (config) => {
14
14
  config.modResults["LINE_CHANNEL_ID"] = channelId;
15
15
  // push scheme to CFBundleURLSchemes
16
- config.modResults["CFBundleURLTypes"] = [
17
- {
18
- CFBundleURLSchemes: [
19
- ...config.ios?.infoPlist?.CFBundleURLTypes?.[0]?.CFBundleURLSchemes,
20
- `line3rdp.${BundleIdentifier.getBundleIdentifier(config)}`,
21
- ],
22
- },
23
- ];
16
+ config.modResults["CFBundleURLTypes"]?.push({
17
+ CFBundleURLSchemes: [
18
+ `line3rdp.${BundleIdentifier.getBundleIdentifier(config)}`,
19
+ ],
20
+ });
24
21
  config.modResults["LSApplicationQueriesSchemes"] = ["lineauth2"];
25
22
 
26
23
  if (universalLink) {