Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require:
plugins:
- rubocop-minitest

AllCops:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ DEPENDENCIES
xcodeproj

BUNDLED WITH
2.5.14
2.6.8
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*.xcworkspace/
*.zip
.DS_Store
.bundle/*
!.bundle/config
.gradle/
.idea/
.vs/
Expand Down
2 changes: 2 additions & 0 deletions scripts/configure.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
import {
appManifest,
buildGradle,
bundleConfig,
gradleProperties,
podfile,
serialize,
Expand Down Expand Up @@ -305,6 +306,7 @@ export const getConfig = (() => {
: {
"App.js": copyFrom(templateDir, "App.js"),
}),
".bundle/config": bundleConfig(),
Gemfile: copyFrom(templateDir, "Gemfile"),
"app.json": appManifest(name),
"index.js": copyFrom(templateDir, "index.js"),
Expand Down
12 changes: 12 additions & 0 deletions scripts/template.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ export function buildGradle() {
);
}

/**
* Returns `.bundle/config`.
*
* @note We don't use a checked in file because of
* https://github.com/ruby/setup-ruby/discussions/576.
*
* @returns {string}
*/
export function bundleConfig() {
return join('BUNDLE_PATH: ".bundle"', "BUNDLE_FORCE_RUBY_PLATFORM: 1");
}

/**
* @param {number} targetVersion Target React Native version
* @returns {string}
Expand Down
1 change: 1 addition & 0 deletions test/configure/getConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe("getConfig()", () => {
const config = getConfig(params, "common");

deepEqual(Object.keys(config.files).sort(), [
".bundle/config",
".gitignore",
".watchmanconfig",
"App.tsx",
Expand Down
Loading