Skip to content

Commit d1e3ad0

Browse files
authored
Merge pull request #1 from gibahjoe/source_gen
Updated license and added example
2 parents a16b514 + f76869e commit d1e3ad0

File tree

107 files changed

+4010
-49
lines changed

Some content is hidden

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

107 files changed

+4010
-49
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ build/
99

1010
# Directory created by dartdoc
1111
doc/api/
12+
.idea/vcs.xml

CHANGELOG.md

100644100755
File mode changed.

README.md

100644100755
File mode changed.

bin/main.dart

Lines changed: 0 additions & 23 deletions
This file was deleted.

build.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/.gitignore

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
/build/
32+
33+
# Web related
34+
lib/generated_plugin_registrant.dart
35+
36+
# Exceptions to above rules.
37+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
38+
### macOS template
39+
# General
40+
.AppleDouble
41+
.LSOverride
42+
43+
# Icon must end with two \r
44+
Icon
45+
46+
# Thumbnails
47+
._*
48+
49+
# Files that might appear in the root of a volume
50+
.DocumentRevisions-V100
51+
.fseventsd
52+
.Spotlight-V100
53+
.TemporaryItems
54+
.Trashes
55+
.VolumeIcon.icns
56+
.com.apple.timemachine.donotpresent
57+
58+
# Directories potentially created on remote AFP share
59+
.AppleDB
60+
.AppleDesktop
61+
Network Trash Folder
62+
Temporary Items
63+
.apdisk
64+
65+
### Windows template
66+
# Windows thumbnail cache files
67+
Thumbs.db
68+
Thumbs.db:encryptable
69+
ehthumbs.db
70+
ehthumbs_vista.db
71+
72+
# Dump file
73+
*.stackdump
74+
75+
# Folder config file
76+
[Dd]esktop.ini
77+
78+
# Recycle Bin used on file shares
79+
$RECYCLE.BIN/
80+
81+
# Windows Installer files
82+
*.cab
83+
*.msi
84+
*.msix
85+
*.msm
86+
*.msp
87+
88+
# Windows shortcuts
89+
*.lnk
90+
91+
### Dart template
92+
# See https://www.dartlang.org/guides/libraries/private-files
93+
94+
# Files and directories created by pub
95+
build/
96+
# If you're building an application, you may want to check-in your pubspec.lock
97+
pubspec.lock
98+
99+
# Directory created by dartdoc
100+
# If you don't generate documentation locally you can remove this line.
101+
doc/api/
102+
103+
# Avoid committing generated Javascript files:
104+
*.dart.js
105+
*.info.json # Produced by the --dump-info flag.
106+
*.js # When generated by dart2js. Don't specify *.js if your
107+
# project includes source files written in JavaScript.
108+
*.js_
109+
*.js.deps
110+
*.js.map
111+
112+
### VisualStudioCode template
113+
.vscode/*
114+
!.vscode/settings.json
115+
!.vscode/tasks.json
116+
!.vscode/launch.json
117+
!.vscode/extensions.json
118+
119+
### DartEditor template
120+
.project
121+
.buildlog
122+
123+
### JetBrains template
124+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
125+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
126+
127+
# User-specific stuff
128+
.idea/**/workspace.xml
129+
.idea/**/tasks.xml
130+
.idea/**/usage.statistics.xml
131+
.idea/**/dictionaries
132+
.idea/**/shelf
133+
134+
# Generated files
135+
.idea/**/contentModel.xml
136+
137+
# Sensitive or high-churn files
138+
.idea/**/dataSources/
139+
.idea/**/dataSources.ids
140+
.idea/**/dataSources.local.xml
141+
.idea/**/sqlDataSources.xml
142+
.idea/**/dynamic.xml
143+
.idea/**/uiDesigner.xml
144+
.idea/**/dbnavigator.xml
145+
146+
# Gradle
147+
.idea/**/gradle.xml
148+
.idea/**/libraries
149+
150+
# Gradle and Maven with auto-import
151+
# When using Gradle or Maven with auto-import, you should exclude module files,
152+
# since they will be recreated, and may cause churn. Uncomment if using
153+
# auto-import.
154+
# .idea/modules.xml
155+
# .idea/*.iml
156+
# .idea/modules
157+
# *.iml
158+
# *.ipr
159+
160+
# CMake
161+
cmake-build-*/
162+
163+
# Mongo Explorer plugin
164+
.idea/**/mongoSettings.xml
165+
166+
# File-based project format
167+
168+
# IntelliJ
169+
out/
170+
171+
# mpeltonen/sbt-idea plugin
172+
.idea_modules/
173+
174+
# JIRA plugin
175+
atlassian-ide-plugin.xml
176+
177+
# Cursive Clojure plugin
178+
.idea/replstate.xml
179+
180+
# Crashlytics plugin (for Android Studio and IntelliJ)
181+
com_crashlytics_export_strings.xml
182+
crashlytics.properties
183+
crashlytics-build.properties
184+
fabric.properties
185+
186+
# Editor-based Rest Client
187+
.idea/httpRequests
188+
189+
# Android studio 3.1+ serialized cache file
190+
.idea/caches/build_file_checksums.ser

example/.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 0b8abb4724aa590dd0f429683339b1e045a1594d
8+
channel: stable
9+
10+
project_type: app

example/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# openapigeneratorexample
2+
3+
A new Flutter application.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

example/android/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java

example/android/app/build.gradle

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26+
27+
android {
28+
compileSdkVersion 28
29+
30+
lintOptions {
31+
disable 'InvalidPackage'
32+
}
33+
34+
defaultConfig {
35+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36+
applicationId "com.devappliance.openapigeneratorexample"
37+
minSdkVersion 16
38+
targetSdkVersion 28
39+
versionCode flutterVersionCode.toInteger()
40+
versionName flutterVersionName
41+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
42+
}
43+
44+
buildTypes {
45+
release {
46+
// TODO: Add your own signing config for the release build.
47+
// Signing with the debug keys for now, so `flutter run --release` works.
48+
signingConfig signingConfigs.debug
49+
}
50+
}
51+
}
52+
53+
flutter {
54+
source '../..'
55+
}
56+
57+
dependencies {
58+
testImplementation 'junit:junit:4.12'
59+
androidTestImplementation 'androidx.test:runner:1.1.1'
60+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
61+
}

0 commit comments

Comments
 (0)