Skip to content

Commit

Permalink
Merge pull request #21 from wasabeef/deps-update
Browse files Browse the repository at this point in the history
chore: update dependencies
  • Loading branch information
wasabeef authored Oct 1, 2021
2 parents 2c3b6f0 + 2649834 commit c136b28
Show file tree
Hide file tree
Showing 20 changed files with 151 additions and 87 deletions.
5 changes: 0 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
### What does this change?

### What is the value of this and can you measure success?

### Screenshots (Optional)


Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
- uses: actions/[email protected]
- uses: subosito/flutter-action@v1
with:
channel: 'beta'
flutter-version: '2.5.2'
- uses: dart-lang/setup-dart@v1
with:
sdk: '2.14.3'

- name: Cache Gradle modules
uses: actions/[email protected]
Expand Down Expand Up @@ -46,7 +49,7 @@ jobs:
${{ runner.os }}-
- name: Get flutter dependencies.
run: make dependencies
run: make deps

# - name: Check for any formatting and statically analyze the code.
# run: make format-analyze
Expand Down
3 changes: 3 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dart 2.14.3
flutter 2.5.2-stable
nodejs 16.9.0
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run example on main.dart",
"program": "${workspaceFolder}/example/lib/main.dart",
"request": "launch",
"type": "dart",
"args": [
"--debug"
]
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dart.flutterSdkPath": "~/.asdf/installs/flutter/2.5.2-stable",
"dart.sdkPath": "~/.asdf/installs/dart/2.14.3/dart-sdk"
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.0

Dependencies
- Update Flutter to >=2.0.0
- Update Dart to >=2.12.0

## 1.0.2

Bug Fix:
Expand Down
13 changes: 2 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
.PHONY: setup
setup:
flutter channel beta
flutter upgrade
flutter pub get
npm install
gem update cocoapods
cd ios/ && pod install && cd ..

.PHONY: dependencies
dependencies:
.PHONY: deps
deps:
flutter pub get

.PHONY: analyze
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
group 'jp.wasabeef.ua.client_hints'
version '1.0.3'
version '1.1.0'

buildscript {
ext.kotlin_version = '1.4.20'
ext.kotlin_version = '1.5.30'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.4.20'
ext.kotlin_version = '1.5.30'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
4 changes: 2 additions & 2 deletions example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
</dict>
</plist>
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Flutter (1.0.0)
- ua_client_hints (1.0.0):
- ua_client_hints (1.1.0):
- Flutter

DEPENDENCIES:
Expand All @@ -14,9 +14,9 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/ua_client_hints/ios"

SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
ua_client_hints: 4f9c8b4d4a919e7fc89dc5c76d6afcbcf7a2fa27
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
ua_client_hints: 314de6b4221bf713b1a6a5fb8bc68917ad3eaaec

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

COCOAPODS: 1.10.0
COCOAPODS: 1.11.2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 29 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:ua_client_hints/ua_client_hints.dart';

Expand Down Expand Up @@ -39,7 +38,34 @@ void main() async {
print("Sec-CH-UA-Full-Version :${header['Sec-CH-UA-Full-Version']}");
print("Sec-CH-UA-Mobile :${header['Sec-CH-UA-Mobile']}");

return runApp(const MaterialApp(
home: Scaffold(body: Center(child: Text('User-Agent Client Hints'))),
return runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("User-Agent Client Hints"),
),
body: Container(
child: ListView.separated(
padding: const EdgeInsets.only(top: 16),
shrinkWrap: true,
itemBuilder: (context, index) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
header.keys.elementAt(index),
style: const TextStyle(fontWeight: FontWeight.bold),
),
Text(
header.values.elementAt(index),
),
],
));
},
separatorBuilder: (_, index) => const Divider(),
itemCount: header.length),
),
),
));
}
44 changes: 22 additions & 22 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,56 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0-nullsafety.3"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.5"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.3.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.5"
version: "1.15.0"
effective_dart:
dependency: "direct dev"
description:
name: effective_dart
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.2"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -73,21 +73,21 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.3"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.6"
version: "1.7.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.3"
version: "1.8.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -99,63 +99,63 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.4"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0-nullsafety.6"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.6"
version: "0.4.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.5"
version: "1.3.0"
ua_client_hints:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.3"
version: "1.1.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.5"
version: "2.1.0"
sdks:
dart: ">=2.12.0-29.10.beta <3.0.0"
flutter: ">=1.22.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ version: 1.0.0+1
publish_to: 'none'

environment:
sdk: '>=2.11.0 <3.0.0'
flutter: '>=1.22.0'
sdk: '>=2.14.0 <3.0.0'
flutter: '>=2.5.0'

dependencies:
flutter:
Expand All @@ -19,7 +19,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
effective_dart: ^1.3.0
effective_dart: ^1.3.2

flutter:
uses-material-design: true
2 changes: 1 addition & 1 deletion ios/ua_client_hints.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ua_client_hints'
s.version = '1.0.3'
s.version = '1.1.0'
s.summary = 'Provide User-Agent Client Hints plugin.'
s.description = <<-DESC
Provide User-Agent Client Hints plugin.
Expand Down
Loading

0 comments on commit c136b28

Please sign in to comment.