Skip to content

[MOB-11762] Revamp Example App #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
33b15da
[MOB-12122] Integrate Danger Coverage Plugin (#357)
a7medev May 1, 2023
01d3efb
[MOB-12372] Migrate Flutter Formatting to Dart (#362)
a7medev May 8, 2023
fe22ecf
Update pubspec
DavidMina96 Mar 7, 2023
e2c5ec4
Add analysis_options
DavidMina96 Mar 7, 2023
c46e776
Add assets folder
DavidMina96 Mar 7, 2023
0469a3f
Add models folder
DavidMina96 Mar 7, 2023
cfaaed9
Add re-usable widgets
DavidMina96 Mar 7, 2023
f2d9053
Add providers folder
DavidMina96 Mar 7, 2023
f28b02f
Add Main screen
DavidMina96 Mar 7, 2023
1f2221b
Add Settings screen
DavidMina96 Mar 7, 2023
3a129cc
Add Products screen
DavidMina96 Mar 7, 2023
1362b11
Add Bug Reporting screen
DavidMina96 Mar 7, 2023
d9a9ab8
Add Crash Reporting screen
DavidMina96 Mar 7, 2023
5148dfb
Add APM screen
DavidMina96 Mar 7, 2023
e4bea0a
Add Replies screen
DavidMina96 Mar 7, 2023
58b6b1a
Add Surveys screen
DavidMina96 Mar 7, 2023
f0bcca3
Add Feature Requests screen
DavidMina96 Mar 7, 2023
acc909f
Add Core screen
DavidMina96 Mar 7, 2023
7bb80d8
Add Network Logger screen
DavidMina96 Mar 7, 2023
5d9fcc6
Update `main.dart`
DavidMina96 Mar 7, 2023
bc8c300
Update `Info.plist`
DavidMina96 Mar 7, 2023
e89e8f7
Sync iOS project
DavidMina96 Mar 7, 2023
5f9a761
Fix format
DavidMina96 Mar 7, 2023
d07acd1
Exclude `example` from build process
DavidMina96 Mar 8, 2023
4bc9059
Update flutter version in setup_flutter job
DavidMina96 Mar 8, 2023
a6ebdc0
Fix Flutter IDE issue
DavidMina96 Mar 14, 2023
3c11119
Update `gitignore`
DavidMina96 Mar 14, 2023
11b13e0
Sync `.metadata`
DavidMina96 Mar 14, 2023
2a2c231
Fix lint issue
DavidMina96 Mar 14, 2023
f2b003d
Apply several enhancements
DavidMina96 Mar 15, 2023
bc7a6d2
Move theme management to settings
DavidMina96 Mar 16, 2023
0c8b31c
Set default floatingButtonOffset based on platform
DavidMina96 Mar 16, 2023
459f171
Apply some refactoring
DavidMina96 Mar 28, 2023
bf87c59
Configure Repro Steps
DavidMina96 May 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commands:
setup_flutter:
steps:
- flutter/install_sdk_and_pub:
flutter_version: 3.3.0
flutter_version: 3.7.3
- run:
name: Generate Pigeons
command: sh ./scripts/pigeon.sh
Expand Down Expand Up @@ -80,6 +80,9 @@ jobs:
- checkout
- node/install-packages:
pkg-manager: yarn
override-ci-command: yarn install --frozen-lockfile --network-concurrency 1
- attach_workspace:
at: coverage
- run:
name: Run Danger
command: yarn danger ci
Expand All @@ -96,6 +99,13 @@ jobs:
- run: sh ./scripts/pigeon.sh
- run: flutter pub run build_runner build --delete-conflicting-outputs
- run: flutter test --coverage
- run:
working_directory: coverage
command: lcov --remove lcov.info '*.g.dart' '*.mocks.dart' -o lcov.info
- persist_to_workspace:
root: coverage
paths:
- lcov.info

test_android:
executor:
Expand Down Expand Up @@ -175,7 +185,7 @@ jobs:
- run: flutter pub get
- run:
name: Check Format
command: flutter format . --set-exit-if-changed
command: dart format . --set-exit-if-changed

lint_flutter:
docker:
Expand Down Expand Up @@ -234,7 +244,9 @@ workflows:
version: 2
build-test-and-approval-deploy:
jobs:
- danger
- danger:
requires:
- test_flutter-stable
- test_flutter:
name: test_flutter-stable
version: stable
Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ include: package:lint/analysis_options_package.yaml

analyzer:
exclude:
- "example/**"
- "**/*.g.dart"

linter:
Expand Down
6 changes: 6 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
targets:
$default:
sources:
# Exclude the 'example' folder from the build
exclude:
- example/**
8 changes: 8 additions & 0 deletions dangerfile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { danger, fail, schedule, warn } from 'danger';
import collectCoverage, { ReportType } from '@instabug/danger-plugin-coverage';

const hasSourceChanges = danger.git.modified_files.some((file) =>
file.startsWith('lib/')
Expand Down Expand Up @@ -27,3 +28,10 @@ async function hasDescription() {
}

schedule(hasDescription());

collectCoverage({
label: 'Dart',
type: ReportType.LCOV,
filePath: 'coverage/lcov.info',
threshold: 80,
});
9 changes: 6 additions & 3 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
Expand All @@ -31,11 +32,13 @@
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
39 changes: 37 additions & 2 deletions example/.metadata
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
# This file should be version controlled.

version:
revision: 9b2d32b605630f28625709ebd9d78ab3016b2bf6
revision: 135454af32477f815a7525073027a3ff9eff1bfd
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: android
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: ios
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: linux
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: macos
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: web
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
- platform: windows
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
6 changes: 6 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include: package:flutter_lints/flutter.yaml

linter:
rules:
require_trailing_commas: true
library_private_types_in_public_api: false
Binary file added example/assets/fonts/Axiforma Regular.otf
Binary file not shown.
Binary file added example/assets/images/APM.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 added example/assets/images/Bug Reporting.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 added example/assets/images/Core.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 added example/assets/images/Crash Reporting.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 added example/assets/images/Feature Requests.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 added example/assets/images/Network.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 added example/assets/images/Replies.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 added example/assets/images/Surveys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -444,6 +444,7 @@
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down Expand Up @@ -475,6 +476,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down
2 changes: 2 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@
<string>Instabug needs access to your photo library so you can attach images.</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
Loading