diff --git a/templates/common/$package.json b/templates/common/$package.json index 7f713e147..7526dff40 100644 --- a/templates/common/$package.json +++ b/templates/common/$package.json @@ -1,7 +1,7 @@ { - "name": "<%= project.slug %>", + "name": "<%- project.slug %>", "version": "0.1.0", - "description": "<%= project.description %>", + "description": "<%- project.description %>", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/src/index.d.ts", @@ -13,7 +13,7 @@ "android", "ios", "cpp", - "<%= project.podspec %>.podspec", + "<%- project.podspec %>.podspec", "!lib/typescript/example", "!android/build", "!ios/build", @@ -36,19 +36,19 @@ "ios", "android" ], - "repository": "<%= repo %>", - "author": "<%= author.name %> <<%= author.email %>> (<%= author.url %>)", + "repository": "<%- repo %>", + "author": "<%- author.name %> <<%- author.email %>> (<%- author.url %>)", "license": "MIT", "bugs": { - "url": "<%= repo %>/issues" + "url": "<%- repo %>/issues" }, - "homepage": "<%= repo %>#readme", + "homepage": "<%- repo %>#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@commitlint/config-conventional": "^8.3.4", - "@react-native-community/bob": "^<%= bob.version %>", + "@react-native-community/bob": "^<%- bob.version %>", "@react-native-community/eslint-config": "^2.0.0", "@release-it/conventional-changelog": "^1.1.4", "@types/jest": "^26.0.0", diff --git a/templates/common/CONTRIBUTING.md b/templates/common/CONTRIBUTING.md index 10695d246..16a350d7b 100644 --- a/templates/common/CONTRIBUTING.md +++ b/templates/common/CONTRIBUTING.md @@ -55,9 +55,9 @@ Remember to add tests for your change if possible. Run the unit tests by: yarn test ``` <% if (project.native) { %> -To edit the Objective-C files, open `example/ios/<%= project.name %>Example.xcworkspace` in XCode and find the source files at `Pods > Development Pods > <%= project.slug %>`. +To edit the Objective-C files, open `example/ios/<%- project.name %>Example.xcworkspace` in XCode and find the source files at `Pods > Development Pods > <%- project.slug %>`. -To edit the Kotlin files, open `example/android` in Android studio and find the source files at `<%= project.package %>` under `Android`. +To edit the Kotlin files, open `example/android` in Android studio and find the source files at `<%- project.package %>` under `Android`. <% } %> ### Commit message convention diff --git a/templates/common/LICENSE b/templates/common/LICENSE index 0c270f50c..29982d33b 100644 --- a/templates/common/LICENSE +++ b/templates/common/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 <%= author.name %> +Copyright (c) 2020 <%- author.name %> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/templates/common/README.md b/templates/common/README.md index 0ec5d19ba..5a1bc7cfd 100644 --- a/templates/common/README.md +++ b/templates/common/README.md @@ -1,21 +1,21 @@ -# <%= project.slug %> +# <%- project.slug %> -<%= project.description %> +<%- project.description %> ## Installation ```sh -npm install <%= project.slug %> +npm install <%- project.slug %> ``` ## Usage ```js -import <%= project.name %> from "<%= project.slug %>"; +import <%- project.name %> from "<%- project.slug %>"; // ... -const result = await <%= project.name %>.multiply(3, 7); +const result = await <%- project.name %>.multiply(3, 7); ``` ## Contributing diff --git a/templates/common/example/src/App.tsx b/templates/common/example/src/App.tsx index 21db7f78d..c44c07fd4 100644 --- a/templates/common/example/src/App.tsx +++ b/templates/common/example/src/App.tsx @@ -1,17 +1,17 @@ import * as React from 'react'; <% if (project.moduleType === "view") { %> import { StyleSheet, View } from 'react-native'; -import <%= project.name %>ViewManager from '<%= project.slug %>'; +import <%- project.name %>ViewManager from '<%- project.slug %>'; <% } else {%> import { StyleSheet, View, Text } from 'react-native'; -import <%= project.name %> from '<%= project.slug %>'; +import <%- project.name %> from '<%- project.slug %>'; <% }%> <% if (project.moduleType === "view") { %> export default function App() { return ( - <<%= project.name %>ViewManager color="#32a852" style={styles.box} /> + <<%- project.name %>ViewManager color="#32a852" style={styles.box} /> ); } @@ -20,7 +20,7 @@ export default function App() { const [result, setResult] = React.useState(); React.useEffect(() => { - <%= project.name %>.multiply(3, 7).then(setResult); + <%- project.name %>.multiply(3, 7).then(setResult); }, []); return ( @@ -28,7 +28,7 @@ export default function App() { Result: {result} ); -} +} <% }%> const styles = StyleSheet.create({ @@ -42,4 +42,4 @@ const styles = StyleSheet.create({ height: 60, marginVertical: 20, }, -}); \ No newline at end of file +}); diff --git a/templates/common/tsconfig.json b/templates/common/tsconfig.json index 69e0ff780..0f281a96e 100644 --- a/templates/common/tsconfig.json +++ b/templates/common/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "<%= project.slug %>": ["./src/index"] + "<%- project.slug %>": ["./src/index"] }, "allowUnreachableCode": false, "allowUnusedLabels": false, diff --git a/templates/cpp-library/android/cpp-adapter.cpp b/templates/cpp-library/android/cpp-adapter.cpp index 96adc6b33..36d7bbccb 100644 --- a/templates/cpp-library/android/cpp-adapter.cpp +++ b/templates/cpp-library/android/cpp-adapter.cpp @@ -3,6 +3,6 @@ extern "C" JNIEXPORT jint JNICALL -Java_com_<%= project.package %>_<%= project.name %>Module_nativeMultiply(JNIEnv *env, jclass type, jint a, jint b) { +Java_com_<%- project.package %>_<%- project.name %>Module_nativeMultiply(JNIEnv *env, jclass type, jint a, jint b) { return example::multiply(a, b); } diff --git a/templates/cpp-library/ios/{%= project.name %}.h b/templates/cpp-library/ios/{%- project.name %}.h similarity index 60% rename from templates/cpp-library/ios/{%= project.name %}.h rename to templates/cpp-library/ios/{%- project.name %}.h index faeec399b..39dd2c5ac 100644 --- a/templates/cpp-library/ios/{%= project.name %}.h +++ b/templates/cpp-library/ios/{%- project.name %}.h @@ -6,6 +6,6 @@ #endif -@interface <%= project.name %> : NSObject +@interface <%- project.name %> : NSObject @end diff --git a/templates/cpp-library/ios/{%= project.name %}.mm b/templates/cpp-library/ios/{%- project.name %}.mm similarity index 86% rename from templates/cpp-library/ios/{%= project.name %}.mm rename to templates/cpp-library/ios/{%- project.name %}.mm index ae8764f3f..43af9aeda 100644 --- a/templates/cpp-library/ios/{%= project.name %}.mm +++ b/templates/cpp-library/ios/{%- project.name %}.mm @@ -1,6 +1,6 @@ -#import "<%= project.name %>.h" +#import "<%- project.name %>.h" -@implementation <%= project.name %> +@implementation <%- project.name %> RCT_EXPORT_MODULE() diff --git a/templates/example/example/$package.json b/templates/example/example/$package.json index 80662e0ea..5355ddc4d 100644 --- a/templates/example/example/$package.json +++ b/templates/example/example/$package.json @@ -1,6 +1,6 @@ { - "name": "<%= project.slug %>-example", - "description": "Example app for <%= project.slug %>", + "name": "<%- project.slug %>-example", + "description": "Example app for <%- project.slug %>", "version": "0.0.1", "private": true, "scripts": { diff --git a/templates/example/example/android/app/build.gradle b/templates/example/example/android/app/build.gradle index cb5b0ee8c..bd1e3e8b3 100644 --- a/templates/example/example/android/app/build.gradle +++ b/templates/example/example/android/app/build.gradle @@ -37,7 +37,7 @@ import com.android.build.OutputFile * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) - * // for <%= project.name %>Example: to disable dev mode in the staging build type (if configured) + * // for <%- project.name %>Example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' @@ -64,7 +64,7 @@ import com.android.build.OutputFile * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ - * // for <%= project.name %>Example, you might want to remove it from here. + * // for <%- project.name %>Example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments @@ -99,7 +99,7 @@ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * - * For <%= project.name %>Example, to use the international variant, you can use: + * For <%- project.name %>Example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data @@ -127,7 +127,7 @@ android { } defaultConfig { - applicationId "com.example.<%= project.package %>" + applicationId "com.example.<%- project.package %>" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 @@ -210,7 +210,7 @@ dependencies { } <% if (project.module) { -%> - implementation project(':<%= project.package %>') + implementation project(':<%- project.package %>') <% } -%> } diff --git a/templates/example/example/android/app/src/debug/java/com/example/{%= project.package %}/ReactNativeFlipper.java b/templates/example/example/android/app/src/debug/java/com/example/{%- project.package %}/ReactNativeFlipper.java similarity index 98% rename from templates/example/example/android/app/src/debug/java/com/example/{%= project.package %}/ReactNativeFlipper.java rename to templates/example/example/android/app/src/debug/java/com/example/{%- project.package %}/ReactNativeFlipper.java index ca9a5ad08..c4b2a0d31 100644 --- a/templates/example/example/android/app/src/debug/java/com/example/{%= project.package %}/ReactNativeFlipper.java +++ b/templates/example/example/android/app/src/debug/java/com/example/{%- project.package %}/ReactNativeFlipper.java @@ -4,7 +4,7 @@ *

This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ -package com.example.<%= project.package %>; +package com.example.<%- project.package %>; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; diff --git a/templates/example/example/android/app/src/main/AndroidManifest.xml b/templates/example/example/android/app/src/main/AndroidManifest.xml index 56a8b898f..b26e66e13 100644 --- a/templates/example/example/android/app/src/main/AndroidManifest.xml +++ b/templates/example/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.example.<%- project.package %>"> diff --git a/templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainActivity.java b/templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainActivity.java similarity index 77% rename from templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainActivity.java rename to templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainActivity.java index b10cad28b..01a3de4c5 100644 --- a/templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainActivity.java +++ b/templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainActivity.java @@ -1,4 +1,4 @@ -package com.example.<%= project.package %>; +package com.example.<%- project.package %>; import com.facebook.react.ReactActivity; @@ -10,6 +10,6 @@ public class MainActivity extends ReactActivity { */ @Override protected String getMainComponentName() { - return "<%= project.name %>Example"; + return "<%- project.name %>Example"; } } diff --git a/templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainApplication.java b/templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainApplication.java similarity index 89% rename from templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainApplication.java rename to templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainApplication.java index c0a94b378..df594ede7 100644 --- a/templates/example/example/android/app/src/main/java/com/example/{%= project.package %}/MainApplication.java +++ b/templates/example/example/android/app/src/main/java/com/example/{%- project.package %}/MainApplication.java @@ -1,4 +1,4 @@ -package com.example.<%= project.package %>; +package com.example.<%- project.package %>; import android.app.Application; import android.content.Context; @@ -11,7 +11,7 @@ import java.lang.reflect.InvocationTargetException; import java.util.List; <% if (project.module) { -%> -import com.<%= project.package %>.<%= project.name %>Package; +import com.<%- project.package %>.<%- project.name %>Package; <% } -%> public class MainApplication extends Application implements ReactApplication { @@ -27,9 +27,9 @@ public boolean getUseDeveloperSupport() { protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); - // Packages that cannot be autolinked yet can be added manually here, for <%= project.name %>Example: + // Packages that cannot be autolinked yet can be added manually here, for <%- project.name %>Example: // packages.add(new MyReactNativePackage()); - <% if (project.module) { -%>packages.add(new <%= project.name %>Package());<% } -%> + <% if (project.module) { -%>packages.add(new <%- project.name %>Package());<% } -%> return packages; } @@ -64,7 +64,7 @@ private static void initializeFlipper(Context context, ReactInstanceManager reac We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ - Class aClass = Class.forName("com.<%= project.package %>Example.ReactNativeFlipper"); + Class aClass = Class.forName("com.<%- project.package %>Example.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); diff --git a/templates/example/example/android/app/src/main/res/values/strings.xml b/templates/example/example/android/app/src/main/res/values/strings.xml index 591b75612..5e7a4bcf1 100644 --- a/templates/example/example/android/app/src/main/res/values/strings.xml +++ b/templates/example/example/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - <%= project.name %> Example + <%- project.name %> Example diff --git a/templates/example/example/android/settings.gradle b/templates/example/example/android/settings.gradle index 1e70f87cb..37f57bbfc 100644 --- a/templates/example/example/android/settings.gradle +++ b/templates/example/example/android/settings.gradle @@ -1,8 +1,8 @@ -rootProject.name = '<%= project.name %>Example' +rootProject.name = '<%- project.name %>Example' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' <% if (project.module) { -%> -include ':<%= project.package %>' -project(':<%= project.package %>').projectDir = new File(rootProject.projectDir, '../../android') +include ':<%- project.package %>' +project(':<%- project.package %>').projectDir = new File(rootProject.projectDir, '../../android') <% } -%> diff --git a/templates/example/example/app.json b/templates/example/example/app.json index ef29446df..5ac4b5664 100644 --- a/templates/example/example/app.json +++ b/templates/example/example/app.json @@ -1,4 +1,4 @@ { - "name": "<%= project.name %>Example", - "displayName": "<%= project.name %> Example" + "name": "<%- project.name %>Example", + "displayName": "<%- project.name %> Example" } diff --git a/templates/example/example/ios/File.swift b/templates/example/example/ios/File.swift index a07ec15eb..8d219c44d 100644 --- a/templates/example/example/ios/File.swift +++ b/templates/example/example/ios/File.swift @@ -1,6 +1,6 @@ // // File.swift -// <%= project.name %>Example +// <%- project.name %>Example // import Foundation diff --git a/templates/example/example/ios/Podfile b/templates/example/example/ios/Podfile index a715b8bfe..88e01f4f5 100644 --- a/templates/example/example/ios/Podfile +++ b/templates/example/example/ios/Podfile @@ -20,8 +20,8 @@ def flipper_post_install(installer) end end -target '<%= project.name %>Example' do - # Pods for <%= project.name %>Example +target '<%- project.name %>Example' do + # Pods for <%- project.name %>Example pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" @@ -54,7 +54,7 @@ target '<%= project.name %>Example' do pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' <% if (project.module) { -%> - pod '<%= project.podspec %>', :path => '../..' + pod '<%- project.podspec %>', :path => '../..' <% } -%> use_native_modules! diff --git a/templates/example/example/ios/{%= project.name %}Example-Bridging-Header.h b/templates/example/example/ios/{%- project.name %}Example-Bridging-Header.h similarity index 100% rename from templates/example/example/ios/{%= project.name %}Example-Bridging-Header.h rename to templates/example/example/ios/{%- project.name %}Example-Bridging-Header.h diff --git a/templates/example/example/ios/{%= project.name %}Example.xcodeproj/project.pbxproj b/templates/example/example/ios/{%- project.name %}Example.xcodeproj/project.pbxproj similarity index 83% rename from templates/example/example/ios/{%= project.name %}Example.xcodeproj/project.pbxproj rename to templates/example/example/ios/{%- project.name %}Example.xcodeproj/project.pbxproj index 1142da1b0..66c54b722 100644 --- a/templates/example/example/ios/{%= project.name %}Example.xcodeproj/project.pbxproj +++ b/templates/example/example/ios/{%- project.name %}Example.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 0D1336C0461A88D01186E375 /* libPods-<%= project.name %>Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%= project.name %>Example.a */; }; + 0D1336C0461A88D01186E375 /* libPods-<%- project.name %>Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%- project.name %>Example.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; @@ -17,19 +17,19 @@ /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* <%= project.name %>Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = <%= project.name %>Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = <%= project.name %>Example/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = <%= project.name %>Example/AppDelegate.m; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* <%- project.name %>Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = <%- project.name %>Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = <%- project.name %>Example/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = <%- project.name %>Example/AppDelegate.m; sourceTree = ""; }; 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = <%= project.name %>Example/Images.xcassets; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = <%= project.name %>Example/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = <%= project.name %>Example/main.m; sourceTree = ""; }; - 20F357AD24636CDE00C146DC /* <%= project.name %>Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "<%= project.name %>Example-Bridging-Header.h"; sourceTree = ""; }; - 20F357AE24636CDF00C146DC /* <%= project.name %>Example-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "<%= project.name %>Example-Bridging-Header.h"; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = <%- project.name %>Example/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = <%- project.name %>Example/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = <%- project.name %>Example/main.m; sourceTree = ""; }; + 20F357AD24636CDE00C146DC /* <%- project.name %>Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "<%- project.name %>Example-Bridging-Header.h"; sourceTree = ""; }; + 20F357AE24636CDF00C146DC /* <%- project.name %>Example-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "<%- project.name %>Example-Bridging-Header.h"; sourceTree = ""; }; 20F357AF24636CDF00C146DC /* File.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = ""; }; - 4D7192F03A36A017E887435B /* Pods-<%= project.name %>Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= project.name %>Example.release.xcconfig"; path = "Target Support Files/Pods-<%= project.name %>Example/Pods-<%= project.name %>Example.release.xcconfig"; sourceTree = ""; }; - 871719007ECC5EAD276C345C /* Pods-<%= project.name %>Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= project.name %>Example.debug.xcconfig"; path = "Target Support Files/Pods-<%= project.name %>Example/Pods-<%= project.name %>Example.debug.xcconfig"; sourceTree = ""; }; - BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%= project.name %>Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-<%= project.name %>Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 4D7192F03A36A017E887435B /* Pods-<%- project.name %>Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%- project.name %>Example.release.xcconfig"; path = "Target Support Files/Pods-<%- project.name %>Example/Pods-<%- project.name %>Example.release.xcconfig"; sourceTree = ""; }; + 871719007ECC5EAD276C345C /* Pods-<%- project.name %>Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%- project.name %>Example.debug.xcconfig"; path = "Target Support Files/Pods-<%- project.name %>Example/Pods-<%- project.name %>Example.debug.xcconfig"; sourceTree = ""; }; + BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%- project.name %>Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-<%- project.name %>Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ @@ -38,14 +38,14 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 0D1336C0461A88D01186E375 /* libPods-<%= project.name %>Example.a in Frameworks */, + 0D1336C0461A88D01186E375 /* libPods-<%- project.name %>Example.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 13B07FAE1A68108700A75B9A /* <%= project.name %>Example */ = { + 13B07FAE1A68108700A75B9A /* <%- project.name %>Example */ = { isa = PBXGroup; children = ( 008F07F21AC5B25A0029DE68 /* main.jsbundle */, @@ -56,14 +56,14 @@ 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 13B07FB71A68108700A75B9A /* main.m */, ); - name = <%= project.name %>Example; + name = <%- project.name %>Example; sourceTree = ""; }; 1CFFDEF7170271C97B8B7E5A /* Pods */ = { isa = PBXGroup; children = ( - 871719007ECC5EAD276C345C /* Pods-<%= project.name %>Example.debug.xcconfig */, - 4D7192F03A36A017E887435B /* Pods-<%= project.name %>Example.release.xcconfig */, + 871719007ECC5EAD276C345C /* Pods-<%- project.name %>Example.debug.xcconfig */, + 4D7192F03A36A017E887435B /* Pods-<%- project.name %>Example.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -72,7 +72,7 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%= project.name %>Example.a */, + BCEA90A70F4BEAD7E9FA28B2 /* libPods-<%- project.name %>Example.a */, ); name = Frameworks; sourceTree = ""; @@ -88,13 +88,13 @@ isa = PBXGroup; children = ( 20F357AF24636CDF00C146DC /* File.swift */, - 20F357AE24636CDF00C146DC /* <%= project.name %>Example-Bridging-Header.h */, - 13B07FAE1A68108700A75B9A /* <%= project.name %>Example */, + 20F357AE24636CDF00C146DC /* <%- project.name %>Example-Bridging-Header.h */, + 13B07FAE1A68108700A75B9A /* <%- project.name %>Example */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 83CBBA001A601CBA00E9B192 /* Products */, 2D16E6871FA4F8E400B85C8A /* Frameworks */, 1CFFDEF7170271C97B8B7E5A /* Pods */, - 20F357AD24636CDE00C146DC /* <%= project.name %>Example-Bridging-Header.h */, + 20F357AD24636CDE00C146DC /* <%- project.name %>Example-Bridging-Header.h */, ); indentWidth = 2; sourceTree = ""; @@ -104,7 +104,7 @@ 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( - 13B07F961A680F5B00A75B9A /* <%= project.name %>Example.app */, + 13B07F961A680F5B00A75B9A /* <%- project.name %>Example.app */, ); name = Products; sourceTree = ""; @@ -112,9 +112,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 13B07F861A680F5B00A75B9A /* <%= project.name %>Example */ = { + 13B07F861A680F5B00A75B9A /* <%- project.name %>Example */ = { isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%= project.name %>Example" */; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%- project.name %>Example" */; buildPhases = ( CCCC07BCAFDEF1FCADC0D0C9 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, @@ -127,9 +127,9 @@ ); dependencies = ( ); - name = <%= project.name %>Example; - productName = <%= project.name %>Example; - productReference = 13B07F961A680F5B00A75B9A /* <%= project.name %>Example.app */; + name = <%- project.name %>Example; + productName = <%- project.name %>Example; + productReference = 13B07F961A680F5B00A75B9A /* <%- project.name %>Example.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -146,7 +146,7 @@ }; }; }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "<%= project.name %>Example" */; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "<%- project.name %>Example" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -160,7 +160,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 13B07F861A680F5B00A75B9A /* <%= project.name %>Example */, + 13B07F861A680F5B00A75B9A /* <%- project.name %>Example */, ); }; /* End PBXProject section */ @@ -207,7 +207,7 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-<%= project.name %>Example-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-<%- project.name %>Example-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; @@ -255,7 +255,7 @@ 13B07FB21A68108700A75B9A /* Base */, ); name = LaunchScreen.xib; - path = <%= project.name %>Example; + path = <%- project.name %>Example; sourceTree = ""; }; /* End PBXVariantGroup section */ @@ -263,13 +263,13 @@ /* Begin XCBuildConfiguration section */ 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 871719007ECC5EAD276C345C /* Pods-<%= project.name %>Example.debug.xcconfig */; + baseConfigurationReference = 871719007ECC5EAD276C345C /* Pods-<%- project.name %>Example.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = NO; - INFOPLIST_FILE = <%= project.name %>Example/Info.plist; + INFOPLIST_FILE = <%- project.name %>Example/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_CFLAGS = ( "$(inherited)", @@ -280,9 +280,9 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.<%= project.name %>Example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = <%= project.name %>Example; - SWIFT_OBJC_BRIDGING_HEADER = "<%= project.name %>Example-Bridging-Header.h"; + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.<%- project.name %>Example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = <%- project.name %>Example; + SWIFT_OBJC_BRIDGING_HEADER = "<%- project.name %>Example-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -291,12 +291,12 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 4D7192F03A36A017E887435B /* Pods-<%= project.name %>Example.release.xcconfig */; + baseConfigurationReference = 4D7192F03A36A017E887435B /* Pods-<%- project.name %>Example.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; - INFOPLIST_FILE = <%= project.name %>Example/Info.plist; + INFOPLIST_FILE = <%- project.name %>Example/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_CFLAGS = ( "$(inherited)", @@ -307,9 +307,9 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.<%= project.name %>Example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = <%= project.name %>Example; - SWIFT_OBJC_BRIDGING_HEADER = "<%= project.name %>Example-Bridging-Header.h"; + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.<%- project.name %>Example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = <%- project.name %>Example; + SWIFT_OBJC_BRIDGING_HEADER = "<%- project.name %>Example-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; @@ -417,7 +417,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%= project.name %>Example" */ = { + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%- project.name %>Example" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, @@ -426,7 +426,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "<%= project.name %>Example" */ = { + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "<%- project.name %>Example" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, diff --git a/templates/example/example/ios/{%= project.name %}Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/templates/example/example/ios/{%- project.name %}Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from templates/example/example/ios/{%= project.name %}Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to templates/example/example/ios/{%- project.name %}Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/templates/example/example/ios/{%= project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme b/templates/example/example/ios/{%- project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme similarity index 81% rename from templates/example/example/ios/{%= project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme rename to templates/example/example/ios/{%- project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme index f8652dc10..101d62b98 100644 --- a/templates/example/example/ios/{%= project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme +++ b/templates/example/example/ios/{%- project.name %}Example.xcodeproj/xcshareddata/xcschemes/{%= project.name %}Example.xcscheme @@ -29,9 +29,9 @@ + BuildableName = "<%- project.name %>Example.app" + BlueprintName = "<%- project.name %>Example" + ReferencedContainer = "container:<%- project.name %>Example.xcodeproj"> @@ -45,9 +45,9 @@ + BuildableName = "<%- project.name %>Example.app" + BlueprintName = "<%- project.name %>Example" + ReferencedContainer = "container:<%- project.name %>Example.xcodeproj"> @@ -66,9 +66,9 @@ + BuildableName = "<%- project.name %>Example.app" + BlueprintName = "<%- project.name %>Example" + ReferencedContainer = "container:<%- project.name %>Example.xcodeproj"> @@ -83,9 +83,9 @@ + BuildableName = "<%- project.name %>Example.app" + BlueprintName = "<%- project.name %>Example" + ReferencedContainer = "container:<%- project.name %>Example.xcodeproj"> diff --git a/templates/example/example/ios/{%= project.name %}Example.xcworkspace/contents.xcworkspacedata b/templates/example/example/ios/{%- project.name %}Example.xcworkspace/contents.xcworkspacedata similarity index 74% rename from templates/example/example/ios/{%= project.name %}Example.xcworkspace/contents.xcworkspacedata rename to templates/example/example/ios/{%- project.name %}Example.xcworkspace/contents.xcworkspacedata index 535fb56b9..cc1dea14d 100644 --- a/templates/example/example/ios/{%= project.name %}Example.xcworkspace/contents.xcworkspacedata +++ b/templates/example/example/ios/{%- project.name %}Example.xcworkspace/contents.xcworkspacedata @@ -2,7 +2,7 @@ + location = "group:<%- project.name %>Example.xcodeproj"> diff --git a/templates/example/example/ios/{%= project.name %}Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/templates/example/example/ios/{%- project.name %}Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from templates/example/example/ios/{%= project.name %}Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to templates/example/example/ios/{%- project.name %}Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/templates/example/example/ios/{%= project.name %}Example/AppDelegate.h b/templates/example/example/ios/{%- project.name %}Example/AppDelegate.h similarity index 100% rename from templates/example/example/ios/{%= project.name %}Example/AppDelegate.h rename to templates/example/example/ios/{%- project.name %}Example/AppDelegate.h diff --git a/templates/example/example/ios/{%= project.name %}Example/AppDelegate.m b/templates/example/example/ios/{%- project.name %}Example/AppDelegate.m similarity index 98% rename from templates/example/example/ios/{%= project.name %}Example/AppDelegate.m rename to templates/example/example/ios/{%- project.name %}Example/AppDelegate.m index 26c6b0002..19ed18922 100644 --- a/templates/example/example/ios/{%= project.name %}Example/AppDelegate.m +++ b/templates/example/example/ios/{%- project.name %}Example/AppDelegate.m @@ -38,7 +38,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( #endif RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge - moduleName:@"<%= project.name %>Example" + moduleName:@"<%- project.name %>Example" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; diff --git a/templates/example/example/ios/{%= project.name %}Example/Base.lproj/LaunchScreen.xib b/templates/example/example/ios/{%- project.name %}Example/Base.lproj/LaunchScreen.xib similarity index 98% rename from templates/example/example/ios/{%= project.name %}Example/Base.lproj/LaunchScreen.xib rename to templates/example/example/ios/{%- project.name %}Example/Base.lproj/LaunchScreen.xib index 2a8b0bc75..4157d6fb5 100644 --- a/templates/example/example/ios/{%= project.name %}Example/Base.lproj/LaunchScreen.xib +++ b/templates/example/example/ios/{%- project.name %}Example/Base.lproj/LaunchScreen.xib @@ -18,7 +18,7 @@ -