Skip to content

Commit

Permalink
refactor: make mono-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedAlaaInstabug committed Oct 20, 2024
1 parent b0f0ef5 commit 5646caf
Show file tree
Hide file tree
Showing 146 changed files with 23 additions and 6,566 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ commands:
command: sudo gem install cocoapods
- run:
name: Install Pods
working_directory: apps/example/ios
working_directory: packages/Instabug-Flutter/example/ios
command: pod install --repo-update
setup_captain:
parameters:
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
- advanced-checkout/shallow-checkout
- setup_flutter
- android/run-tests:
working-directory: apps/example/android
working-directory: packages/Instabug-Flutter/example/android
test-command: ./gradlew test

e2e_android_captain:
Expand All @@ -247,7 +247,7 @@ jobs:
run-tests-working-directory: e2e
additional-avd-args: --device 3
system-image: system-images;android-33;default;x86_64
post-emulator-launch-assemble-command: cd apps/example && flutter build apk --debug
post-emulator-launch-assemble-command: cd packages/Instabug-Flutter/example && flutter build apk --debug
test-command: dotnet test

test_ios:
Expand All @@ -261,7 +261,7 @@ jobs:
- setup_ios
- run:
name: Build and run tests
working_directory: ~/project/apps/example/ios
working_directory: ~/project/packages/Instabug-Flutter/example/ios
command: |
xcodebuild -allowProvisioningUpdates \
-workspace Runner.xcworkspace \
Expand All @@ -282,7 +282,7 @@ jobs:
- setup_ios
- run:
name: Build Example App
working_directory: apps/example
working_directory: packages/Instabug-Flutter/example
command: flutter build ios --simulator
- run:
name: Run E2E Tests
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Generated files
*.mocks.dart
*.g.dart
android/**/generated/
ios/**/Generated/
packages/**/android/**/generated/
packages/**ios/**/Generated/

# Miscellaneous
*.class
Expand Down Expand Up @@ -84,3 +84,4 @@ android/gradlew.bat
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
/packages/Instabug-Flutter/lib/src/generated/
10 changes: 0 additions & 10 deletions .metadata

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

5 changes: 3 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ include: package:lint/analysis_options_package.yaml

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


linter:
rules:
Expand Down
4 changes: 2 additions & 2 deletions e2e/Utils/CaptainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class CaptainTest : IDisposable
{
private static readonly CaptainConfig _config = new()
{
AndroidApp = Path.GetFullPath("../../../../apps/example/build/app/outputs/flutter-apk/app-debug.apk"),
AndroidApp = Path.GetFullPath("../../../../packages/Instabug-Flutter/example/build/app/outputs/flutter-apk/app-debug.apk"),
AndroidAppId = "com.instabug.flutter.example",
AndroidVersion = "13",
IosApp = Path.GetFullPath("../../../../apps/example/build/ios/iphonesimulator/Runner.app"),
IosApp = Path.GetFullPath("../../../../packages/Instabug-Flutter/example/build/ios/iphonesimulator/Runner.app"),
IosAppId = "com.instabug.InstabugSample",
IosVersion = "17.2",
IosDevice = "iPhone 15 Pro Max"
Expand Down
3 changes: 1 addition & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: instabug_flutter_mono

packages:
- apps/*
- packages/*

- packages/*/**
scripts:
dart_bootstrap:
run: dart pub get
Expand Down
Loading

0 comments on commit 5646caf

Please sign in to comment.