Skip to content

Commit deaa765

Browse files
committed
feat: update to latest version and dependencies
1 parent 150f02f commit deaa765

File tree

99 files changed

+2572
-515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2572
-515
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 0.2.0
2+
- INFO: Updated dependencies (Flutter 3.13.2)
13
# 0.1.3
24
- INFO: Update dependencies (Flutter 3.10)
35
- FIX: Fix validation of boolean answer format

android/local.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sdk.dir=/Users/saifulislam/Library/Android/sdk
2-
flutter.sdk=/Users/saifulislam/Development/flutter_sdk/flutter
1+
sdk.dir=/Users/marvin/Library/Android/sdk
2+
flutter.sdk=/Users/marvin/flutter

example/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 63062a64432cce03315d6b5196fda7912866eb37
8-
channel: dev
7+
revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
17+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
18+
- platform: android
19+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
20+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
21+
- platform: ios
22+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
23+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
24+
- platform: linux
25+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
26+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
27+
- platform: macos
28+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
29+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
30+
- platform: web
31+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
32+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
33+
- platform: windows
34+
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
35+
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/analysis_options.yaml

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
# Specify analysis options.
2+
#
3+
# Until there are meta linter rules, each desired lint must be explicitly enabled.
4+
# See: https://github.com/dart-lang/linter/issues/288
5+
#
6+
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
7+
# See the configuration guide for more
8+
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
9+
#
10+
# There are other similar analysis options files in the flutter repos,
11+
# which should be kept in sync with this file:
12+
#
13+
# - analysis_options.yaml (this file)
14+
# - packages/flutter/lib/analysis_options_user.yaml
15+
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
16+
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml
17+
#
18+
# This file contains the analysis options used by Flutter tools, such as IntelliJ,
19+
# Android Studio, and the `flutter analyze` command.
20+
21+
exclude:
22+
- "**/*.g.dart"
23+
24+
analyzer:
25+
strong-mode:
26+
implicit-casts: false
27+
implicit-dynamic: false
28+
errors:
29+
# treat missing required parameters as a warning (not a hint)
30+
missing_required_param: warning
31+
# treat missing returns as a warning (not a hint)
32+
missing_return: warning
33+
# allow having TODOs in the code
34+
todo: ignore
35+
# allow self-reference to deprecated members (we do this because otherwise we have
36+
# to annotate every member in every test, assert, etc, when we deprecate something)
37+
deprecated_member_use_from_same_package: ignore
38+
exclude:
39+
- "bin/cache/**"
40+
# the following two are relative to the stocks example and the flutter package respectively
41+
# see https://github.com/dart-lang/sdk/issues/28463
42+
- "lib/i18n/messages_*.dart"
43+
- "lib/src/http/**"
44+
- "test_fixes/**"
45+
46+
linter:
47+
rules:
48+
# these rules are documented on and in the same order as
49+
# the Dart Lint rules page to make maintenance easier
50+
# https://github.com/dart-lang/linter/blob/master/example/all.yaml
51+
- always_declare_return_types
52+
- always_put_control_body_on_new_line
53+
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
54+
- always_specify_types
55+
# - always_use_package_imports # we do this commonly
56+
- annotate_overrides
57+
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
58+
# - avoid_as # required for implicit-casts: true
59+
- avoid_bool_literals_in_conditional_expressions
60+
# - avoid_catches_without_on_clauses # we do this commonly
61+
# - avoid_catching_errors # we do this commonly
62+
- avoid_classes_with_only_static_members
63+
# - avoid_double_and_int_checks # only useful when targeting JS runtime
64+
- avoid_empty_else
65+
- avoid_equals_and_hash_code_on_mutable_classes
66+
# - avoid_escaping_inner_quotes # not yet tested
67+
- avoid_field_initializers_in_const_classes
68+
- avoid_function_literals_in_foreach_calls
69+
# - avoid_implementing_value_types # not yet tested
70+
- avoid_init_to_null
71+
# - avoid_js_rounded_ints # only useful when targeting JS runtime
72+
- avoid_null_checks_in_equality_operators
73+
# - avoid_positional_boolean_parameters # not yet tested
74+
# - avoid_print # not yet tested
75+
# - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
76+
# - avoid_redundant_argument_values # not yet tested
77+
- avoid_relative_lib_imports
78+
- avoid_renaming_method_parameters
79+
- avoid_return_types_on_setters
80+
# - avoid_returning_null # there are plenty of valid reasons to return null
81+
# - avoid_returning_null_for_future # not yet tested
82+
- avoid_returning_null_for_void
83+
# - avoid_returning_this # there are plenty of valid reasons to return this
84+
# - avoid_setters_without_getters # not yet tested
85+
- avoid_shadowing_type_parameters
86+
- avoid_single_cascade_in_expression_statements
87+
- avoid_slow_async_io
88+
# - avoid_type_to_string # we do this commonly
89+
- avoid_types_as_parameter_names
90+
# - avoid_types_on_closure_parameters # conflicts with always_specify_types
91+
# - avoid_unnecessary_containers # not yet tested
92+
- avoid_unused_constructor_parameters
93+
- avoid_void_async
94+
# - avoid_web_libraries_in_flutter # not yet tested
95+
- await_only_futures
96+
- camel_case_extensions
97+
- camel_case_types
98+
- cancel_subscriptions
99+
# - cascade_invocations # not yet tested
100+
- cast_nullable_to_non_nullable
101+
# - close_sinks # not reliable enough
102+
# - comment_references # blocked on https://github.com/flutter/flutter/issues/20765
103+
# - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
104+
- control_flow_in_finally
105+
# - curly_braces_in_flow_control_structures # not required by flutter style
106+
# - diagnostic_describe_all_properties # not yet tested
107+
- directives_ordering
108+
# - do_not_use_environment # we do this commonly
109+
- empty_catches
110+
- empty_constructor_bodies
111+
- empty_statements
112+
- exhaustive_cases
113+
# - file_names # not yet tested
114+
- flutter_style_todos
115+
- hash_and_equals
116+
- implementation_imports
117+
# - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811
118+
# - join_return_with_assignment # not required by flutter style
119+
- leading_newlines_in_multiline_strings
120+
- library_names
121+
- library_prefixes
122+
# - lines_longer_than_80_chars # not required by flutter style
123+
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181
124+
# - missing_whitespace_between_adjacent_strings # not yet tested
125+
- no_adjacent_strings_in_list
126+
# - no_default_cases # too many false positives
127+
- no_duplicate_case_values
128+
- no_logic_in_create_state
129+
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
130+
- non_constant_identifier_names
131+
- null_check_on_nullable_type_parameter
132+
# - null_closures # not required by flutter style
133+
# - omit_local_variable_types # opposite of always_specify_types
134+
# - one_member_abstracts # too many false positives
135+
# - only_throw_errors # https://github.com/flutter/flutter/issues/5792
136+
- overridden_fields
137+
- package_api_docs
138+
# - package_names # non conforming packages in sdk
139+
- package_prefixed_library_names
140+
# - parameter_assignments # we do this commonly
141+
- prefer_adjacent_string_concatenation
142+
- prefer_asserts_in_initializer_lists
143+
# - prefer_asserts_with_message # not required by flutter style
144+
- prefer_collection_literals
145+
- prefer_conditional_assignment
146+
- prefer_const_constructors
147+
- prefer_const_constructors_in_immutables
148+
- prefer_const_declarations
149+
- prefer_const_literals_to_create_immutables
150+
# - prefer_constructors_over_static_methods # far too many false positives
151+
- prefer_contains
152+
# - prefer_double_quotes # opposite of prefer_single_quotes
153+
- prefer_equal_for_default_values
154+
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
155+
- prefer_final_fields
156+
- prefer_final_in_for_each
157+
- prefer_final_locals
158+
- prefer_for_elements_to_map_fromIterable
159+
- prefer_foreach
160+
# - prefer_function_declarations_over_variables # not yet tested
161+
- prefer_generic_function_type_aliases
162+
- prefer_if_elements_to_conditional_expressions
163+
- prefer_if_null_operators
164+
- prefer_initializing_formals
165+
- prefer_inlined_adds
166+
# - prefer_int_literals # not yet tested
167+
# - prefer_interpolation_to_compose_strings # not yet tested
168+
- prefer_is_empty
169+
- prefer_is_not_empty
170+
- prefer_is_not_operator
171+
- prefer_iterable_whereType
172+
# - prefer_mixin # https://github.com/dart-lang/language/issues/32
173+
# - prefer_null_aware_operators # disable until NNBD, see https://github.com/flutter/flutter/pull/32711#issuecomment-492930932
174+
# - prefer_relative_imports # not yet tested
175+
- prefer_single_quotes
176+
- prefer_spread_collections
177+
- prefer_typing_uninitialized_variables
178+
- prefer_void_to_null
179+
# - provide_deprecation_message # not yet tested
180+
# - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
181+
- recursive_getters
182+
# - sized_box_for_whitespace # not yet tested
183+
- slash_for_doc_comments
184+
# - sort_child_properties_last # not yet tested
185+
- sort_constructors_first
186+
# - sort_pub_dependencies # prevents separating pinned transitive dependencies
187+
- sort_unnamed_constructors_first
188+
- test_types_in_equals
189+
- throw_in_finally
190+
- tighten_type_of_initializing_formals
191+
# - type_annotate_public_apis # subset of always_specify_types
192+
- type_init_formals
193+
# - unawaited_futures # too many false positives
194+
# - unnecessary_await_in_return # not yet tested
195+
- unnecessary_brace_in_string_interps
196+
- unnecessary_const
197+
# - unnecessary_final # conflicts with prefer_final_locals
198+
- unnecessary_getters_setters
199+
# - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
200+
- unnecessary_new
201+
- unnecessary_null_aware_assignments
202+
# - unnecessary_null_checks # not yet tested
203+
- unnecessary_null_in_if_null_operators
204+
- unnecessary_nullable_for_final_variable_declarations
205+
- unnecessary_overrides
206+
- unnecessary_parenthesis
207+
# - unnecessary_raw_strings # not yet tested
208+
- unnecessary_statements
209+
- unnecessary_string_escapes
210+
- unnecessary_string_interpolations
211+
- unnecessary_this
212+
- unrelated_type_equality_checks
213+
# - unsafe_html # not yet tested
214+
- use_full_hex_values_for_flutter_colors
215+
# - use_function_type_syntax_for_parameters # not yet tested
216+
- use_is_even_rather_than_modulo
217+
# - use_key_in_widget_constructors # not yet tested
218+
- use_late_for_private_fields_and_variables
219+
- use_raw_strings
220+
- use_rethrow_when_possible
221+
# - use_setters_to_change_properties # not yet tested
222+
# - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
223+
# - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
224+
- valid_regexps
225+
- void_checks

example/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
99
# Remember to never publicly share your keystore.
1010
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
1111
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/build.gradle

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,22 +22,31 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
29-
compileSdkVersion 33
26+
namespace "com.example.example"
27+
compileSdkVersion flutter.compileSdkVersion
28+
ndkVersion flutter.ndkVersion
29+
30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_1_8
32+
targetCompatibility JavaVersion.VERSION_1_8
33+
}
34+
35+
kotlinOptions {
36+
jvmTarget = '1.8'
37+
}
3038

3139
sourceSets {
3240
main.java.srcDirs += 'src/main/kotlin'
3341
}
3442

3543
defaultConfig {
3644
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37-
applicationId "com.quickbirdstudios.surveykit_example"
38-
minSdkVersion 21
39-
targetSdkVersion 31
45+
applicationId "com.example.example"
46+
// You can update the following values to match your application needs.
47+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48+
minSdkVersion flutter.minSdkVersion
49+
targetSdkVersion flutter.targetSdkVersion
4050
versionCode flutterVersionCode.toInteger()
4151
versionName flutterVersionName
4252
}
@@ -54,6 +64,4 @@ flutter {
5464
source '../..'
5565
}
5666

57-
dependencies {
58-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59-
}
67+
dependencies {}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.quickbirdstudios.surveykit_example">
3-
<!-- Flutter needs it to communicate with the running application
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
66
<uses-permission android:name="android.permission.INTERNET"/>

0 commit comments

Comments
 (0)