Skip to content

Commit

Permalink
Merge branch 'fix/release-hotfixes' into release/1.0
Browse files Browse the repository at this point in the history
* fix/release-hotfixes:
  fix disabling of rn plugins
  • Loading branch information
pavjacko committed Jan 29, 2024
2 parents 887f169 + e9bf505 commit 39d9be1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/sdk-react-native/src/adapters.ts
Expand Up @@ -8,6 +8,15 @@ const getApplicationId = () => {
return appId;
};

type InactivePluginConfig = {
platforms: {
ios: null;
android: null;
macos: null;
windows: null;
};
};

const getSkipLinkingDeps = () => {
const skipLinkingEnv = process.env.RNV_SKIP_LINKING;

Expand All @@ -18,11 +27,15 @@ const getSkipLinkingDeps = () => {
dependencies: plugins.reduce((acc, plugin) => {
acc[plugin] = {
platforms: {
// Add all platforms
ios: null,
android: null,
macos: null,
windows: null,
},
};
return acc;
}, {} as { [plugin: string]: { platforms: { ios: null } } }),
}, {} as { [plugin: string]: InactivePluginConfig }),
};

return result;
Expand Down

0 comments on commit 39d9be1

Please sign in to comment.