Skip to content

Commit

Permalink
fix: expo 52 config plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-hs committed Dec 25, 2024
1 parent e67f19b commit ed434b7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions plugin/src/withIAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ export const modifyAppBuildGradle = (
);
};

export const modifyProjectBuildGradle = (buildGradle: string) => {
const supportLibVersion = `supportLibVersion = "28.0.0"`;
if (buildGradle.includes(supportLibVersion)) {
return buildGradle;
}
return addToBuildGradle(supportLibVersion, 'ext', 1, buildGradle);
};

const withIAPAndroid: ConfigPlugin<{paymentProvider: PaymentProvider}> = (
config,
{paymentProvider},
Expand All @@ -95,13 +87,6 @@ const withIAPAndroid: ConfigPlugin<{paymentProvider: PaymentProvider}> = (
return config;
});

// eslint-disable-next-line @typescript-eslint/no-shadow
config = withProjectBuildGradle(config, (config) => {
config.modResults.contents = modifyProjectBuildGradle(
config.modResults.contents,
);
return config;
});
return config;
};

Expand Down

0 comments on commit ed434b7

Please sign in to comment.