Skip to content

Commit 3f3ecdb

Browse files
committed
Initial commit
0 parents  commit 3f3ecdb

Some content is hidden

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

60 files changed

+2078
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.vscode/
2+
.DS_Store
3+
.dart_tool/
4+
.idea/
5+
.iml
6+
7+
.packages
8+
.pub/
9+
10+
build/
11+
ios/
12+
android/
13+
demo/
14+
15+
pubspec.lock
16+
doc/

.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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
8+
channel: stable
9+
10+
project_type: plugin

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 0.7.0
2+
- First version

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Flutter extension for [logger](https://github.com/leisim/logger).<br>
2+
Please go to there for documentation.

example/.gitignore

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
!android/
2+
!ios/
3+
4+
# Miscellaneous
5+
*.class
6+
*.lock
7+
*.log
8+
*.pyc
9+
*.swp
10+
.DS_Store
11+
.atom/
12+
.buildlog/
13+
.history
14+
.svn/
15+
16+
# IntelliJ related
17+
*.iml
18+
*.ipr
19+
*.iws
20+
.idea/
21+
22+
# Visual Studio Code related
23+
.vscode/
24+
25+
# Flutter repo-specific
26+
/bin/cache/
27+
/bin/mingit/
28+
/dev/benchmarks/mega_gallery/
29+
/dev/bots/.recipe_deps
30+
/dev/bots/android_tools/
31+
/dev/docs/doc/
32+
/dev/docs/flutter.docs.zip
33+
/dev/docs/lib/
34+
/dev/docs/pubspec.yaml
35+
/packages/flutter/coverage/
36+
version
37+
38+
# packages file containing multi-root paths
39+
.packages.generated
40+
41+
# Flutter/Dart/Pub related
42+
**/doc/api/
43+
.dart_tool/
44+
.flutter-plugins
45+
.packages
46+
.pub-cache/
47+
.pub/
48+
build/
49+
flutter_*.png
50+
linked_*.ds
51+
unlinked.ds
52+
unlinked_spec.ds
53+
54+
# Android related
55+
**/android/**/gradle-wrapper.jar
56+
**/android/.gradle
57+
**/android/captures/
58+
**/android/gradlew
59+
**/android/gradlew.bat
60+
**/android/local.properties
61+
**/android/**/GeneratedPluginRegistrant.java
62+
**/android/key.properties
63+
*.jks
64+
65+
# iOS/XCode related
66+
**/ios/**/*.mode1v3
67+
**/ios/**/*.mode2v3
68+
**/ios/**/*.moved-aside
69+
**/ios/**/*.pbxuser
70+
**/ios/**/*.perspectivev3
71+
**/ios/**/*sync/
72+
**/ios/**/.sconsign.dblite
73+
**/ios/**/.tags*
74+
**/ios/**/.vagrant/
75+
**/ios/**/DerivedData/
76+
**/ios/**/Icon?
77+
**/ios/**/Pods/
78+
**/ios/**/.symlinks/
79+
**/ios/**/profile
80+
**/ios/**/xcuserdata
81+
**/ios/.generated/
82+
**/ios/Flutter/App.framework
83+
**/ios/Flutter/Flutter.framework
84+
**/ios/Flutter/Generated.xcconfig
85+
**/ios/Flutter/app.flx
86+
**/ios/Flutter/app.zip
87+
**/ios/Flutter/flutter_assets/
88+
**/ios/ServiceDefinitions.json
89+
**/ios/Runner/GeneratedPluginRegistrant.*
90+
91+
# Coverage
92+
coverage/
93+
94+
# Exceptions to above rules.
95+
!**/ios/**/default.mode1v3
96+
!**/ios/**/default.mode2v3
97+
!**/ios/**/default.pbxuser
98+
!**/ios/**/default.perspectivev3
99+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
8+
channel: stable
9+
10+
project_type: app

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.example.logger_flutter_example"
37+
minSdkVersion 16
38+
targetSdkVersion 28
39+
versionCode flutterVersionCode.toInteger()
40+
versionName flutterVersionName
41+
testInstrumentationRunner "android.support.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 'com.android.support.test:runner:1.0.2'
60+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.example.logger_flutter_example">
3+
<application
4+
android:name="io.flutter.app.FlutterApplication"
5+
android:label="logger_flutter_example"
6+
android:icon="@drawable/ic_launcher">
7+
<activity
8+
android:name=".MainActivity"
9+
android:launchMode="singleTop"
10+
android:theme="@style/LaunchTheme"
11+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
12+
android:hardwareAccelerated="true"
13+
android:windowSoftInputMode="adjustResize">
14+
<meta-data
15+
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
16+
android:value="true" />
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN"/>
19+
<category android:name="android.intent.category.LAUNCHER"/>
20+
</intent-filter>
21+
</activity>
22+
</application>
23+
</manifest>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.example.logger_flutter_example;
2+
3+
import android.os.Bundle;
4+
import io.flutter.app.FlutterActivity;
5+
import io.flutter.plugins.GeneratedPluginRegistrant;
6+
7+
public class MainActivity extends FlutterActivity {
8+
@Override
9+
protected void onCreate(Bundle savedInstanceState) {
10+
super.onCreate(savedInstanceState);
11+
GeneratedPluginRegistrant.registerWith(this);
12+
}
13+
}

0 commit comments

Comments
 (0)