Skip to content

Commit

Permalink
Update packages, update docs, bump to v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
walsha2 committed Oct 15, 2024
1 parent 52152b3 commit 640c7a1
Show file tree
Hide file tree
Showing 23 changed files with 321 additions and 87 deletions.
26 changes: 26 additions & 0 deletions .vscode/flutter_app_info.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"folders": [
{
"name": "flutter-app-info",
"path": "../",
},
{
"name": "example (app)",
"path": "../example",
},
],
"settings": {
"files.exclude": {
// Hide certain folders from side bar
"example": true,
"**/build": true,
"**/.dart_tool": true,
"**/.flutter-plugins": true,
"**/.flutter-plugins-dependencies": true,
"**/pubspec.lock": true,
"**/.metadata": true,
"**/node_modules": true,
"**/package-lock.json": true,
},
},
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.0.0

* Update to `device_info_plus: ^11.0.0`
* Update to `package_info_plus: ^8.0.3`

## 2.0.0

* Update to `device_info_plus: ^9.1.1`
Expand Down
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.DEFAULT_TARGET: init
.PHONY: init code outdated upgrade analyze format format-ci test

MAKEFLAGS = --no-print-directory
ROOT = $(shell git rev-parse --show-toplevel)
ARGS ?=

init:
@find $(ROOT) -name pubspec.yaml -execdir bash -c "pwd && flutter pub get" \;

code:
@code $(ROOT)/.vscode/flutter_app_info.code-workspace

outdated:
@flutter pub outdated $(ARGS)

upgrade:
@flutter pub upgrade $(ARGS)

analyze:
@flutter analyze $(ARGS)

format:
@dart format lib
@dart fix --apply

format-ci:
@dart format lib --set-exit-if-changed

test:
@flutter test -r expanded $(ARGS)

publish:
@flutter pub publish --dry-run
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[![Pub](https://img.shields.io/pub/v/flutter_app_info.svg)](https://pub.dev/packages/flutter_app_info)

[flutter_app_info](https://pub.dev/packages/flutter_app_info) is a utility package that bundles capability of the following popular packages (so you do not need to directly depend on them) into a **single**, easy to access, `AppInfo` inherited widget:
[`flutter_app_info`](https://pub.dev/packages/flutter_app_info) is a utility package that bundles capability of the following popular packages (so you do not need to directly depend on them) into a **single**, easy to access, `AppInfo` inherited widget:

* [device_info_plus](https://pub.dev/packages/device_info_plus)
* [package_info_plus](https://pub.dev/packages/package_info_plus)
* [version](https://pub.dev/packages/version)
* [`device_info_plus`](https://pub.dev/packages/device_info_plus)
* [`package_info_plus`](https://pub.dev/packages/package_info_plus)
* [`version`](https://pub.dev/packages/version)

## Is this package actively maintained?

Expand Down Expand Up @@ -215,4 +215,4 @@ import 'package:flutter_app_info/device_info_plus.dart';

## Contributing

Please see the [flutter_app_info Github repository](https://github.com/tazatechnology/flutter_app_info).
Please see the [`flutter_app_info`](https://github.com/tazatechnology/flutter_app_info) Github repository.
9 changes: 6 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
include: package:flutter_lints/flutter.yaml
include: package:very_good_analysis/analysis_options.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
linter:
rules:
lines_longer_than_80_chars: false
flutter_style_todos: false
cascade_invocations: false
55 changes: 55 additions & 0 deletions example/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "MacOS",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--debug",
"--device-id",
"macOS"
]
},
{
"name": "Web",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--debug",
"--device-id",
"chrome",
"--web-renderer",
"html",
"--web-hostname",
"localhost",
"--web-port",
"3000",
]
},
{
"name": "Linux",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--debug",
"--device-id",
"linux"
]
},
{
"name": "Windows",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--debug",
"--device-id",
"windows"
]
}
]
}
72 changes: 72 additions & 0 deletions example/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
.DEFAULT_TARGET: init
.PHONY: init code outdated upgrade analyze format test

MAKEFLAGS = --no-print-directory
ROOT = $(shell git rev-parse --show-toplevel)
ARGS ?=

init:
@find $(ROOT) -name pubspec.yaml -execdir bash -c "pwd && flutter pub get" \;

code:
@code $(ROOT)/.vscode/flutter_tailwind_ui.code-workspace

outdated:
@flutter pub outdated $(ARGS)

upgrade:
@flutter pub upgrade $(ARGS)

analyze:
@flutter analyze $(ARGS)

format:
@dart format lib
@dart fix --apply

format-ci:
@dart format lib --set-exit-if-changed

test:
@flutter test -r expanded $(ARGS)

clean:
@flutter clean
@make init

build-linux: clean
@flutter build linux

build-macos: clean
@flutter build macos

build-web: clean
@flutter build web --tree-shake-icons

build-windows: clean
@flutter build windows

run: clean
@flutter run --release

run-linux: clean
@flutter run --release -d linux

run-macos: clean
@flutter run --release -d macos

run-web: clean
@flutter run --release -d chrome

run-windows: clean
@flutter run --release -d windows

pods-macos: clean
rm -rf ~/Library/Developer/Xcode/DerivedData
cd macos && rm -rf Podfile.lock
cd macos && rm -rf Pods
cd macos && pod repo update
cd macos && pod cache clean --all
cd macos && pod deintegrate
cd macos && pod setup
cd macos && pod install --repo-update
5 changes: 3 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class _FlutterAppInfoExampleState extends State<FlutterAppInfoExample>
indicatorColor: Colors.white,
indicatorWeight: 4,
indicatorPadding: const EdgeInsets.only(bottom: 2),
overlayColor: MaterialStateColor.resolveWith((states) {
if (states.contains(MaterialState.hovered)) {
overlayColor: WidgetStateColor.resolveWith((states) {
if (states.contains(WidgetState.hovered)) {
return Colors.white24;
} else {
return Colors.transparent;
Expand Down Expand Up @@ -205,6 +205,7 @@ class PackageInfoTab extends StatelessWidget {
title: 'Information about the installed package and version',
children: [
Prop('appName', package.appName),
Prop('packageName', package.packageName),
Prop('buildSignature', package.buildSignature),
Prop('installerStore', package.installerStore),
Prop('version', package.version.toString()),
Expand Down
6 changes: 3 additions & 3 deletions example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos

SPEC CHECKSUMS:
device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f
device_info_plus: f1aae8670672f75c4c8850ecbe0b2ddef62b0a22
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce
package_info_plus: d2f71247aab4b6521434f887276093acc70d214c

PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7

COCOAPODS: 1.11.3
COCOAPODS: 1.14.3
2 changes: 1 addition & 1 deletion example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion example/macos/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Cocoa
import FlutterMacOS

@NSApplicationMain
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
Expand Down
Loading

0 comments on commit 640c7a1

Please sign in to comment.