Lines 15-55javascript
18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21var plugin_exports = {};
22__export(plugin_exports, {
23 default: () => plugin_default
25module.exports = __toCommonJS(plugin_exports);
28var import_config_plugins = require("@expo/config-plugins");
29var import_generateCode = require("@expo/config-plugins/build/utils/generateCode");
30var import_codeMod = require("@expo/config-plugins/build/android/codeMod");
31var DEFAULT_SDK_VERSION = "0.1.7";
32var GITHUB_MAVEN_URL = "https://maven.pkg.github.com/amply/sdk";
33var GITHUB_MAVEN_CREDENTIALS_ENV = {
34 username: "AMPLY_MAVEN_USERNAME",
35 password: "AMPLY_MAVEN_PASSWORD"
MediumSecret Pattern
Package contains a possible secret pattern.
dist/plugin/index.jsView on unpkg · L35 37var GITHUB_GRADLE_REPOSITORY_SNIPPET = `
39 url '${GITHUB_MAVEN_URL}'
41 username findProperty('${GITHUB_MAVEN_CREDENTIALS_ENV.username}') ?: System.getenv('${GITHUB_MAVEN_CREDENTIALS_ENV.username}')
42 password findProperty('${GITHUB_MAVEN_CREDENTIALS_ENV.password}') ?: System.getenv('${GITHUB_MAVEN_CREDENTIALS_ENV.password}')
46var GRADLE_DEPENDENCY_LINE = ` implementation("tools.amply:sdk-android:${"$"}{project.findProperty('amplySdkVersion') ?: System.getenv('AMPLY_SDK_VERSION') ?: '${DEFAULT_SDK_VERSION}'}")`;
47function applyGithubMavenRepository(contents) {
48 if (contents.includes(GITHUB_MAVEN_URL)) {
51 const repositoriesBlock = /(repositories\s*\{[\s\S]*?\n\})/;
52 if (repositoriesBlock.test(contents)) {
53 return contents.replace(repositoriesBlock, (match) => {
54 if (match.includes(GITHUB_MAVEN_URL)) {