Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
fix: react-native-receive-sharing-intent android minsdk / bump node t…
Browse files Browse the repository at this point in the history
…o v18 (#35)
  • Loading branch information
achorein committed Feb 5, 2024
1 parent b65ed82 commit d91d6df
Show file tree
Hide file tree
Showing 5 changed files with 1,390 additions and 50 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install --immutable
- run: yarn lint
Expand All @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"

- run: npm install
Expand Down
1 change: 0 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect, useState } from "react";
import { Button, Image, StyleSheet, Text, View } from "react-native";
import { StatusBar } from "expo-status-bar";

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
},
"dependencies": {
"@expo/metro-runtime": "~3.1.1",
"expo": "^50.0.4",
"expo": "~50.0.5",
"expo-config-plugin-ios-share-extension": "^0.0.4",
"expo-constants": "~15.4.5",
"expo-dev-client": "~3.3.7",
"expo-dev-client": "~3.3.8",
"expo-splash-screen": "~0.26.4",
"expo-status-bar": "~1.11.1",
"patch-package": "^8.0.0",
Expand Down
12 changes: 12 additions & 0 deletions patches/react-native-receive-sharing-intent+2.0.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ index d19929a..0a0938a 100644
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
index 02cc8f2..b891660 100644
--- a/node_modules/react-native-receive-sharing-intent/android/build.gradle
+++ b/node_modules/react-native-receive-sharing-intent/android/build.gradle
@@ -29,7 +29,7 @@ android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
buildToolsVersion getExtOrDefault('buildToolsVersion')
defaultConfig {
- minSdkVersion 16
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName "1.0"
diff --git a/node_modules/react-native-receive-sharing-intent/android/src/main/java/com/reactnativereceivesharingintent/ReceiveSharingIntentHelper.java b/node_modules/react-native-receive-sharing-intent/android/src/main/java/com/reactnativereceivesharingintent/ReceiveSharingIntentHelper.java
index 69126eb..6ecf9b4 100644
--- a/node_modules/react-native-receive-sharing-intent/android/src/main/java/com/reactnativereceivesharingintent/ReceiveSharingIntentHelper.java
Expand Down
Loading

0 comments on commit d91d6df

Please sign in to comment.