Skip to content

Commit a7f40ed

Browse files
Added: skeletons
1 parent 1c139f6 commit a7f40ed

File tree

357 files changed

+27311
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+27311
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion 33
30+
ndkVersion flutter.ndkVersion
31+
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += 'src/main/kotlin'
43+
}
44+
45+
defaultConfig {
46+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47+
applicationId "<%= package_name %>"
48+
// You can update the following values to match your application needs.
49+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50+
minSdkVersion 19
51+
targetSdkVersion flutter.targetSdkVersion
52+
versionCode flutterVersionCode.toInteger()
53+
versionName flutterVersionName
54+
}
55+
56+
buildTypes {
57+
release {
58+
// TODO: Add your own signing config for the release build.
59+
// Signing with the debug keys for now, so `flutter run --release` works.
60+
signingConfig signingConfigs.debug
61+
}
62+
}
63+
}
64+
65+
flutter {
66+
source '../..'
67+
}
68+
69+
dependencies {
70+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="<%= package_name %>">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
5+
to allow setting breakpoints, to provide hot reload, etc.
6+
-->
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
</manifest>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="<%= package_name %>">
3+
<application
4+
android:label="<%= app_name %>"
5+
android:name="${applicationName}"
6+
android:icon="@mipmap/launcher_icon">
7+
<activity
8+
android:name=".MainActivity"
9+
android:exported="true"
10+
android:launchMode="singleTop"
11+
android:theme="@style/LaunchTheme"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:hardwareAccelerated="true"
14+
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN"/>
25+
<category android:name="android.intent.category.LAUNCHER"/>
26+
</intent-filter>
27+
<intent-filter android:autoVerify="true">
28+
<action android:name="android.intent.action.VIEW"/>
29+
<category android:name="android.intent.category.DEFAULT"/>
30+
<category android:name="android.intent.category.BROWSABLE"/>
31+
<data android:host="YOUR_FIREBASE_APP_DYNAMIC_LINK_PREFIX.page.link" android:scheme="https"/>
32+
</intent-filter>
33+
</activity>
34+
<!-- Don't delete the meta-data below.
35+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
36+
<meta-data
37+
android:name="flutterEmbedding"
38+
android:value="2" />
39+
</application>
40+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
41+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package <%= package_name %>
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="<%= package_name %>">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
5+
to allow setting breakpoints, to provide hot reload, etc.
6+
-->
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
</manifest>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string><%= app_name %></string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string><%= package_name %></string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>team</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>$(FLUTTER_BUILD_NAME)</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleVersion</key>
24+
<string>$(FLUTTER_BUILD_NUMBER)</string>
25+
<key>LSRequiresIPhoneOS</key>
26+
<true/>
27+
<key>UILaunchStoryboardName</key>
28+
<string>LaunchScreen</string>
29+
<key>UIMainStoryboardFile</key>
30+
<string>Main</string>
31+
<key>UISupportedInterfaceOrientations</key>
32+
<array>
33+
<string>UIInterfaceOrientationPortrait</string>
34+
<string>UIInterfaceOrientationLandscapeLeft</string>
35+
<string>UIInterfaceOrientationLandscapeRight</string>
36+
</array>
37+
<key>UISupportedInterfaceOrientations~ipad</key>
38+
<array>
39+
<string>UIInterfaceOrientationPortrait</string>
40+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
41+
<string>UIInterfaceOrientationLandscapeLeft</string>
42+
<string>UIInterfaceOrientationLandscapeRight</string>
43+
</array>
44+
<key>UIViewControllerBasedStatusBarAppearance</key>
45+
<false/>
46+
<key>CADisableMinimumFrameDurationOnPhone</key>
47+
<true/>
48+
<key>UIApplicationSupportsIndirectInputEvents</key>
49+
<true/>
50+
<!-- Below bloc is needed when camera access is needed in app -->
51+
<key>NSCameraUsageDescription</key>
52+
<string>Your NSCameraUsageDescription</string>
53+
<!-- bloc ends -->
54+
<!-- Below bloc is needed when photo library access is needed in app -->
55+
<key>NSPhotoLibraryUsageDescription</key>
56+
<string>Your NSPhotoLibraryUsageDescription</string>
57+
<!-- bloc ends -->
58+
<!-- Below bloc is needed when apple music access is needed in app -->
59+
<key>NSAppleMusicUsageDescription</key>
60+
<string>Your NSAppleMusicUsageDescription</string>
61+
<!-- bloc ends -->
62+
<!-- Below bloc is needed when using FileType.any or FileType.custom for picking files -->
63+
<key>UIBackgroundModes</key>
64+
<array>
65+
<string>fetch</string>
66+
<string>remote-notification</string>
67+
<!-- Describe why your app needs to access background taks, such downloading files (from cloud services) -->
68+
</array>
69+
<!-- bloc ends -->
70+
<key>UIStatusBarHidden</key>
71+
<false/>
72+
</dict>
73+
</plist>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: <%= app_name_lower %>
2+
description: <%= app_description %>
3+
4+
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
5+
6+
version: 1.0.0+1
7+
8+
environment:
9+
sdk: ">=2.19.6"
10+
flutter: ">=3.7.11"
11+
12+
dependencies:
13+
flutter:
14+
sdk: flutter
15+
# Annotations
16+
json_annotation: ^4.8.1
17+
json_serializable: ^6.6.2
18+
# Console
19+
colorize: ^3.0.0
20+
# Log and Performance
21+
sentry_flutter: ^6.20.1
22+
# Icons
23+
cupertino_icons: ^1.0.5
24+
font_awesome_flutter: ^10.4.0
25+
# State Management
26+
get: ^4.6.5
27+
# Api
28+
dio: ^5.0.0
29+
# Utilities
30+
intl: ^0.18.0
31+
get_storage: ^2.0.3
32+
fluttertoast: ^8.1.3
33+
file_picker: ^5.2.5
34+
flutter_screenutil: ^5.6.1
35+
# Firebase
36+
firebase_dynamic_links: ^5.0.16
37+
firebase_core: ^2.7.1
38+
cloud_firestore: ^4.5.1
39+
# Notifications
40+
onesignal_flutter: ^3.5.0
41+
flutter_local_notifications: ^14.0.1
42+
timezone: ^0.9.1
43+
pusher_channels_flutter: ^2.1.2
44+
45+
dev_dependencies:
46+
flutter_test:
47+
sdk: flutter
48+
flutter_lints: ^2.0.1
49+
build_runner: ^2.3.3
50+
51+
flutter:
52+
53+
# below line allows you use Material Icons in application
54+
uses-material-design: true
55+
56+
# To add assets to your application, add an assets section, like this:
57+
# assets:
58+
# - assets/images/
59+
# - assets/icons/
60+
# - assets/music/
61+
62+
# To add custom fonts to your application
63+
# fonts:
64+
# - family: Schyler
65+
# fonts:
66+
# - asset: fonts/Schyler-Regular.ttf
67+
# - asset: fonts/Schyler-Italic.ttf
68+
# style: italic
69+
# - family: Trajan Pro
70+
# fonts:
71+
# - asset: fonts/TrajanPro.ttf
72+
# - asset: fonts/TrajanPro_Bold.ttf
73+
# weight: 700
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php namespace <%= namespace %>;
2+
3+
4+
use Illuminate\Routing\Controller;
5+
6+
class <%= name %>Controller extends Controller {
7+
8+
9+
10+
}

skeletons/laravel/controller.ejs

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?php namespace <%= namespace %>\Http\Controllers;
2+
3+
use Illuminate\Http\Request;
4+
use Illuminate\Http\Response;
5+
use Illuminate\Routing\Controller;
6+
7+
class <%= name %>Controller extends Controller {
8+
9+
/**
10+
* Display a listing of the resource.
11+
* @return Response
12+
*/
13+
public function index()
14+
{
15+
return view('index');
16+
}
17+
18+
/**
19+
* Show the form for creating a new resource.
20+
* @return Response
21+
*/
22+
public function create(Request $request)
23+
{
24+
return view('create');
25+
}
26+
27+
/**
28+
* Store a newly created resource in storage.
29+
* @return Response
30+
*/
31+
public function store(Request $request)
32+
{
33+
return response()->json([]);
34+
}
35+
36+
/**
37+
* Display the specified resource.
38+
* @param int $id
39+
* @return Response
40+
*/
41+
public function show(Request $request, $id)
42+
{
43+
return view('show');
44+
}
45+
46+
/**
47+
* Show the form for editing the specified resource.
48+
* @param int $id
49+
* @return Response
50+
*/
51+
public function edit(Request $request, $id)
52+
{
53+
return view('edit');
54+
}
55+
56+
/**
57+
* Update the specified resource in storage.
58+
* @param int $id
59+
* @return Response
60+
*/
61+
public function update(Request $request, $id)
62+
{
63+
return response()->json([]);
64+
}
65+
66+
/**
67+
* Remove the specified resource from storage.
68+
* @param int $id
69+
* @return Response
70+
*/
71+
public function destroy(Request $request, $id)
72+
{
73+
return response()->json([]);
74+
}
75+
76+
}

0 commit comments

Comments
 (0)