Skip to content

Commit

Permalink
Merge branch 'development' into internal
Browse files Browse the repository at this point in the history
  • Loading branch information
namanshergill committed Jul 10, 2021
2 parents dcbf0dd + 1e72c4d commit 6493cf2
Show file tree
Hide file tree
Showing 283 changed files with 71,281 additions and 7,688 deletions.
91 changes: 89 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include:
analyzer:
exclude:
- lib/models/**

linter:
rules:
- always_require_non_null_named_parameters
Expand Down Expand Up @@ -55,4 +54,92 @@ linter:
- unnecessary_this
- use_function_type_syntax_for_parameters
- use_rethrow_when_possible
- valid_regexps
- valid_regexps
- always_use_package_imports
- avoid_relative_lib_imports
- always_declare_return_types
- avoid_double_and_int_checks
- avoid_empty_else
- avoid_print
- avoid_private_typedef_functions
- avoid_setters_without_getters
- avoid_shadowing_type_parameters
- avoid_slow_async_io
- avoid_types_as_parameter_names
- avoid_unused_constructor_parameters
- await_only_futures
- camel_case_extensions
- camel_case_types
- cancel_subscriptions
- curly_braces_in_flow_control_structures
- directives_ordering
- file_names
- flutter_style_todos
- list_remove_unrelated_type
- no_duplicate_case_values
- non_constant_identifier_names
- no_adjacent_strings_in_list
- one_member_abstracts
- only_throw_errors
- package_api_docs
- parameter_assignments
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_asserts_with_message
- prefer_asserts_in_initializer_lists
- package_prefixed_library_names
- prefer_final_in_for_each
- prefer_final_locals
- provide_deprecation_message
- prefer_foreach
- prefer_is_empty
- prefer_is_not_empty
- prefer_typing_uninitialized_variables
- sort_child_properties_last
- sort_constructors_first
- use_setters_to_change_properties
- use_string_buffers
- sort_pub_dependencies
- sort_unnamed_constructors_first
- throw_in_finally
- type_annotate_public_apis
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_statements
- unrelated_type_equality_checks
- unsafe_html
- use_full_hex_values_for_flutter_colors
- use_to_and_as_if_applicable
- void_checks
- always_put_control_body_on_new_line
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_field_initializers_in_const_classes
- hash_and_equals
- literal_only_boolean_expressions
- join_return_with_assignment
- invariant_booleans
- avoid_classes_with_only_static_members
- avoid_equals_and_hash_code_on_mutable_classes
- avoid_positional_boolean_parameters
- avoid_returning_null
- avoid_returning_this
- avoid_returning_null_for_future
- avoid_types_on_closure_parameters
- omit_local_variable_types
- prefer_generic_function_type_aliases
- prefer_interpolation_to_compose_strings
- prefer_iterable_whereType
- prefer_mixin
- prefer_single_quotes
- iterable_contains_unrelated_type
- empty_catches
# - public_member_api_docs
# - avoid_catches_without_on_clauses
# - lines_longer_than_80_chars
8 changes: 7 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,21 @@ android {
main.java.srcDirs += 'src/main/kotlin'
}


lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
applicationId "com.felix.diohub"
minSdkVersion 18
minSdkVersion 19
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
manifestPlaceholders = [
'appAuthRedirectScheme': 'auth.felix.diohub'
]
}

signingConfigs {
Expand All @@ -72,4 +77,5 @@ flutter {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.multidex:multidex:2.0.1'
}
12 changes: 12 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@
android:scheme="http"
android:host="github.com" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:scheme="http"
android:host="theme.felix.diohub" />
<data
android:scheme="https"
android:host="theme.felix.diohub" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Expand Down
Binary file modified android/app/src/main/res/drawable-hdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-mdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175 changes: 175 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
targets:
$default:
sources:
- lib/**
- graphql/**
builders:
artemis:
options:
fragments_glob: graphql/**.fragment.graphql
scalar_mapping:
- graphql_type: Date
dart_type: DateTime
- graphql_type: DateTime
dart_type: DateTime
- graphql_type: GitTimestamp
dart_type: DateTime
- graphql_type: PreciseDateTime
dart_type: DateTime
- graphql_type: X509Certificate
dart_type: DateTime
- graphql_type: GitRefname
dart_type: DateTime
- graphql_type: HTML
dart_type: String
- graphql_type: DeclineTopicSuggestionInput
dart_type: String
- graphql_type: GitObjectID
dart_type: String
- graphql_type: GitSignature
dart_type: String
- graphql_type: URI
dart_type: Uri
schema_mapping:
- schema: graphql/schema.docs.graphql
queries_glob: graphql/queries/**.query.graphql
output: lib/graphql/graphql.dart
naming_scheme: pathedWithFields
ignore_for_file:
- always_require_non_null_named_parameters
- annotate_overrides
- avoid_function_literals_in_foreach_calls
- avoid_init_to_null
- avoid_null_checks_in_equality_operators
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null_for_void
- avoid_single_cascade_in_expression_statements
- constant_identifier_names
- control_flow_in_finally
- empty_constructor_bodies
- empty_statements
- exhaustive_cases
- implementation_imports
- library_names
- library_prefixes
- null_closures
- overridden_fields
- package_names
- prefer_adjacent_string_concatenation
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_contains
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_for_elements_to_map_fromIterable
- prefer_function_declarations_over_variables
- prefer_if_null_operators
- prefer_initializing_formals
- prefer_inlined_adds
- prefer_is_not_operator
- prefer_null_aware_operators
- prefer_spread_collections
- prefer_void_to_null
- recursive_getters
- slash_for_doc_comments
- type_init_formals
- unnecessary_brace_in_string_interps
- unnecessary_const
- unnecessary_getters_setters
- unnecessary_new
- unnecessary_null_in_if_null_operators
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
- use_function_type_syntax_for_parameters
- use_rethrow_when_possible
- valid_regexps
- always_use_package_imports
- avoid_relative_lib_imports
- always_declare_return_types
- avoid_double_and_int_checks
- avoid_empty_else
- avoid_print
- avoid_private_typedef_functions
- avoid_setters_without_getters
- avoid_shadowing_type_parameters
- avoid_slow_async_io
- avoid_types_as_parameter_names
- avoid_unused_constructor_parameters
- await_only_futures
- camel_case_extensions
- camel_case_types
- cancel_subscriptions
- curly_braces_in_flow_control_structures
- directives_ordering
- file_names
- flutter_style_todos
- list_remove_unrelated_type
- no_duplicate_case_values
- non_constant_identifier_names
- no_adjacent_strings_in_list
- one_member_abstracts
- only_throw_errors
- package_api_docs
- parameter_assignments
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_asserts_with_message
- prefer_asserts_in_initializer_lists
- package_prefixed_library_names
- prefer_final_in_for_each
- prefer_final_locals
- provide_deprecation_message
# - public_member_api_docs
- prefer_foreach
- prefer_is_empty
- prefer_is_not_empty
- prefer_typing_uninitialized_variables
- sort_child_properties_last
- sort_constructors_first
- use_setters_to_change_properties
- use_string_buffers
- sort_pub_dependencies
- sort_unnamed_constructors_first
- throw_in_finally
- type_annotate_public_apis
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_statements
- unrelated_type_equality_checks
- unsafe_html
- use_full_hex_values_for_flutter_colors
- use_to_and_as_if_applicable
- void_checks
- always_put_control_body_on_new_line
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_field_initializers_in_const_classes
- hash_and_equals
- literal_only_boolean_expressions
- join_return_with_assignment
- invariant_booleans
- avoid_classes_with_only_static_members
- avoid_equals_and_hash_code_on_mutable_classes
- avoid_positional_boolean_parameters
- avoid_returning_null
- avoid_returning_this
- avoid_returning_null_for_future
- avoid_types_on_closure_parameters
- omit_local_variable_types
- prefer_generic_function_type_aliases
- prefer_interpolation_to_compose_strings
- prefer_iterable_whereType
- prefer_mixin
- prefer_single_quotes
- iterable_contains_unrelated_type
- empty_catches
- avoid_catches_without_on_clauses
- lines_longer_than_80_chars
49 changes: 47 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
## [0.3.0] - In Development
**Bug Fixes**
## [0.3.1] - In Development
**Project Boards | WIP**

**Enhancements**
- View pinned issues on a repository. | WIP.
- Watch buttons on repository screens now works. | WIP.
- Follow button added to user profile screens. | WIP
---
## [0.3.0] - 10 July 2021
**Authentication**
- Authentication to access the app made compulsory.
- Added the option to authenticate via a browser or a one-time code.
- Removed a lot of the permissions the app requested for that it does not need currently.
- If app was opened via a deeplink and user is unauthenticated, the deep link will be honored as
soon as the authentication is completed.

**Settings**
- Customise the app's color palette according to your preferences.
- Share themes as a link that opens in the app and gives a prompt to load said theme.
- Added multiple font options to select from.

**Issue/Pull Request Screen enhancements**
- Ability to quote (full/select) replies.
- Added all missing timeline item cases.
- Added ability to view Pull Request Reviews and reply to them.

**Create Issues**
- Ability to create issues on repositories.
- Supports issue templates.
- Markdown editor for description.
- Supports previewing the text markdown.

**Enhancements**
- Added organizations tab to the home screen.
- Text in code blocks is now selectable.
- Added share URL button on many screens.
- Star button on repository screens now works.
- Star repositories from the repository cards themselves (For example, from the activity tab)
- Follow users from user cards themselves (For example, in search)
- Splash screen logo improvements.
- Complete Github Flavored Markdown support.

**Deep-links**
- Settings URL exception added in deep-links.
- **(FIXED)** Pull request deeplink fixed.

**Misc**
- App caching default max-age dropped from 10 minutes to 3 minutes.
---
## [0.2.1] - 29 April 2021
**Bug Fixes**
Expand Down
Binary file added fonts/Manrope/Manrope-Bold.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-Italic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-Light.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-LightItalic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-Medium.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-Regular.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-SemiBold.ttf
Binary file not shown.
Binary file added fonts/Manrope/Manrope-SemiBoldItalic.ttf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf
Binary file not shown.
Binary file added fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf
Binary file not shown.
13 changes: 13 additions & 0 deletions graphql/queries/issues_pulls/pr_review.query.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
query fetchReview($id: ID!){
node(id: $id){
__typename
... on PullRequestReviewComment{
bodyHTML
author{
... actor
}
diffHunk
path
}
}
}
Loading

0 comments on commit 6493cf2

Please sign in to comment.