Skip to content

Commit dc7e3d6

Browse files
authored
refactor: Improve pubspecs files and example projects (#956)
1 parent a2fb099 commit dc7e3d6

12 files changed

+39
-52
lines changed

packages/dart/example/pubspec.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: example
2-
description: example
3-
version: 1.0.0
2+
description: Demonstrates how to use the parse_server_sdk packages.
43
publish_to: 'none'
54

5+
version: 1.0.0
6+
67
environment:
78
sdk: ">=2.18.0 <4.0.0"
89

packages/dart/pubspec.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
name: parse_server_sdk
22
description: The Dart SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
33
version: 5.1.3
4-
homepage: https://github.com/parse-community/Parse-SDK-Flutter
4+
homepage: https://parseplatform.org
5+
repository: https://github.com/parse-community/Parse-SDK-Flutter
6+
issue_tracker: https://github.com/parse-community/Parse-SDK-Flutter/issues
7+
documentation: https://docs.parseplatform.org/dart/guide
8+
9+
funding:
10+
- https://opencollective.com/parse-server
11+
- https://github.com/sponsors/parse-community
12+
13+
topics:
14+
- parse
15+
- parse-platform
16+
- parse-server
17+
- node-js
18+
- backend
519

620
environment:
721
sdk: ">=2.18.0 <4.0.0"
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

123
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
244
rules:
25-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27-
28-
# Additional information about this file can be found at
29-
# https://dart.dev/guides/language/analysis-options
5+
avoid_print: false

packages/flutter/example/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ android {
4848
applicationId "com.example.flutter_plugin_example"
4949
// You can update the following values to match your application needs.
5050
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
51-
minSdkVersion flutter.minSdkVersion
51+
minSdkVersion 19
5252
targetSdkVersion flutter.targetSdkVersion
5353
versionCode flutterVersionCode.toInteger()
5454
versionName flutterVersionName

packages/flutter/example/lib/main.dart

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore_for_file: avoid_print
2-
31
import 'dart:convert';
42
import 'dart:io';
53

@@ -77,7 +75,6 @@ class _MyAppState extends State<MyApp> {
7775
clientKey: keyParseClientKey, debug: true);
7876

7977
//parse serve with secure store and desktop support
80-
8178
// Parse().initialize(keyParseApplicationId, keyParseServerUrl,
8279
// clientKey: keyParseClientKey,
8380
// debug: true);

packages/flutter/example/lib/pages/login_page.dart

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore_for_file: avoid_print
2-
31
import 'package:flutter/material.dart';
42
import 'package:flutter_plugin_example/data/model/user.dart';
53
import 'package:parse_server_sdk_flutter/parse_server_sdk_flutter.dart';

packages/flutter/example/linux/flutter/generated_plugin_registrant.cc

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
#include "generated_plugin_registrant.h"
88

9-
#include <awesome_notifications/awesome_notifications_plugin.h>
109

1110
void fl_register_plugins(FlPluginRegistry* registry) {
12-
g_autoptr(FlPluginRegistrar) awesome_notifications_registrar =
13-
fl_plugin_registry_get_registrar_for_plugin(registry, "AwesomeNotificationsPlugin");
14-
awesome_notifications_plugin_register_with_registrar(awesome_notifications_registrar);
1511
}

packages/flutter/example/linux/flutter/generated_plugins.cmake

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
awesome_notifications
76
)
87

98
list(APPEND FLUTTER_FFI_PLUGIN_LIST

packages/flutter/example/pubspec.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: flutter_plugin_example
2-
description: Demonstrates how to use the flutter_plugin plugin.
2+
description: Demonstrates how to use the parse_server_sdk_flutter plugin.
33
publish_to: 'none'
44

55
version: 1.0.0
@@ -18,11 +18,9 @@ dependencies:
1818
path: ^1.8.2
1919
path_provider: ^2.0.15
2020
sembast: ^3.4.6+1
21-
shared_preferences: ^2.1.2
21+
shared_preferences: ^2.2.0
2222

2323
dependency_overrides:
24-
# Override to local mono-repo path so devs can test this repo
25-
# against changes that they're making to other mono-repo packages.
2624
parse_server_sdk:
2725
path: ../../dart
2826

@@ -33,7 +31,6 @@ dev_dependencies:
3331
flutter_lints: ^2.0.1
3432
mockito: ^5.3.2
3533

36-
3734
flutter:
3835
uses-material-design: true
3936
assets:
@@ -52,5 +49,4 @@ flutter:
5249
- asset: fonts/Roboto/Roboto-Bold.ttf
5350
weight: 700
5451
- asset: fonts/Roboto/Roboto-Black.ttf
55-
weight: 900
56-
52+
weight: 900

packages/flutter/example/windows/flutter/generated_plugin_registrant.cc

-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66

77
#include "generated_plugin_registrant.h"
88

9-
#include <awesome_notifications/awesome_notifications_plugin_c_api.h>
109
#include <connectivity_plus/connectivity_plus_windows_plugin.h>
1110

1211
void RegisterPlugins(flutter::PluginRegistry* registry) {
13-
AwesomeNotificationsPluginCApiRegisterWithRegistrar(
14-
registry->GetRegistrarForPlugin("AwesomeNotificationsPluginCApi"));
1512
ConnectivityPlusWindowsPluginRegisterWithRegistrar(
1613
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
1714
}

packages/flutter/example/windows/flutter/generated_plugins.cmake

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
awesome_notifications
76
connectivity_plus
87
)
98

packages/flutter/pubspec.yaml

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
name: parse_server_sdk_flutter
22
description: The Flutter SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
33
version: 6.0.0
4-
homepage: https://github.com/parse-community/Parse-SDK-Flutter
4+
homepage: https://parseplatform.org
5+
repository: https://github.com/parse-community/Parse-SDK-Flutter
6+
issue_tracker: https://github.com/parse-community/Parse-SDK-Flutter/issues
7+
documentation: https://docs.parseplatform.org/flutter/guide
8+
9+
funding:
10+
- https://opencollective.com/parse-server
11+
- https://github.com/sponsors/parse-community
12+
13+
topics:
14+
- parse
15+
- parse-platform
16+
- parse-server
17+
- node-js
18+
- backend
519

620
environment:
721
sdk: ">=2.18.0 <4.0.0"
@@ -38,4 +52,4 @@ dev_dependencies:
3852

3953
screenshots:
4054
- description: Parse Platform logo.
41-
path: screenshots/logo.png
55+
path: screenshots/logo.png

0 commit comments

Comments
 (0)