Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ DerivedData/
.swiftpm/config/registries.json
**/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
IDEWorkspaceChecks.plist
*.xcworkspacedata
**/.swiftpm/xcode/xcsharedData

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencies: [
]
```

### 2. Exclude AppDebugMode package from Release sceheme
![Exclude AppDubugMode Example](screenshot.png)
### 2. Exclude AppDebugMode package from Release scheme
<img src="Screenshots/package-exclude.png" alt="Exclude AppDebugMode package example" height="200" />


## Setup
Expand Down Expand Up @@ -112,7 +112,7 @@ import AppDebugMode
#endif
```

<img src="cache-manager.png" alt="Cache manager example" height="600" />
<img src="Screenshots/cache-manager.png" alt="Cache manager example" height="600" />

## Push notifications
If you want to use push notifications in debug mode, you need to pass `Messaging.Messaging()` object into `AppDebugModeProvider.shared.setup()` method.
Expand All @@ -135,7 +135,7 @@ AppDebugModeProvider.shared.setup(
```

## Console logs redirection
If you want to redirect logs call this snippet of code in appdelegate or a different prefered spot in if it's turned on in the app debug mode settings and if you are in a DEBUG configuration
If you want to redirect logs call this snippet of code in AppDelegate or a different preferred spot. Keep in mind this must be turned on in the AppDebugMode settings and the app must be running in a DEBUG configuration
```swift
// didFinishLaunchingWithOptions

Expand Down Expand Up @@ -181,4 +181,4 @@ session = NetworkSession(
- In app you can activate debug mode by shaking device or in simulator by `CMD + CTRL + Z`
- To open debug mode with other actions in the app initialize ViewController with `let debugViewController = AppDebugModeProvider.shared.start()`

<img src="simulator-screenshot-1.png" alt="App Activation Example" height="600">
<img src="Screenshots/app-showcase.gif" alt="App activation showcase" height="30%" width="30%"/>
8 changes: 8 additions & 0 deletions Screenshots/Package.swift
Comment thread
andrej-jasso marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import PackageDescription

let package = Package(
name: "",
products: [],
dependencies: [],
targets: []
)
Binary file added Screenshots/app-showcase.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added Screenshots/package-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.