升级 flutter 1.2.1
This commit is contained in:
parent
9016bee45f
commit
9538c6faa8
@ -3,7 +3,7 @@ name: default
|
||||
|
||||
steps:
|
||||
- name: prepare
|
||||
image: v7lin/flutter:1.0.0-stable
|
||||
image: v7lin/flutter:1.2.1-stable
|
||||
volumes:
|
||||
- name: pub-cache
|
||||
path: /opt/flutter/.pub-cache
|
||||
@ -11,7 +11,7 @@ steps:
|
||||
- flutter packages get
|
||||
|
||||
- name: analyze
|
||||
image: v7lin/flutter:1.0.0-stable
|
||||
image: v7lin/flutter:1.2.1-stable
|
||||
volumes:
|
||||
- name: pub-cache
|
||||
path: /opt/flutter/.pub-cache
|
||||
@ -19,16 +19,17 @@ steps:
|
||||
- flutter analyze
|
||||
|
||||
- name: test
|
||||
image: v7lin/flutter:1.0.0-stable
|
||||
image: v7lin/flutter:1.2.1-stable
|
||||
volumes:
|
||||
- name: pub-cache
|
||||
path: /opt/flutter/.pub-cache
|
||||
commands:
|
||||
- flutter test
|
||||
- pushd example/
|
||||
- flutter test
|
||||
|
||||
- name: publish-check
|
||||
image: v7lin/flutter:1.0.0-stable
|
||||
image: v7lin/flutter:1.2.1-stable
|
||||
volumes:
|
||||
- name: pub-cache
|
||||
path: /opt/flutter/.pub-cache
|
||||
|
@ -19,6 +19,10 @@ analyzer:
|
||||
# 'super_goes_last' is a deprecated lint rule and should not be used • included_file_warning
|
||||
included_file_warning: ignore
|
||||
|
||||
# 过滤 jaguar_serializer
|
||||
exclude:
|
||||
- "**/*.jser.dart"
|
||||
|
||||
linter:
|
||||
rules:
|
||||
# these rules are documented on and in the same order as
|
||||
|
@ -27,7 +27,7 @@ rootProject.allprojects {
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
compileSdkVersion 28
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
|
@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
compileSdkVersion 28
|
||||
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
@ -35,7 +35,7 @@ android {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "io.github.v7lin.fakeweiboexample"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 27
|
||||
targetSdkVersion 28
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
@ -3,7 +3,7 @@ description: Demonstrates how to use the fake_weibo plugin.
|
||||
publish_to: 'none'
|
||||
|
||||
environment:
|
||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
@ -5,7 +5,7 @@ author: v7lin <v7lin@qq.com>
|
||||
homepage: https://github.com/v7lin/fake_weibo
|
||||
|
||||
environment:
|
||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||
sdk: ">=2.1.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
@ -13,12 +13,17 @@ dependencies:
|
||||
|
||||
meta: ^1.1.6
|
||||
|
||||
jaguar_serializer: ^2.2.12
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
pedantic: '>=1.4.0 <3.0.0'
|
||||
|
||||
build_runner: ^1.2.3
|
||||
jaguar_serializer_cli: ^2.2.5
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://www.dartlang.org/tools/pub/pubspec
|
||||
|
||||
|
26
test/jaguar_test.dart
Normal file
26
test/jaguar_test.dart
Normal file
@ -0,0 +1,26 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:jaguar_serializer/jaguar_serializer.dart';
|
||||
|
||||
void main() {
|
||||
test('smoke test - snake case', () {
|
||||
print('${toSnakeCase('oneField')}');
|
||||
print('${toSnakeCase('oneField_street')}');
|
||||
print('${toSnakeCase('one_field')}');
|
||||
});
|
||||
|
||||
test('smoke test - kebab case', () {
|
||||
print('${toKebabCase('oneField')}');
|
||||
print('${toKebabCase('oneField_street')}');
|
||||
print('${toKebabCase('one_field')}');
|
||||
});
|
||||
|
||||
test('smoke test - camel case', () {
|
||||
print('${toCamelCase('oneField')}');
|
||||
print('${toCamelCase('oneField_street')}');
|
||||
print('${toCamelCase('one_field')}');
|
||||
});
|
||||
|
||||
test('smoke test - jaguar_serializer', () {
|
||||
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user