@callstack/react-native-brownfield 2.2.0 → 3.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/expo-config-plugin/android/constants.js +2 -0
- package/lib/commonjs/expo-config-plugin/android/constants.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/android/gradleHelpers.js +2 -0
- package/lib/commonjs/expo-config-plugin/android/gradleHelpers.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/android/index.js +2 -0
- package/lib/commonjs/expo-config-plugin/android/index.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js +2 -0
- package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js +2 -0
- package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/app.plugin.js +2 -0
- package/lib/commonjs/expo-config-plugin/app.plugin.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/errors/SourceModificationError.js +2 -0
- package/lib/commonjs/expo-config-plugin/errors/SourceModificationError.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/index.js +2 -0
- package/lib/commonjs/expo-config-plugin/index.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/ios/index.js +2 -0
- package/lib/commonjs/expo-config-plugin/ios/index.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js +31 -0
- package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js +2 -0
- package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/ios/withIosFrameworkFiles.js +2 -0
- package/lib/commonjs/expo-config-plugin/ios/withIosFrameworkFiles.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js +2 -0
- package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/logging.js +2 -0
- package/lib/commonjs/expo-config-plugin/logging.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
- package/lib/commonjs/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
- package/lib/commonjs/expo-config-plugin/template/android/build.gradle.kts +90 -0
- package/lib/commonjs/expo-config-plugin/template/android/consumer-rules.pro +0 -0
- package/lib/commonjs/expo-config-plugin/template/android/gradle.properties +8 -0
- package/lib/commonjs/expo-config-plugin/template/android/proguard-rules.pro +21 -0
- package/lib/commonjs/expo-config-plugin/template/engine.js +2 -0
- package/lib/commonjs/expo-config-plugin/template/engine.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
- package/lib/commonjs/expo-config-plugin/template/ios/Info.plist +22 -0
- package/lib/commonjs/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
- package/lib/commonjs/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
- package/lib/commonjs/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
- package/lib/commonjs/expo-config-plugin/types/BrownfieldPluginConfig.js +2 -0
- package/lib/commonjs/expo-config-plugin/types/BrownfieldPluginConfig.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/types/RenderedTemplateFile.js +2 -0
- package/lib/commonjs/expo-config-plugin/types/RenderedTemplateFile.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js +2 -0
- package/lib/commonjs/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/types/index.js +2 -0
- package/lib/commonjs/expo-config-plugin/types/index.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js +2 -0
- package/lib/commonjs/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js.map +1 -0
- package/lib/commonjs/expo-config-plugin/withBrownfield.js +2 -0
- package/lib/commonjs/expo-config-plugin/withBrownfield.js.map +1 -0
- package/lib/module/expo-config-plugin/android/constants.js +2 -0
- package/lib/module/expo-config-plugin/android/constants.js.map +1 -0
- package/lib/module/expo-config-plugin/android/gradleHelpers.js +2 -0
- package/lib/module/expo-config-plugin/android/gradleHelpers.js.map +1 -0
- package/lib/module/expo-config-plugin/android/index.js +2 -0
- package/lib/module/expo-config-plugin/android/index.js.map +1 -0
- package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js +2 -0
- package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -0
- package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js +2 -0
- package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -0
- package/lib/module/expo-config-plugin/app.plugin.js +2 -0
- package/lib/module/expo-config-plugin/app.plugin.js.map +1 -0
- package/lib/module/expo-config-plugin/errors/SourceModificationError.js +2 -0
- package/lib/module/expo-config-plugin/errors/SourceModificationError.js.map +1 -0
- package/lib/module/expo-config-plugin/index.js +2 -0
- package/lib/module/expo-config-plugin/index.js.map +1 -0
- package/lib/module/expo-config-plugin/ios/index.js +2 -0
- package/lib/module/expo-config-plugin/ios/index.js.map +1 -0
- package/lib/module/expo-config-plugin/ios/podfileHelpers.js +31 -0
- package/lib/module/expo-config-plugin/ios/podfileHelpers.js.map +1 -0
- package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js +2 -0
- package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -0
- package/lib/module/expo-config-plugin/ios/withIosFrameworkFiles.js +2 -0
- package/lib/module/expo-config-plugin/ios/withIosFrameworkFiles.js.map +1 -0
- package/lib/module/expo-config-plugin/ios/xcodeHelpers.js +2 -0
- package/lib/module/expo-config-plugin/ios/xcodeHelpers.js.map +1 -0
- package/lib/module/expo-config-plugin/logging.js +2 -0
- package/lib/module/expo-config-plugin/logging.js.map +1 -0
- package/lib/module/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
- package/lib/module/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
- package/lib/module/expo-config-plugin/template/android/build.gradle.kts +90 -0
- package/lib/module/expo-config-plugin/template/android/consumer-rules.pro +0 -0
- package/lib/module/expo-config-plugin/template/android/gradle.properties +8 -0
- package/lib/module/expo-config-plugin/template/android/proguard-rules.pro +21 -0
- package/lib/module/expo-config-plugin/template/engine.js +2 -0
- package/lib/module/expo-config-plugin/template/engine.js.map +1 -0
- package/lib/module/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
- package/lib/module/expo-config-plugin/template/ios/Info.plist +22 -0
- package/lib/module/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
- package/lib/module/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
- package/lib/module/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
- package/lib/module/expo-config-plugin/types/BrownfieldPluginConfig.js +2 -0
- package/lib/module/expo-config-plugin/types/BrownfieldPluginConfig.js.map +1 -0
- package/lib/module/expo-config-plugin/types/RenderedTemplateFile.js +2 -0
- package/lib/module/expo-config-plugin/types/RenderedTemplateFile.js.map +1 -0
- package/lib/module/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js +2 -0
- package/lib/module/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js.map +1 -0
- package/lib/module/expo-config-plugin/types/index.js +2 -0
- package/lib/module/expo-config-plugin/types/index.js.map +1 -0
- package/lib/module/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js +2 -0
- package/lib/module/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js.map +1 -0
- package/lib/module/expo-config-plugin/withBrownfield.js +2 -0
- package/lib/module/expo-config-plugin/withBrownfield.js.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/constants.d.ts +3 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/gradleHelpers.d.ts +14 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/gradleHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +24 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts +13 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts +9 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/errors/SourceModificationError.d.ts +3 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/errors/SourceModificationError.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/podfileHelpers.d.ts +8 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/withBrownfieldIos.d.ts +14 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts +19 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts +33 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/logging.d.ts +9 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/logging.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/template/engine.d.ts +9 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/template/engine.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts +53 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/RenderedTemplateFile.d.ts +5 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/RenderedTemplateFile.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +50 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts +36 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/withBrownfield.d.ts +5 -0
- package/lib/typescript/commonjs/src/expo-config-plugin/withBrownfield.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/android/constants.d.ts +3 -0
- package/lib/typescript/module/src/expo-config-plugin/android/constants.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/android/gradleHelpers.d.ts +14 -0
- package/lib/typescript/module/src/expo-config-plugin/android/gradleHelpers.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/android/index.d.ts +4 -0
- package/lib/typescript/module/src/expo-config-plugin/android/index.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +24 -0
- package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts +13 -0
- package/lib/typescript/module/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts +9 -0
- package/lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/errors/SourceModificationError.d.ts +3 -0
- package/lib/typescript/module/src/expo-config-plugin/errors/SourceModificationError.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/index.d.ts +7 -0
- package/lib/typescript/module/src/expo-config-plugin/index.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/index.d.ts +5 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/index.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/podfileHelpers.d.ts +8 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/withBrownfieldIos.d.ts +14 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts +19 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts +33 -0
- package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/logging.d.ts +9 -0
- package/lib/typescript/module/src/expo-config-plugin/logging.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/template/engine.d.ts +9 -0
- package/lib/typescript/module/src/expo-config-plugin/template/engine.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts +53 -0
- package/lib/typescript/module/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/types/RenderedTemplateFile.d.ts +5 -0
- package/lib/typescript/module/src/expo-config-plugin/types/RenderedTemplateFile.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +50 -0
- package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/types/index.d.ts +5 -0
- package/lib/typescript/module/src/expo-config-plugin/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts +36 -0
- package/lib/typescript/module/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/expo-config-plugin/withBrownfield.d.ts +5 -0
- package/lib/typescript/module/src/expo-config-plugin/withBrownfield.d.ts.map +1 -0
- package/package.json +15 -3
- package/src/expo-config-plugin/android/constants.ts +2 -0
- package/src/expo-config-plugin/android/gradleHelpers.ts +72 -0
- package/src/expo-config-plugin/android/index.ts +6 -0
- package/src/expo-config-plugin/android/withAndroidModuleFiles.ts +139 -0
- package/src/expo-config-plugin/android/withBrownfieldAndroid.ts +48 -0
- package/src/expo-config-plugin/app.plugin.ts +10 -0
- package/src/expo-config-plugin/errors/SourceModificationError.ts +1 -0
- package/src/expo-config-plugin/index.ts +8 -0
- package/src/expo-config-plugin/ios/index.ts +7 -0
- package/src/expo-config-plugin/ios/podfileHelpers.ts +104 -0
- package/src/expo-config-plugin/ios/withBrownfieldIos.ts +95 -0
- package/src/expo-config-plugin/ios/withIosFrameworkFiles.ts +95 -0
- package/src/expo-config-plugin/ios/xcodeHelpers.ts +359 -0
- package/src/expo-config-plugin/logging.ts +29 -0
- package/src/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
- package/src/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
- package/src/expo-config-plugin/template/android/build.gradle.kts +90 -0
- package/src/expo-config-plugin/template/android/consumer-rules.pro +0 -0
- package/src/expo-config-plugin/template/android/gradle.properties +8 -0
- package/src/expo-config-plugin/template/android/proguard-rules.pro +21 -0
- package/src/expo-config-plugin/template/engine.ts +26 -0
- package/src/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
- package/src/expo-config-plugin/template/ios/Info.plist +22 -0
- package/src/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
- package/src/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
- package/src/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
- package/src/expo-config-plugin/types/BrownfieldPluginConfig.ts +67 -0
- package/src/expo-config-plugin/types/RenderedTemplateFile.ts +4 -0
- package/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.ts +58 -0
- package/src/expo-config-plugin/types/index.ts +6 -0
- package/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.ts +41 -0
- package/src/expo-config-plugin/withBrownfield.ts +112 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
import type { ResolvedBrownfieldPluginConfigWithAndroid } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Android Config Plugin for integration with @callstack/react-native-brownfield.
|
|
5
|
+
*
|
|
6
|
+
* This plugin:
|
|
7
|
+
* 1. Creates a new Android Library module for the Brownfield AAR
|
|
8
|
+
* 3. Modifies settings.gradle to include the new module
|
|
9
|
+
* 4. Modifies root build.gradle to add Brownfield Gradle plugin
|
|
10
|
+
* 5. Generates the ReactNativeHostManager class inside the module
|
|
11
|
+
*/
|
|
12
|
+
export declare const withBrownfieldAndroid: ConfigPlugin<ResolvedBrownfieldPluginConfigWithAndroid>;
|
|
13
|
+
//# sourceMappingURL=withBrownfieldAndroid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withBrownfieldAndroid.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/android/withBrownfieldAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;AAE1E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,yCAAyC,CA2B1C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expo config plugin entry point
|
|
3
|
+
*
|
|
4
|
+
* This file is the entry point for the Expo config plugin.
|
|
5
|
+
* It's referenced in the package.json under "./app.plugin" export.
|
|
6
|
+
*/
|
|
7
|
+
import withBrownfield from './withBrownfield';
|
|
8
|
+
export default withBrownfield;
|
|
9
|
+
//# sourceMappingURL=app.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.plugin.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/app.plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceModificationError.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/errors/SourceModificationError.ts"],"names":[],"mappings":"AAAA,qBAAa,uBAAwB,SAAQ,KAAK;CAAG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expo Config Plugin for integration with @callstack/react-native-brownfield.
|
|
3
|
+
* This plugin configures your Expo project to be packaged as an AAR (Android) or XCFramework (iOS).
|
|
4
|
+
*/
|
|
5
|
+
import withBrownfield from './withBrownfield';
|
|
6
|
+
export default withBrownfield;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { withBrownfieldIos } from './withBrownfieldIos';
|
|
2
|
+
export { withIosFrameworkFiles, createIosFramework, } from './withIosFrameworkFiles';
|
|
3
|
+
export { addFrameworkTarget } from './xcodeHelpers';
|
|
4
|
+
export { modifyPodfile } from './podfileHelpers';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modifies the Podfile to include the Brownfield framework target
|
|
3
|
+
* @param podfile The original Podfile content
|
|
4
|
+
* @param frameworkName The name of the framework target to add
|
|
5
|
+
* @returns The modified Podfile content
|
|
6
|
+
*/
|
|
7
|
+
export declare function modifyPodfile(podfile: string, frameworkName: string, isExpoPre55: boolean): string;
|
|
8
|
+
//# sourceMappingURL=podfileHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"podfileHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/podfileHelpers.ts"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,OAAO,GACnB,MAAM,CA6CR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
import type { ResolvedBrownfieldPluginConfigWithIos } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* iOS Config Plugin for integration with @callstack/react-native-brownfield.
|
|
5
|
+
*
|
|
6
|
+
* This plugin:
|
|
7
|
+
* 1. Creates a new Framework target in the Xcode project
|
|
8
|
+
* 2. Configures the Podfile to include the framework target
|
|
9
|
+
* 3. Adds necessary build configuration
|
|
10
|
+
* 4. Adds script phase to patch `ExpoModulesProvider.swift`
|
|
11
|
+
* 5. Adds the "Bundle React Native code and images" phase of Expo app target to the framework target
|
|
12
|
+
*/
|
|
13
|
+
export declare const withBrownfieldIos: ConfigPlugin<ResolvedBrownfieldPluginConfigWithIos>;
|
|
14
|
+
//# sourceMappingURL=withBrownfieldIos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withBrownfieldIos.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/withBrownfieldIos.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAC;AAGtE;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,qCAAqC,CAkEtC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
import type { RenderedTemplateFile, ResolvedBrownfieldPluginConfigWithIos } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns rendered source files for the iOS framework
|
|
5
|
+
* @param ios The iOS Brownfield plugin configuration
|
|
6
|
+
* @returns The list of framework source files
|
|
7
|
+
*/
|
|
8
|
+
export declare function getFrameworkSourceFiles(ios: ResolvedBrownfieldPluginConfigWithIos['ios']): RenderedTemplateFile[];
|
|
9
|
+
/**
|
|
10
|
+
* Creates the iOS framework directory structure and files
|
|
11
|
+
* @param iosDir The root iOS directory path
|
|
12
|
+
* @param config The resolved Brownfield plugin configuration
|
|
13
|
+
*/
|
|
14
|
+
export declare function createIosFramework(iosDir: string, config: ResolvedBrownfieldPluginConfigWithIos): void;
|
|
15
|
+
/**
|
|
16
|
+
* Dangerous mod that creates the iOS framework directory and files
|
|
17
|
+
*/
|
|
18
|
+
export declare const withIosFrameworkFiles: ConfigPlugin<ResolvedBrownfieldPluginConfigWithIos>;
|
|
19
|
+
//# sourceMappingURL=withIosFrameworkFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withIosFrameworkFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/withIosFrameworkFiles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,KAAK,EACV,oBAAoB,EACpB,qCAAqC,EACtC,MAAM,UAAU,CAAC;AAIlB;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,qCAAqC,CAAC,KAAK,CAAC,GAChD,oBAAoB,EAAE,CAiBxB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,qCAAqC,QA+B9C;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,qCAAqC,CAYtC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ModProps, XcodeProject } from '@expo/config-plugins';
|
|
2
|
+
import type { ResolvedBrownfieldPluginIosConfig } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Adds a new Framework target to the Xcode project for Brownfield packaging
|
|
5
|
+
* @throws If target creation fails
|
|
6
|
+
* @param project The Xcode project to modify
|
|
7
|
+
* @param options Framework target options
|
|
8
|
+
*/
|
|
9
|
+
export declare function addFrameworkTarget(project: XcodeProject, modRequest: ModProps<XcodeProject>, options: ResolvedBrownfieldPluginIosConfig): {
|
|
10
|
+
frameworkTargetUUID: string;
|
|
11
|
+
targetAlreadyExists: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function addSourceFilesBuildPhase(project: XcodeProject, frameworkTargetUUID: string, options: ResolvedBrownfieldPluginIosConfig): void;
|
|
14
|
+
/**
|
|
15
|
+
* Finds the "Bundle React Native code and images" build phase from the main app target
|
|
16
|
+
* and adds it to the framework target's build phases
|
|
17
|
+
* @param project The Xcode project
|
|
18
|
+
* @param targetUuid The UUID of the framework target
|
|
19
|
+
*/
|
|
20
|
+
export declare function copyBundleReactNativePhase(project: XcodeProject, targetUuid: string): void;
|
|
21
|
+
export declare function addExpoPre55ShellPatchScriptPhase(project: XcodeProject, { frameworkName, frameworkTargetUUID, }: {
|
|
22
|
+
frameworkName: string;
|
|
23
|
+
frameworkTargetUUID: string;
|
|
24
|
+
}): void;
|
|
25
|
+
/**
|
|
26
|
+
* Makes sure the patch expo modules provider phase is after the expo configure phase,
|
|
27
|
+
* otherwise the patched file would be overwritten by the expo configure phase
|
|
28
|
+
* @param project The Xcode project
|
|
29
|
+
* @param frameworkTargetUUID The UUID of the framework target
|
|
30
|
+
* @returns True if the build phases were modified, false otherwise
|
|
31
|
+
*/
|
|
32
|
+
export declare function ensureExpoPre55ShellPatchScriptPhaseIsOrdered(project: XcodeProject, frameworkTargetUUID: string): boolean;
|
|
33
|
+
//# sourceMappingURL=xcodeHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xcodeHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/xcodeHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGnE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAKlE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,EAClC,OAAO,EAAE,iCAAiC,GACzC;IACD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAoIA;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,EACrB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE,iCAAiC,QAkB3C;AAgDD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,GACjB,IAAI,CAmDN;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,YAAY,EACrB,EACE,aAAa,EACb,mBAAmB,GACpB,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,QAgBF;AAED;;;;;;GAMG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,YAAY,EACrB,mBAAmB,EAAE,MAAM,WAmC5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class Logger {
|
|
2
|
+
private static debug;
|
|
3
|
+
static setIsDebug(enabled: boolean): void;
|
|
4
|
+
static logInfo(message: string, ...args: any[]): void;
|
|
5
|
+
static logDebug(message: string, ...args: any[]): void;
|
|
6
|
+
static logWarning(message: string, ...args: any[]): void;
|
|
7
|
+
static logError(message: string, ...args: any[]): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/logging.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAkB;IAEtC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO;IAIlC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAQ/C,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAIjD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;CAGhD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a template file for the specified platform with given parameters
|
|
3
|
+
* @param platform The platform name (specifies the subdirectory of template/)
|
|
4
|
+
* @param name The template file name (with extension)
|
|
5
|
+
* @param params The params to be replaced in the template
|
|
6
|
+
* @returns The rendered template content
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderTemplate(platform: 'ios' | 'android', name: string, params?: Record<`{{${string}}}`, unknown>): string;
|
|
9
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/template/engine.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,KAAK,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,IAAI,EAAE,OAAO,CAAC,GACxC,MAAM,CAWR"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BrownfieldPluginAndroidConfig, ResolvedBrownfieldPluginAndroidConfig } from './android/BrownfieldPluginAndroidConfig';
|
|
2
|
+
import type { BrownfieldPluginIosConfig, ResolvedBrownfieldPluginIosConfig } from './ios/BrownfieldPluginIosConfig';
|
|
3
|
+
/**
|
|
4
|
+
* Main configuration for the Brownfield Expo config plugin
|
|
5
|
+
*/
|
|
6
|
+
export interface BrownfieldPluginConfig {
|
|
7
|
+
/**
|
|
8
|
+
* iOS-specific configuration
|
|
9
|
+
*/
|
|
10
|
+
ios?: BrownfieldPluginIosConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Android-specific configuration
|
|
13
|
+
*/
|
|
14
|
+
android?: BrownfieldPluginAndroidConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to enable debug logging during plugin execution
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
debug?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Internal configuration with resolved defaults
|
|
23
|
+
* Note that the platform-specific configs can be null if the platform is not configured
|
|
24
|
+
*/
|
|
25
|
+
export interface ResolvedBrownfieldPluginConfig extends Required<Omit<BrownfieldPluginConfig, 'ios' | 'android'>> {
|
|
26
|
+
/**
|
|
27
|
+
* iOS-specific configuration
|
|
28
|
+
*/
|
|
29
|
+
ios: ResolvedBrownfieldPluginIosConfig | null;
|
|
30
|
+
/**
|
|
31
|
+
* Android-specific configuration
|
|
32
|
+
*/
|
|
33
|
+
android: ResolvedBrownfieldPluginAndroidConfig | null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Resolved Brownfield configuration including Android config
|
|
37
|
+
*/
|
|
38
|
+
export interface ResolvedBrownfieldPluginConfigWithAndroid extends ResolvedBrownfieldPluginConfig {
|
|
39
|
+
/**
|
|
40
|
+
* Android-specific configuration
|
|
41
|
+
*/
|
|
42
|
+
android: ResolvedBrownfieldPluginAndroidConfig;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolved Brownfield configuration including iOS config
|
|
46
|
+
*/
|
|
47
|
+
export interface ResolvedBrownfieldPluginConfigWithIos extends ResolvedBrownfieldPluginConfig {
|
|
48
|
+
/**
|
|
49
|
+
* iOS-specific configuration
|
|
50
|
+
*/
|
|
51
|
+
ios: ResolvedBrownfieldPluginIosConfig;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=BrownfieldPluginConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrownfieldPluginConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/BrownfieldPluginConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,GAAG,CAAC,EAAE,yBAAyB,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA+B,SAAQ,QAAQ,CAC9D,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,SAAS,CAAC,CAChD;IACC;;OAEG;IACH,GAAG,EAAE,iCAAiC,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,qCAAqC,GAAG,IAAI,CAAC;CACvD;AAED;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,8BAA8B;IAC/F;;OAEG;IACH,OAAO,EAAE,qCAAqC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,qCAAsC,SAAQ,8BAA8B;IAC3F;;OAEG;IACH,GAAG,EAAE,iCAAiC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderedTemplateFile.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/RenderedTemplateFile.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Android-specific configuration for Brownfield config plugin
|
|
3
|
+
*/
|
|
4
|
+
export interface BrownfieldPluginAndroidConfig {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the Android library module to create
|
|
7
|
+
* @default "brownfieldlib"
|
|
8
|
+
*/
|
|
9
|
+
moduleName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The package name for the Android library module
|
|
12
|
+
* @default app's package name
|
|
13
|
+
*/
|
|
14
|
+
packageName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Minimum SDK version for the Android library
|
|
17
|
+
* @default 24
|
|
18
|
+
*/
|
|
19
|
+
minSdkVersion?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Target SDK version for the Android library
|
|
22
|
+
* @default 35
|
|
23
|
+
*/
|
|
24
|
+
targetSdkVersion?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Compile SDK version for the Android library
|
|
27
|
+
* @default 35
|
|
28
|
+
*/
|
|
29
|
+
compileSdkVersion?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Group ID for Maven publishing
|
|
32
|
+
* @default package name
|
|
33
|
+
*/
|
|
34
|
+
groupId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Artifact ID for Maven publishing
|
|
37
|
+
* @default module name
|
|
38
|
+
*/
|
|
39
|
+
artifactId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Version string for Maven publishing
|
|
42
|
+
* @default "0.0.1-SNAPSHOT"
|
|
43
|
+
*/
|
|
44
|
+
version?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Android configuration with resolved defaults (all fields required)
|
|
48
|
+
*/
|
|
49
|
+
export type ResolvedBrownfieldPluginAndroidConfig = Required<BrownfieldPluginAndroidConfig>;
|
|
50
|
+
//# sourceMappingURL=BrownfieldPluginAndroidConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrownfieldPluginAndroidConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAC/C,QAAQ,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,iCAAiC,CAAC;AAErD,mBAAmB,0BAA0B,CAAC;AAE9C,mBAAmB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iOS-specific configuration for Brownfield config plugin
|
|
3
|
+
*/
|
|
4
|
+
export interface BrownfieldPluginIosConfig {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the framework to create
|
|
7
|
+
* This will be used as the XCFramework name
|
|
8
|
+
* @default "BrownfieldLib"
|
|
9
|
+
*/
|
|
10
|
+
frameworkName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The bundle identifier for the framework
|
|
13
|
+
* @default app's bundle identifier with ".brownfield" suffix
|
|
14
|
+
*/
|
|
15
|
+
bundleIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Custom build settings to apply to the framework build
|
|
18
|
+
*/
|
|
19
|
+
buildSettings?: Record<string, string | boolean | number>;
|
|
20
|
+
/**
|
|
21
|
+
* Minimum iOS deployment target
|
|
22
|
+
* @default "15.0"
|
|
23
|
+
*/
|
|
24
|
+
deploymentTarget?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The version of the framework, must be an integer or floating point (e.g. 1, or 2.1)
|
|
27
|
+
* @default 1
|
|
28
|
+
* @see https://developer.apple.com/documentation/xcode/build-settings-reference#Current-Project-Version
|
|
29
|
+
*/
|
|
30
|
+
frameworkVersion?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* iOS configuration with resolved defaults (all fields required)
|
|
34
|
+
*/
|
|
35
|
+
export type ResolvedBrownfieldPluginIosConfig = Required<BrownfieldPluginIosConfig>;
|
|
36
|
+
//# sourceMappingURL=BrownfieldPluginIosConfig.d.ts.map
|
package/lib/typescript/module/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrownfieldPluginIosConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAE1D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAC3C,QAAQ,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withBrownfield.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/withBrownfield.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,SAAS,CAAC;;AA8FjB,wBAIE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@callstack/react-native-brownfield",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Michal Chudziak <mike.chudziak@callstack.com>",
|
|
6
6
|
"bin": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"react-native": "src/index",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
+
"source": "./src/index.ts",
|
|
23
24
|
"import": {
|
|
24
25
|
"types": "./lib/typescript/module/src/index.d.ts",
|
|
25
26
|
"default": "./lib/module/index.js"
|
|
@@ -29,13 +30,24 @@
|
|
|
29
30
|
"default": "./lib/commonjs/index.js"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
33
|
+
"./app.plugin.js": {
|
|
34
|
+
"source": "./src/expo-config-plugin/app.plugin.ts",
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts",
|
|
37
|
+
"default": "./lib/module/expo-config-plugin/app.plugin.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts",
|
|
41
|
+
"default": "./lib/commonjs/expo-config-plugin/app.plugin.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
32
44
|
"./package.json": "./package.json"
|
|
33
45
|
},
|
|
34
46
|
"scripts": {
|
|
35
47
|
"lint": "eslint .",
|
|
36
48
|
"typecheck": "tsc --noEmit",
|
|
37
49
|
"build": "bob build",
|
|
38
|
-
"dev": "nodemon --
|
|
50
|
+
"dev": "nodemon --ext '*' --watch src --exec \"bob build\"",
|
|
39
51
|
"build:brownfield": "yarn run build",
|
|
40
52
|
"prepack": "cp ../../README.md ./README.md",
|
|
41
53
|
"postpack": "rm ./README.md"
|
|
@@ -73,7 +85,7 @@
|
|
|
73
85
|
"react-native": "*"
|
|
74
86
|
},
|
|
75
87
|
"dependencies": {
|
|
76
|
-
"@callstack/brownfield-cli": "^
|
|
88
|
+
"@callstack/brownfield-cli": "^2.0.0-rc.1"
|
|
77
89
|
},
|
|
78
90
|
"devDependencies": {
|
|
79
91
|
"@babel/core": "^7.25.2",
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { brownfieldGradlePluginDependency } from './constants';
|
|
2
|
+
import { Logger } from '../logging';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Modifies the root build.gradle to add the Brownfield Gradle plugin dependency
|
|
6
|
+
* @param contents The original build.gradle content
|
|
7
|
+
* @returns The modified build.gradle content
|
|
8
|
+
*/
|
|
9
|
+
export function modifyRootBuildGradle(contents: string): string {
|
|
10
|
+
// check if already added
|
|
11
|
+
if (contents.includes('brownfield-gradle-plugin')) {
|
|
12
|
+
Logger.logDebug(
|
|
13
|
+
'Brownfield Gradle plugin already in root build.gradle, skipping'
|
|
14
|
+
);
|
|
15
|
+
return contents;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
Logger.logDebug(
|
|
19
|
+
`Modifying root build.gradle to add the Gradle Brownfield plugin`
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
// find the buildscript dependencies block
|
|
23
|
+
const buildscriptDepsRegex =
|
|
24
|
+
/(buildscript\s*\{[\s\S]*?dependencies\s*\{[\s\S]*?)(})/m;
|
|
25
|
+
const match = contents.match(buildscriptDepsRegex);
|
|
26
|
+
|
|
27
|
+
if (!match) {
|
|
28
|
+
throw new Error('Could not locate buildscript block in root build.gradle');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// insert before the closing brace of dependencies
|
|
32
|
+
const insertion = `\t${brownfieldGradlePluginDependency}\n\t`;
|
|
33
|
+
const modifiedContents = contents.replace(
|
|
34
|
+
buildscriptDepsRegex,
|
|
35
|
+
`$1${insertion}$2`
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
Logger.logDebug('Added Brownfield Gradle plugin to root build.gradle');
|
|
39
|
+
return modifiedContents;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Modifies settings.gradle to include the Brownfield module
|
|
44
|
+
* @param contents The original settings.gradle content
|
|
45
|
+
* @param moduleName The name of the Brownfield module to include
|
|
46
|
+
* @returns The modified settings.gradle content
|
|
47
|
+
*/
|
|
48
|
+
export function modifySettingsGradle(
|
|
49
|
+
contents: string,
|
|
50
|
+
moduleName: string
|
|
51
|
+
): string {
|
|
52
|
+
const includeStatement = `include ':${moduleName}'`;
|
|
53
|
+
|
|
54
|
+
// check if already included
|
|
55
|
+
if (contents.includes(includeStatement)) {
|
|
56
|
+
Logger.logDebug(
|
|
57
|
+
`Module "${moduleName}" already in settings.gradle, skipping`
|
|
58
|
+
);
|
|
59
|
+
return contents;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Logger.logDebug(
|
|
63
|
+
`Modifying settings.gradle to include module "${moduleName}"`
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
// add the include statement at the end
|
|
67
|
+
const modifiedContents = contents + `\n${includeStatement}\n`;
|
|
68
|
+
|
|
69
|
+
Logger.logDebug(`Added module "${moduleName}" to settings.gradle`);
|
|
70
|
+
|
|
71
|
+
return modifiedContents;
|
|
72
|
+
}
|