This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a00dd66
commit ee2df0d
Showing
484 changed files
with
9,788 additions
and
1,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
yarn inject:secrets | ||
yarn setenv | ||
yarn remove:nfc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const isAndroid = Boolean(process.env.APPCENTER_ANDROID_VARIANT); | ||
if (!isAndroid) { | ||
console.log("Not running in AppCenter Android, aborting script"); | ||
process.exit(0); | ||
} | ||
|
||
const replace = require("replace-in-file"); | ||
const path = "../**/node_modules/**/android/build.gradle"; | ||
const optionA = { | ||
files: path, | ||
from: /jcenter/g, | ||
to: "mavenCentral", | ||
}; | ||
|
||
const optionB = { | ||
files: path, | ||
from: /implementation \'com\.facebook\.react\:react-native\:\+\'/g, | ||
to: | ||
"implementation 'com.facebook.fbjni:fbjni-java-only:0.0.4'\n implementation('com.facebook.react:react-native:+') {\n exclude group: 'com.facebook.fbjni', module: 'fbjni-java-only'\n exclude group: 'com.facebook.yoga', module: 'proguard-annotations'\n }", | ||
}; | ||
|
||
const optionC = { | ||
files: path, | ||
from: /implementation \"com\.facebook\.react\:react-native\:\+\"/g, | ||
to: | ||
"implementation 'com.facebook.fbjni:fbjni-java-only:0.0.4'\n implementation('com.facebook.react:react-native:+') {\n exclude group: 'com.facebook.fbjni', module: 'fbjni-java-only'\n exclude group: 'com.facebook.yoga', module: 'proguard-annotations'\n }", | ||
}; | ||
|
||
replace(optionA) | ||
.then((results) => { | ||
// console.log('Replacement results:', results); | ||
replace(optionB) | ||
.then((resultsB) => { | ||
// console.log('Replacement resultsB:', resultsB); | ||
replace(optionC) | ||
.then((resultsC) => { | ||
// console.log('Replacement resultsC:', resultsC); | ||
}) | ||
.catch((error) => { | ||
console.error("Error occurred:", error); | ||
}); | ||
}) | ||
.catch((error) => { | ||
console.error("Error occurred:", error); | ||
}); | ||
}) | ||
.catch((error) => { | ||
console.error("Error occurred:", error); | ||
}); |
Oops, something went wrong.