expo-line-login 1.0.1 → 1.0.3

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.
@@ -54,12 +54,12 @@ android {
54
54
  compileSdkVersion safeExtGet("compileSdkVersion", 33)
55
55
 
56
56
  compileOptions {
57
- sourceCompatibility JavaVersion.VERSION_11
58
- targetCompatibility JavaVersion.VERSION_11
57
+ sourceCompatibility JavaVersion.VERSION_17
58
+ targetCompatibility JavaVersion.VERSION_17
59
59
  }
60
60
 
61
61
  kotlinOptions {
62
- jvmTarget = JavaVersion.VERSION_11.majorVersion
62
+ jvmTarget = JavaVersion.VERSION_17.majorVersion
63
63
  }
64
64
 
65
65
  namespace "dev.stanma.line"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-line-login",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Integrate LINE login to Expo App",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@types/react": "^18.0.25",
33
33
  "expo-module-scripts": "^3.0.11",
34
- "expo-modules-core": "^1.5.11",
34
+ "expo-modules-core": "^1.12.26",
35
35
  "husky": "^8.0.3"
36
36
  },
37
37
  "peerDependencies": {
@@ -11,7 +11,11 @@ const withMyApiKey = (config, { channelId, universalLink }) => {
11
11
  `line3rdp.${ios_1.BundleIdentifier.getBundleIdentifier(config)}`,
12
12
  ],
13
13
  });
14
- config.modResults["LSApplicationQueriesSchemes"] = ["lineauth2"];
14
+ if (!config.modResults["LSApplicationQueriesSchemes"]) {
15
+ console.log("Adding LSApplicationQueriesSchemes to Info.plist");
16
+ config.modResults["LSApplicationQueriesSchemes"] = [];
17
+ }
18
+ config.modResults["LSApplicationQueriesSchemes"]?.push("lineauth2");
15
19
  if (universalLink) {
16
20
  config.modResults["LINE_UNIVERSAL_LINK_URL"] = universalLink;
17
21
  }
@@ -12,13 +12,19 @@ const withMyApiKey: ConfigPlugin<{
12
12
  }> = (config, { channelId, universalLink }) => {
13
13
  config = withInfoPlist(config, (config) => {
14
14
  config.modResults["LINE_CHANNEL_ID"] = channelId;
15
+
15
16
  // push scheme to CFBundleURLSchemes
16
17
  config.modResults["CFBundleURLTypes"]?.push({
17
18
  CFBundleURLSchemes: [
18
19
  `line3rdp.${BundleIdentifier.getBundleIdentifier(config)}`,
19
20
  ],
20
21
  });
21
- config.modResults["LSApplicationQueriesSchemes"] = ["lineauth2"];
22
+
23
+ if (!config.modResults["LSApplicationQueriesSchemes"]) {
24
+ console.log("Adding LSApplicationQueriesSchemes to Info.plist");
25
+ config.modResults["LSApplicationQueriesSchemes"] = [];
26
+ }
27
+ config.modResults["LSApplicationQueriesSchemes"]?.push("lineauth2");
22
28
 
23
29
  if (universalLink) {
24
30
  config.modResults["LINE_UNIVERSAL_LINK_URL"] = universalLink;