Skip to content

Commit

Permalink
Added: skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
we-vikram-wri231 committed Mar 19, 2024
1 parent 1c139f6 commit a7f40ed
Show file tree
Hide file tree
Showing 357 changed files with 27,311 additions and 0 deletions.
71 changes: 71 additions & 0 deletions skeletons/flutter/install/android/app/build.gradle.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 33
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "<%= package_name %>"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<%= package_name %>">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<%= package_name %>">
<application
android:label="<%= app_name %>"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="YOUR_FIREBASE_APP_DYNAMIC_LINK_PREFIX.page.link" android:scheme="https"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package <%= package_name %>

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<%= package_name %>">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
73 changes: 73 additions & 0 deletions skeletons/flutter/install/ios/Runner/Info.plist.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string><%= app_name %></string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string><%= package_name %></string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>team</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<!-- Below bloc is needed when camera access is needed in app -->
<key>NSCameraUsageDescription</key>
<string>Your NSCameraUsageDescription</string>
<!-- bloc ends -->
<!-- Below bloc is needed when photo library access is needed in app -->
<key>NSPhotoLibraryUsageDescription</key>
<string>Your NSPhotoLibraryUsageDescription</string>
<!-- bloc ends -->
<!-- Below bloc is needed when apple music access is needed in app -->
<key>NSAppleMusicUsageDescription</key>
<string>Your NSAppleMusicUsageDescription</string>
<!-- bloc ends -->
<!-- Below bloc is needed when using FileType.any or FileType.custom for picking files -->
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
<!-- Describe why your app needs to access background taks, such downloading files (from cloud services) -->
</array>
<!-- bloc ends -->
<key>UIStatusBarHidden</key>
<false/>
</dict>
</plist>
73 changes: 73 additions & 0 deletions skeletons/flutter/install/pubspec.yaml.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: <%= app_name_lower %>
description: <%= app_description %>

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
sdk: ">=2.19.6"
flutter: ">=3.7.11"

dependencies:
flutter:
sdk: flutter
# Annotations
json_annotation: ^4.8.1
json_serializable: ^6.6.2
# Console
colorize: ^3.0.0
# Log and Performance
sentry_flutter: ^6.20.1
# Icons
cupertino_icons: ^1.0.5
font_awesome_flutter: ^10.4.0
# State Management
get: ^4.6.5
# Api
dio: ^5.0.0
# Utilities
intl: ^0.18.0
get_storage: ^2.0.3
fluttertoast: ^8.1.3
file_picker: ^5.2.5
flutter_screenutil: ^5.6.1
# Firebase
firebase_dynamic_links: ^5.0.16
firebase_core: ^2.7.1
cloud_firestore: ^4.5.1
# Notifications
onesignal_flutter: ^3.5.0
flutter_local_notifications: ^14.0.1
timezone: ^0.9.1
pusher_channels_flutter: ^2.1.2

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
build_runner: ^2.3.3

flutter:

# below line allows you use Material Icons in application
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - assets/images/
# - assets/icons/
# - assets/music/

# To add custom fonts to your application
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
10 changes: 10 additions & 0 deletions skeletons/laravel/controller-plain.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php namespace <%= namespace %>;


use Illuminate\Routing\Controller;

class <%= name %>Controller extends Controller {



}
76 changes: 76 additions & 0 deletions skeletons/laravel/controller.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php namespace <%= namespace %>\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;

class <%= name %>Controller extends Controller {

/**
* Display a listing of the resource.
* @return Response
*/
public function index()
{
return view('index');
}

/**
* Show the form for creating a new resource.
* @return Response
*/
public function create(Request $request)
{
return view('create');
}

/**
* Store a newly created resource in storage.
* @return Response
*/
public function store(Request $request)
{
return response()->json([]);
}

/**
* Display the specified resource.
* @param int $id
* @return Response
*/
public function show(Request $request, $id)
{
return view('show');
}

/**
* Show the form for editing the specified resource.
* @param int $id
* @return Response
*/
public function edit(Request $request, $id)
{
return view('edit');
}

/**
* Update the specified resource in storage.
* @param int $id
* @return Response
*/
public function update(Request $request, $id)
{
return response()->json([]);
}

/**
* Remove the specified resource from storage.
* @param int $id
* @return Response
*/
public function destroy(Request $request, $id)
{
return response()->json([]);
}

}
Loading

0 comments on commit a7f40ed

Please sign in to comment.