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