beever-create 0.1.1 → 0.1.4
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/dist/index.js +214 -45
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/templates/expo/app.config.js +1 -0
- package/templates/expo/mobile/app.config.js +11 -0
- package/templates/{package.json → expo/package.json} +3 -2
- package/templates/standalone/.eslintrc.js +4 -0
- package/templates/standalone/.prettierrc.js +5 -0
- package/templates/standalone/.watchmanconfig +1 -0
- package/templates/standalone/Gemfile +17 -0
- package/templates/standalone/android/app/build.gradle +119 -0
- package/templates/standalone/android/app/debug.keystore +0 -0
- package/templates/standalone/android/app/proguard-rules.pro +10 -0
- package/templates/standalone/android/app/src/main/AndroidManifest.xml +27 -0
- package/templates/standalone/android/app/src/main/java/com/beevernativetemplatetest/MainActivity.kt +22 -0
- package/templates/standalone/android/app/src/main/java/com/beevernativetemplatetest/MainApplication.kt +27 -0
- package/templates/standalone/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/templates/standalone/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/standalone/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/standalone/android/app/src/main/res/values/strings.xml +3 -0
- package/templates/standalone/android/app/src/main/res/values/styles.xml +9 -0
- package/templates/standalone/android/build.gradle +21 -0
- package/templates/standalone/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/standalone/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/templates/standalone/android/gradle.properties +49 -0
- package/templates/standalone/android/gradlew +248 -0
- package/templates/standalone/android/gradlew.bat +98 -0
- package/templates/standalone/android/settings.gradle +6 -0
- package/templates/standalone/app.json +4 -0
- package/templates/standalone/babel.config.js +3 -0
- package/templates/standalone/index.js +5 -0
- package/templates/standalone/ios/.xcode.env +11 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/AppDelegate.swift +11 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/Images.xcassets/Contents.json +6 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/Info.plist +78 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/LaunchScreen.storyboard +47 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/PrivacyInfo.xcprivacy +37 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest/SceneDelegate.swift +56 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest.xcodeproj/project.pbxproj +479 -0
- package/templates/standalone/ios/BeeverNativeTemplateTest.xcodeproj/xcshareddata/xcschemes/BeeverNativeTemplateTest.xcscheme +76 -0
- package/templates/standalone/ios/Podfile +34 -0
- package/templates/standalone/jest.config.js +3 -0
- package/templates/standalone/metro.config.js +11 -0
- package/templates/standalone/package.json +47 -0
- package/templates/standalone/tsconfig.json.template +5 -0
- package/templates/mobile/app.json +0 -9
- /package/templates/{features → common/features}/welcome/index.ts +0 -0
- /package/templates/{features → common/features}/welcome/pages/WelcomePage.tsx +0 -0
- /package/templates/{features → common/features}/welcome/screens/WelcomeScreen.tsx +0 -0
- /package/templates/{mobile → common/mobile}/App.tsx +0 -0
- /package/templates/{shared → common/shared}/index.ts +0 -0
- /package/templates/{web → common/web}/index.html +0 -0
- /package/templates/{web → common/web}/main.tsx +0 -0
- /package/templates/{web → common/web}/vite.config.ts +0 -0
- /package/templates/{README.md → expo/README.md} +0 -0
- /package/templates/{mobile → expo/mobile}/index.ts +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
6
|
+
<true/>
|
|
7
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
+
<string>en</string>
|
|
9
|
+
<key>CFBundleDisplayName</key>
|
|
10
|
+
<string>{{displayName}}</string>
|
|
11
|
+
<key>CFBundleExecutable</key>
|
|
12
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
13
|
+
<key>CFBundleIdentifier</key>
|
|
14
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
15
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
16
|
+
<string>6.0</string>
|
|
17
|
+
<key>CFBundleName</key>
|
|
18
|
+
<string>$(PRODUCT_NAME)</string>
|
|
19
|
+
<key>CFBundlePackageType</key>
|
|
20
|
+
<string>APPL</string>
|
|
21
|
+
<key>CFBundleShortVersionString</key>
|
|
22
|
+
<string>$(MARKETING_VERSION)</string>
|
|
23
|
+
<key>CFBundleSignature</key>
|
|
24
|
+
<string>????</string>
|
|
25
|
+
<key>CFBundleVersion</key>
|
|
26
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
27
|
+
<key>LSRequiresIPhoneOS</key>
|
|
28
|
+
<true/>
|
|
29
|
+
<key>NSAppTransportSecurity</key>
|
|
30
|
+
<dict>
|
|
31
|
+
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
|
|
32
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
33
|
+
<false/>
|
|
34
|
+
<key>NSAllowsLocalNetworking</key>
|
|
35
|
+
<true/>
|
|
36
|
+
</dict>
|
|
37
|
+
<key>NSLocationWhenInUseUsageDescription</key>
|
|
38
|
+
<string></string>
|
|
39
|
+
<key>RCTNewArchEnabled</key>
|
|
40
|
+
<true/>
|
|
41
|
+
<key>UIApplicationSceneManifest</key>
|
|
42
|
+
<dict>
|
|
43
|
+
<key>UIApplicationSupportsMultipleScenes</key>
|
|
44
|
+
<false/>
|
|
45
|
+
<key>UISceneConfigurations</key>
|
|
46
|
+
<dict>
|
|
47
|
+
<key>UIWindowSceneSessionRoleApplication</key>
|
|
48
|
+
<array>
|
|
49
|
+
<dict>
|
|
50
|
+
<key>UISceneConfigurationName</key>
|
|
51
|
+
<string>Default Configuration</string>
|
|
52
|
+
<key>UISceneDelegateClassName</key>
|
|
53
|
+
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
|
|
54
|
+
</dict>
|
|
55
|
+
</array>
|
|
56
|
+
</dict>
|
|
57
|
+
</dict>
|
|
58
|
+
<key>UILaunchStoryboardName</key>
|
|
59
|
+
<string>LaunchScreen</string>
|
|
60
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
61
|
+
<array>
|
|
62
|
+
<string>arm64</string>
|
|
63
|
+
</array>
|
|
64
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
65
|
+
<array>
|
|
66
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
67
|
+
</array>
|
|
68
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
69
|
+
<array>
|
|
70
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
71
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
72
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
73
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
74
|
+
</array>
|
|
75
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
76
|
+
<true/>
|
|
77
|
+
</dict>
|
|
78
|
+
</plist>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
3
|
+
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
|
4
|
+
<dependencies>
|
|
5
|
+
<deployment identifier="iOS"/>
|
|
6
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
|
|
7
|
+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
8
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
9
|
+
</dependencies>
|
|
10
|
+
<scenes>
|
|
11
|
+
<!--View Controller-->
|
|
12
|
+
<scene sceneID="EHf-IW-A2E">
|
|
13
|
+
<objects>
|
|
14
|
+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
|
15
|
+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
|
16
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
17
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
18
|
+
<subviews>
|
|
19
|
+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="{{displayName}}" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
|
|
20
|
+
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
|
|
21
|
+
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
|
|
22
|
+
<nil key="highlightedColor"/>
|
|
23
|
+
</label>
|
|
24
|
+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
|
|
25
|
+
<rect key="frame" x="0.0" y="626" width="375" height="21"/>
|
|
26
|
+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
|
27
|
+
<nil key="highlightedColor"/>
|
|
28
|
+
</label>
|
|
29
|
+
</subviews>
|
|
30
|
+
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
|
|
31
|
+
<constraints>
|
|
32
|
+
<constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
|
|
33
|
+
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
|
|
34
|
+
<constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
|
|
35
|
+
<constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
|
|
36
|
+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
|
|
37
|
+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
|
|
38
|
+
</constraints>
|
|
39
|
+
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
|
|
40
|
+
</view>
|
|
41
|
+
</viewController>
|
|
42
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
43
|
+
</objects>
|
|
44
|
+
<point key="canvasLocation" x="52.173913043478265" y="375"/>
|
|
45
|
+
</scene>
|
|
46
|
+
</scenes>
|
|
47
|
+
</document>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
9
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
10
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>C617.1</string>
|
|
13
|
+
</array>
|
|
14
|
+
</dict>
|
|
15
|
+
<dict>
|
|
16
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
17
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
18
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>CA92.1</string>
|
|
21
|
+
</array>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
25
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
26
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>35F9.1</string>
|
|
29
|
+
</array>
|
|
30
|
+
</dict>
|
|
31
|
+
</array>
|
|
32
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
33
|
+
<array/>
|
|
34
|
+
<key>NSPrivacyTracking</key>
|
|
35
|
+
<false/>
|
|
36
|
+
</dict>
|
|
37
|
+
</plist>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React
|
|
2
|
+
import React_RCTAppDelegate
|
|
3
|
+
import ReactAppDependencyProvider
|
|
4
|
+
import UIKit
|
|
5
|
+
|
|
6
|
+
class SceneDelegate: RCTDefaultReactNativeFactoryDelegate, UIWindowSceneDelegate {
|
|
7
|
+
var window: UIWindow?
|
|
8
|
+
var reactNativeFactory: RCTReactNativeFactory?
|
|
9
|
+
|
|
10
|
+
func scene(
|
|
11
|
+
_ scene: UIScene,
|
|
12
|
+
willConnectTo session: UISceneSession,
|
|
13
|
+
options connectionOptions: UIScene.ConnectionOptions
|
|
14
|
+
) {
|
|
15
|
+
guard let windowScene = scene as? UIWindowScene else {
|
|
16
|
+
return
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
dependencyProvider = RCTAppDependencyProvider()
|
|
20
|
+
reactNativeFactory = RCTReactNativeFactory(delegate: self)
|
|
21
|
+
window = UIWindow(windowScene: windowScene)
|
|
22
|
+
|
|
23
|
+
#if DEBUG
|
|
24
|
+
let devMenuConfiguration = RCTDevMenuConfiguration(
|
|
25
|
+
devMenuEnabled: true,
|
|
26
|
+
shakeGestureEnabled: true,
|
|
27
|
+
keyboardShortcutsEnabled: true
|
|
28
|
+
)
|
|
29
|
+
reactNativeFactory?.devMenuConfiguration = devMenuConfiguration
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
reactNativeFactory?.startReactNative(
|
|
33
|
+
withModuleName: "{{appName}}",
|
|
34
|
+
in: window,
|
|
35
|
+
connectionOptions: connectionOptions
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
|
|
42
|
+
RCTLinkingManager.scene(scene, openURLContexts: URLContexts)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
|
|
46
|
+
RCTLinkingManager.scene(scene, continue: userActivity)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
override func bundleURL() -> URL? {
|
|
50
|
+
#if DEBUG
|
|
51
|
+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
|
|
52
|
+
#else
|
|
53
|
+
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
|
54
|
+
#endif
|
|
55
|
+
}
|
|
56
|
+
}
|