├── .env.example
├── .github
└── workflows
│ └── ci.yml
├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── peregrine
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── peregrine-icon-ios.png
├── peregrine-icon.png
└── readme-image.png
├── fonts
├── Krete Italic.otf
├── Krete.otf
└── Menlo.ttf
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-50x50@1x.png
│ │ │ ├── Icon-App-50x50@2x.png
│ │ │ ├── Icon-App-57x57@1x.png
│ │ │ ├── Icon-App-57x57@2x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-72x72@1x.png
│ │ │ ├── Icon-App-72x72@2x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
└── RunnerTests
│ └── RunnerTests.swift
├── lib
├── config.dart
├── context_menus.dart
├── export_utils.dart
├── format_utils.dart
├── main.dart
├── model
│ ├── current_ancestors.dart
│ ├── entry_data.dart
│ ├── entry_filter.dart
│ ├── json_backend.dart
│ └── tag_data.dart
├── vendor
│ └── latex.dart
└── widgets
│ ├── confirmation_modal.dart
│ ├── desktop_frame.dart
│ ├── entry_list_view.dart
│ ├── peregrine_app_bar.dart
│ ├── peregrine_entry_box.dart
│ ├── peregrine_entry_card.dart
│ ├── pret_command_palette.dart
│ └── sidebar.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── app_icon_1024.png
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ └── app_icon_64.png
│ ├── Base.lproj
│ │ └── MainMenu.xib
│ ├── Configs
│ │ ├── AppInfo.xcconfig
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
└── RunnerTests
│ └── RunnerTests.swift
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.env.example:
--------------------------------------------------------------------------------
1 | # .env
2 |
3 | # Set to True if you want to use the peregrinelog.json file in the repo root.
4 | # Prevents accidentally using your personal log for testing purposes.
5 | PEREGRINE_DEV_MODE = False
6 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: Peregrine CI
2 |
3 | on:
4 | push:
5 | pull_request:
6 |
7 | jobs:
8 | test-and-lint:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: actions/checkout@v3
13 | - name: Set up Flutter
14 | uses: subosito/flutter-action@v2
15 | with:
16 | channel: "stable" # or: 'beta', 'dev' or 'master'
17 | - name: Check Flutter Version
18 | run: flutter --version
19 | - name: Clone prêt-à-porter
20 | env:
21 | SSH_AUTH_SOCK: /tmp/ssh_agent.sock
22 | run: |
23 | ssh-agent -a $SSH_AUTH_SOCK > /dev/null
24 | ssh-add - <<< "${{ secrets.ACTION_KEY }}"
25 | cd .. && git clone git@github.com:ThatNerdSquared/pret_a_porter.git
26 | - name: Install dependencies
27 | run: flutter pub get
28 | - name: Check formatting
29 | run: dart format --output=none --set-exit-if-changed .
30 | - name: Code analysis
31 | run: flutter analyze
32 | # currently disabled because tests aren't up rn
33 | # - name: Run tests
34 | # run: flutter test
35 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .build/
9 | .buildlog/
10 | .history
11 | .svn/
12 | .swiftpm/
13 | migrate_working_dir/
14 |
15 | # IntelliJ related
16 | *.iml
17 | *.ipr
18 | *.iws
19 | .idea/
20 |
21 | # The .vscode folder contains launch configuration and tasks you configure in
22 | # VS Code which you may wish to be included in version control, so this line
23 | # is commented out by default.
24 | .vscode/
25 |
26 | # Flutter/Dart/Pub related
27 | **/doc/api/
28 | **/ios/Flutter/.last_build_id
29 | .dart_tool/
30 | .flutter-plugins
31 | .flutter-plugins-dependencies
32 | .packages
33 | .pub-cache/
34 | .pub/
35 | /build/
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
48 | # configs
49 | .env
50 | dev_log.json
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
17 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
18 | - platform: android
19 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
20 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
21 | - platform: ios
22 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
23 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
24 | - platform: linux
25 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
26 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
27 | - platform: macos
28 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
29 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
30 | - platform: web
31 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
32 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
33 | - platform: windows
34 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
35 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66
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'
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |

2 |
3 | # 🦅 Peregrine
4 |
5 | Peregrine is a rapid, append-only logging and note-taking app, inspired by thesephist's [Inc](https://github.com/thesephist/inc).
6 |
7 | 
8 |
9 | ## Features
10 | - Desktop and mobile support
11 | - Store entries as readable JSON
12 | - Full markdown support (including images and $\LaTeX$)
13 | - Powerful filtering using tags or search
14 | - Extensive keyboard shortcut and menu bar support
15 | - Smooth, responsive performance even with hundreds of entries
16 | - More to come! (encryption, linking, prebuilt packages, more filters...)
17 |
18 | ### Build from Source
19 | Prebuilt app packages for the latest version are not yet supported. Please build from source. The Flutter SDK is required to build Peregrine.
20 |
21 | ```bash
22 | git clone git@github.com:ThatNerdSquared/peregrine.git
23 | git clone git@github.com:ThatNerdSquared/pret_a_porter.git # private dependency
24 | cd peregrine
25 | flutter run # to run in dev mode
26 | flutter build [platform] # platforms: macOS (verified), Windows, Linux, iOS (verified), Android
27 | ```
28 |
29 |
30 | ## Other Details
31 | - What's the idea behind Peregrine?
32 | - I'd suggest checking out Linus' [original article on incremental note-taking](https://thesephist.com/posts/inc/); his project based on that idea, Inc, is what inspired me to build Peregrine. I wanted to explore how version control and append-only notes affect our thinking, and I built a tool to experiment with these ideas.
33 | - What's the stack?
34 | - Flutter and Dart. This is my favourite GUI stack for numerous reasons - I like the Dart language and Flutter is an excellent GUI framework for building cross-platform apps without sacrificing performance or user experience.
35 | - Why Peregrine?
36 | - [Peregrine falcons](https://en.wikipedia.org/wiki/Peregrine_falcon) are known for their speed - I wanted this app to allow rapid, iterative logging, and the name felt right!
37 | - If you enjoy using Peregrine and want to support further development, feel free to donate below!
38 |
39 |
40 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | analyzer:
13 | plugins:
14 | - custom_lint
15 |
16 | linter:
17 | # The lint rules applied to this project can be customized in the
18 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
19 | # included above or to enable additional rules. A list of all available lints
20 | # and their documentation is published at
21 | # https://dart-lang.github.io/linter/lints/index.html.
22 | #
23 | # Instead of disabling a lint rule for the entire project in the
24 | # section below, it can also be suppressed for a single line of code
25 | # or a specific dart file by using the `// ignore: name_of_lint` and
26 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
27 | # producing the lint.
28 | rules:
29 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
30 | prefer_single_quotes: true
31 | avoid_classes_with_only_static_members: true
32 | avoid_positional_boolean_parameters: true
33 | avoid_setters_without_getters: true
34 | avoid_types_on_closure_parameters: true
35 | directives_ordering: true
36 | omit_local_variable_types: true
37 | prefer_relative_imports: true
38 | type_annotate_public_apis: true
39 | unnecessary_lambdas: true
40 | use_to_and_as_if_applicable: true
41 | use_setters_to_change_properties: true
42 |
43 | # Additional information about this file can be found at
44 | # https://dart.dev/guides/language/analysis-options
45 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
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 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | namespace "com.example.peregrine"
30 | compileSdkVersion flutter.compileSdkVersion
31 | ndkVersion flutter.ndkVersion
32 |
33 | compileOptions {
34 | sourceCompatibility JavaVersion.VERSION_1_8
35 | targetCompatibility JavaVersion.VERSION_1_8
36 | }
37 |
38 | kotlinOptions {
39 | jvmTarget = '1.8'
40 | }
41 |
42 | sourceSets {
43 | main.java.srcDirs += 'src/main/kotlin'
44 | }
45 |
46 | defaultConfig {
47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48 | applicationId "ca.nathanyeung.peregrine"
49 | // You can update the following values to match your application needs.
50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
51 | minSdkVersion flutter.minSdkVersion
52 | targetSdkVersion flutter.targetSdkVersion
53 | versionCode flutterVersionCode.toInteger()
54 | versionName flutterVersionName
55 | }
56 |
57 | buildTypes {
58 | release {
59 | // TODO: Add your own signing config for the release build.
60 | // Signing with the debug keys for now, so `flutter run --release` works.
61 | signingConfig signingConfigs.debug
62 | }
63 | }
64 | }
65 |
66 | flutter {
67 | source '../..'
68 | }
69 |
70 | dependencies {
71 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72 | }
73 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
14 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/peregrine/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.peregrine
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/peregrine-icon-ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/assets/peregrine-icon-ios.png
--------------------------------------------------------------------------------
/assets/peregrine-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/assets/peregrine-icon.png
--------------------------------------------------------------------------------
/assets/readme-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/assets/readme-image.png
--------------------------------------------------------------------------------
/fonts/Krete Italic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/fonts/Krete Italic.otf
--------------------------------------------------------------------------------
/fonts/Krete.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/fonts/Krete.otf
--------------------------------------------------------------------------------
/fonts/Menlo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/fonts/Menlo.ttf
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | platform :ios, '12.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | target 'RunnerTests' do
36 | inherit! :search_paths
37 | end
38 | end
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | flutter_additional_ios_build_settings(target)
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - app_links (0.0.2):
3 | - Flutter
4 | - device_info_plus (0.0.1):
5 | - Flutter
6 | - DKImagePickerController/Core (4.3.4):
7 | - DKImagePickerController/ImageDataManager
8 | - DKImagePickerController/Resource
9 | - DKImagePickerController/ImageDataManager (4.3.4)
10 | - DKImagePickerController/PhotoGallery (4.3.4):
11 | - DKImagePickerController/Core
12 | - DKPhotoGallery
13 | - DKImagePickerController/Resource (4.3.4)
14 | - DKPhotoGallery (0.0.17):
15 | - DKPhotoGallery/Core (= 0.0.17)
16 | - DKPhotoGallery/Model (= 0.0.17)
17 | - DKPhotoGallery/Preview (= 0.0.17)
18 | - DKPhotoGallery/Resource (= 0.0.17)
19 | - SDWebImage
20 | - SwiftyGif
21 | - DKPhotoGallery/Core (0.0.17):
22 | - DKPhotoGallery/Model
23 | - DKPhotoGallery/Preview
24 | - SDWebImage
25 | - SwiftyGif
26 | - DKPhotoGallery/Model (0.0.17):
27 | - SDWebImage
28 | - SwiftyGif
29 | - DKPhotoGallery/Preview (0.0.17):
30 | - DKPhotoGallery/Model
31 | - DKPhotoGallery/Resource
32 | - SDWebImage
33 | - SwiftyGif
34 | - DKPhotoGallery/Resource (0.0.17):
35 | - SDWebImage
36 | - SwiftyGif
37 | - file_picker (0.0.1):
38 | - DKImagePickerController/PhotoGallery
39 | - Flutter
40 | - Flutter (1.0.0)
41 | - irondash_engine_context (0.0.1):
42 | - Flutter
43 | - path_provider_foundation (0.0.1):
44 | - Flutter
45 | - FlutterMacOS
46 | - SDWebImage (5.18.3):
47 | - SDWebImage/Core (= 5.18.3)
48 | - SDWebImage/Core (5.18.3)
49 | - super_native_extensions (0.0.1):
50 | - Flutter
51 | - SwiftyGif (5.4.4)
52 | - url_launcher_ios (0.0.1):
53 | - Flutter
54 |
55 | DEPENDENCIES:
56 | - app_links (from `.symlinks/plugins/app_links/ios`)
57 | - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
58 | - file_picker (from `.symlinks/plugins/file_picker/ios`)
59 | - Flutter (from `Flutter`)
60 | - irondash_engine_context (from `.symlinks/plugins/irondash_engine_context/ios`)
61 | - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
62 | - super_native_extensions (from `.symlinks/plugins/super_native_extensions/ios`)
63 | - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
64 |
65 | SPEC REPOS:
66 | trunk:
67 | - DKImagePickerController
68 | - DKPhotoGallery
69 | - SDWebImage
70 | - SwiftyGif
71 |
72 | EXTERNAL SOURCES:
73 | app_links:
74 | :path: ".symlinks/plugins/app_links/ios"
75 | device_info_plus:
76 | :path: ".symlinks/plugins/device_info_plus/ios"
77 | file_picker:
78 | :path: ".symlinks/plugins/file_picker/ios"
79 | Flutter:
80 | :path: Flutter
81 | irondash_engine_context:
82 | :path: ".symlinks/plugins/irondash_engine_context/ios"
83 | path_provider_foundation:
84 | :path: ".symlinks/plugins/path_provider_foundation/darwin"
85 | super_native_extensions:
86 | :path: ".symlinks/plugins/super_native_extensions/ios"
87 | url_launcher_ios:
88 | :path: ".symlinks/plugins/url_launcher_ios/ios"
89 |
90 | SPEC CHECKSUMS:
91 | app_links: e7a6750a915a9e161c58d91bc610e8cd1d4d0ad0
92 | device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
93 | DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
94 | DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
95 | file_picker: 09aa5ec1ab24135ccd7a1621c46c84134bfd6655
96 | Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
97 | irondash_engine_context: 3458bf979b90d616ffb8ae03a150bafe2e860cc9
98 | path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
99 | SDWebImage: 96e0c18ef14010b7485210e92fac888587ebb958
100 | super_native_extensions: 4916b3c627a9c7fffdc48a23a9eca0b1ac228fa7
101 | SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
102 | url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
103 |
104 | PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef
105 |
106 | COCOAPODS: 1.16.2
107 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ThatNerdSquared/peregrine/bcb32e5bb0a6bfe9892929415580fcbb3d12161c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Peregrine
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | Peregrine
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 | LSSupportsOpeningDocumentsInPlace
51 |
52 | UIFileSharingEnabled
53 |
54 | CFBundleURLTypes
55 |
56 |
57 | CFBundleURLName
58 | peregrine_url
59 | CFBundleURLSchemes
60 |
61 | peregrine
62 |
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/lib/config.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:path/path.dart' as p;
4 |
5 | import 'main.dart';
6 |
7 | class Config {
8 | Config._();
9 |
10 | static String get logFilePath {
11 | return p.join(
12 | platformAppSupportDir,
13 | 'peregrinelog.json',
14 | );
15 | }
16 |
17 | static bool get isMobile => Platform.isAndroid || Platform.isIOS;
18 | }
19 |
--------------------------------------------------------------------------------
/lib/context_menus.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:super_context_menu/super_context_menu.dart' as scm;
4 |
5 | import 'export_utils.dart';
6 | import 'model/entry_data.dart';
7 | import 'model/tag_data.dart';
8 | import 'widgets/confirmation_modal.dart';
9 |
10 | scm.Menu buildTagButtonContextMenu(
11 | BuildContext context,
12 | String tagName,
13 | PeregrineTag tagInfo,
14 | Function(String) autoEncryptToggleCallback,
15 | List entries,
16 | void Function(String) stripTagFromEntriesCallback,
17 | void Function(String) deleteTagCallback,
18 | ) =>
19 | scm.Menu(
20 | children: [
21 | scm.MenuAction(
22 | title: 'Auto Encrypt',
23 | state: tagInfo.autoEncrypt
24 | ? scm.MenuActionState.checkOn
25 | : scm.MenuActionState.checkOff,
26 | callback: () => autoEncryptToggleCallback(tagName),
27 | ),
28 | scm.Menu(
29 | title: 'Export as...',
30 | children: [
31 | scm.MenuAction(
32 | title: 'Markdown',
33 | callback: () => exportMarkdown(
34 | entries: entries,
35 | logName: tagName,
36 | ),
37 | ),
38 | ],
39 | ),
40 | scm.MenuAction(
41 | title: 'Delete Tag',
42 | image: scm.MenuImage.icon(Icons.delete),
43 | attributes: const scm.MenuActionAttributes(
44 | destructive: true,
45 | ),
46 | callback: () async {
47 | final confirmation = await showModalBottomSheet(
48 | context: context,
49 | isDismissible: false,
50 | builder: (context) => ConfirmationModal(count: tagInfo.count),
51 | );
52 | // TODO: why is this nullable?
53 | if (confirmation != null && confirmation) {
54 | stripTagFromEntriesCallback(tagName);
55 | deleteTagCallback(tagName);
56 | }
57 | })
58 | ],
59 | );
60 |
61 | scm.Menu buildEntryCardContextMenu({
62 | required String entryId,
63 | required bool isEncrypted,
64 | required VoidCallback toggleEncryptCallback,
65 | required Function(String) addAncestorCallback,
66 | required VoidCallback showInContextCallback,
67 | required VoidCallback showInMainLogCallback,
68 | }) =>
69 | scm.Menu(
70 | children: [
71 | scm.MenuAction(
72 | title: 'Add as ancestor',
73 | callback: () => addAncestorCallback(entryId),
74 | ),
75 | scm.MenuSeparator(),
76 | scm.MenuAction(
77 | title: 'Show in Context',
78 | callback: showInContextCallback,
79 | ),
80 | scm.MenuAction(
81 | title: 'Show in Main Log',
82 | callback: showInMainLogCallback,
83 | ),
84 | scm.MenuSeparator(),
85 | scm.MenuAction(
86 | title: 'Copy Entry URL',
87 | callback: () => Clipboard.setData(
88 | ClipboardData(text: 'peregrine://peregrine/entry/$entryId')),
89 | ),
90 | scm.MenuAction(
91 | title: isEncrypted ? 'Decrypt Entry' : 'Encrypt Entry',
92 | callback: () => !isEncrypted ? toggleEncryptCallback() : null,
93 | )
94 | ],
95 | );
96 |
--------------------------------------------------------------------------------
/lib/export_utils.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:file_picker/file_picker.dart';
4 | import 'package:flutter_launcher_icons/utils.dart';
5 |
6 | import 'format_utils.dart';
7 | import 'model/entry_data.dart';
8 |
9 | List _buildMarkdownFromEntries(
10 | List entries,
11 | String logName,
12 | ) {
13 | var mdList = ['# $logName', '\n'];
14 | for (final entry in entries) {
15 | mdList.add('## ${formatDate(entry.date)} ${formatTime(entry.date)}\n');
16 | mdList.add(entry.input);
17 | mdList.add('\n---\n');
18 | }
19 | return mdList;
20 | }
21 |
22 | void exportMarkdown({
23 | required List entries,
24 | String logName = 'peregrine-log',
25 | }) async {
26 | final rawMarkdown = _buildMarkdownFromEntries(entries, logName);
27 | final outputFile = await FilePicker.platform.saveFile(
28 | dialogTitle: 'Export Log',
29 | fileName: '$logName.md',
30 | );
31 | if (outputFile == null) return;
32 | createFileIfNotExist(outputFile);
33 | File(outputFile).writeAsStringSync(rawMarkdown.join('\n'));
34 | }
35 |
--------------------------------------------------------------------------------
/lib/format_utils.dart:
--------------------------------------------------------------------------------
1 | String formatDate(DateTime datetime) {
2 | var values = [
3 | datetime.year,
4 | datetime.month,
5 | datetime.day,
6 | ].map((e) => e.toString().padLeft(2, '0'));
7 | return values.join('-');
8 | }
9 |
10 | String formatTime(DateTime datetime) {
11 | var values = [
12 | datetime.hour,
13 | datetime.minute,
14 | datetime.second,
15 | ].map((e) => e.toString().padLeft(2, '0'));
16 | return values.join(':');
17 | }
18 |
19 | List findTags(String input) {
20 | var findTags = RegExp(r'#[^\s]+');
21 | return findTags
22 | .allMatches(input)
23 | .toList()
24 | .map((e) => e[0]!.replaceAll('#', ''))
25 | .toList();
26 | }
27 |
28 | List findContacts(String input) {
29 | var findContacts = RegExp(r'@[^\s]+');
30 | return findContacts.allMatches(input).map((e) => e[0]!).toList();
31 | }
32 |
33 | String stripTagOnlyLines(String input) {
34 | var items = input.trim().split('\n');
35 | if (items.last.replaceAll(RegExp(r'#[^\s]+'), '').replaceAll(' ', '') == '') {
36 | items.removeLast();
37 | return items.join('\n');
38 | } else {
39 | return input;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:app_links/app_links.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_riverpod/flutter_riverpod.dart';
4 | import 'package:path_provider/path_provider.dart';
5 | import 'package:pret_a_porter/pret_a_porter.dart';
6 | import 'package:uuid/uuid.dart';
7 |
8 | import 'config.dart';
9 | import 'model/current_ancestors.dart';
10 | import 'model/entry_data.dart';
11 | import 'model/entry_filter.dart';
12 | import 'model/json_backend.dart';
13 | import 'model/tag_data.dart';
14 | import 'widgets/desktop_frame.dart';
15 | import 'widgets/entry_list_view.dart';
16 | import 'widgets/pret_command_palette.dart';
17 | import 'widgets/sidebar.dart';
18 |
19 | const uuID = Uuid();
20 | String platformAppSupportDir = '';
21 | final String hashedPwd = JsonBackend().readHashedPwd();
22 |
23 | final entryListProvider =
24 | StateNotifierProvider>(
25 | (ref) => PeregrineEntryList(ref: ref),
26 | );
27 | final entryCount = Provider((ref) => ref.watch(entryListProvider).length);
28 | final isLocked = StateProvider((ref) => true);
29 | final tagsProvider = StateNotifierProvider>(
30 | (_) => TagsList(),
31 | );
32 | final entryFilterProvider =
33 | StateNotifierProvider(
34 | (_) => PeregrineEntryFilter(),
35 | );
36 | final filteredListProvider = Provider((ref) {
37 | var entries = ref.watch(entryListProvider);
38 | final filter = ref.watch(entryFilterProvider);
39 | for (final item in filter.includes.keys) {
40 | var condition = filter.includes[item];
41 | switch (item) {
42 | case FilterType.search:
43 | if (condition != '') {
44 | entries = {
45 | for (final entryId in entries.keys)
46 | // if (entries[entryId]!.input.toLowerCase().contains(RegExp(
47 | // r'/(^|\s|\@|\#)(' +
48 | // condition!.toLowerCase() +
49 | // r')(\Z|\s)')))
50 | if (entries[entryId]!
51 | .input
52 | .toLowerCase()
53 | .contains(condition!.toLowerCase()))
54 | entryId: entries[entryId]!
55 | };
56 | }
57 | break;
58 | case FilterType.tag:
59 | entries = {
60 | for (final entryId in entries.keys)
61 | if (entries[entryId]!.tags.contains(condition))
62 | entryId: entries[entryId]!
63 | };
64 | break;
65 | case FilterType.contact:
66 | entries = {
67 | for (final entryId in entries.keys)
68 | if (entries[entryId]!.mentionedContacts.contains(condition))
69 | entryId: entries[entryId]!
70 | };
71 | break;
72 | }
73 | }
74 | return entries;
75 | });
76 | final currentAncestorsProvider =
77 | StateNotifierProvider>(
78 | (_) => CurrentAncestors(),
79 | );
80 | final currentJumpIdProvider = StateProvider((ref) => '');
81 |
82 | FocusNode entryBoxFocusNode = FocusNode();
83 | FocusNode searchBoxFocusNode = FocusNode();
84 |
85 | final appLinks = AppLinks();
86 |
87 | void main() async {
88 | WidgetsFlutterBinding.ensureInitialized();
89 | platformAppSupportDir = (await getApplicationDocumentsDirectory()).path;
90 | runApp(const ProviderScope(child: MyApp()));
91 | entryBoxFocusNode.requestFocus();
92 | }
93 |
94 | class MyApp extends ConsumerWidget {
95 | const MyApp({super.key});
96 |
97 | @override
98 | Widget build(BuildContext context, WidgetRef ref) {
99 | return MaterialApp(
100 | restorationScopeId: uuID.v4(),
101 | theme: ThemeData(
102 | colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xffb69d7c)),
103 | fontFamily: 'Krete',
104 | useMaterial3: true,
105 | ),
106 | home: const PeregrineHomeView(),
107 | );
108 | }
109 | }
110 |
111 | class PeregrineHomeView extends ConsumerWidget {
112 | const PeregrineHomeView({super.key});
113 |
114 | void _handleUrl(uri, ref) {
115 | final uriParts = uri.pathSegments;
116 | if (uriParts[0] != 'entry') return;
117 |
118 | final entries = ref.read(filteredListProvider).keys.toList();
119 | final entryIndex = entries.indexOf(uriParts[1]);
120 | if (entryIndex == -1) {
121 | ref.read(entryFilterProvider.notifier).setAllEntriesFilter();
122 | }
123 | ref
124 | .read(currentJumpIdProvider.notifier)
125 | .update((String state) => (uriParts[1]).toString());
126 | }
127 |
128 | @override
129 | Widget build(BuildContext context, WidgetRef ref) {
130 | appLinks.uriLinkStream.listen((uri) => _handleUrl(uri, ref));
131 | final view = PretMainView(
132 | leftSidebar: Sidebar(
133 | searchBoxFocusNode: searchBoxFocusNode,
134 | entryBoxFocusNode: entryBoxFocusNode,
135 | ),
136 | mainView: EntryListView(
137 | entryBoxFocusNode: entryBoxFocusNode,
138 | searchBoxFocusNode: searchBoxFocusNode,
139 | ),
140 | barColor: const Color(0xffb69d7c),
141 | dividerColor: Theme.of(context).scaffoldBackgroundColor,
142 | );
143 | if (Config.isMobile) {
144 | return view;
145 | }
146 | return Scaffold(
147 | backgroundColor: const Color(0xffb69d7c),
148 | body: PretCmdPaletteScope(
149 | searchItems: ref.watch(tagsProvider).keys.toList(),
150 | child: DesktopFrame(
151 | entryBoxFocusNode: entryBoxFocusNode,
152 | searchBoxFocusNode: searchBoxFocusNode,
153 | child: view,
154 | ),
155 | ),
156 | );
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/lib/model/current_ancestors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_riverpod/flutter_riverpod.dart';
2 |
3 | class CurrentAncestors extends StateNotifier> {
4 | CurrentAncestors() : super([]);
5 |
6 | void addAncestor(String ancestorId) {
7 | if (state.contains(ancestorId)) return;
8 | state = [...state, ancestorId];
9 | }
10 |
11 | void removeAncestor(String ancestorId) {
12 | state = state.where((id) => id != ancestorId).toList();
13 | }
14 |
15 | void clearAncestors() {
16 | state = [];
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/model/entry_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_riverpod/flutter_riverpod.dart';
2 | import 'package:pret_a_porter/pret_a_porter.dart';
3 |
4 | import '../format_utils.dart';
5 | import '../main.dart';
6 | import 'json_backend.dart';
7 |
8 | enum EntryType { standard, deprecated, archived }
9 |
10 | extension ToEntryType on String {
11 | EntryType toEntryType() {
12 | return switch (this) {
13 | 'EntryType.standard' => EntryType.standard,
14 | 'EntryType.deprecated' => EntryType.deprecated,
15 | 'EntryType.archived' => EntryType.archived,
16 | _ => throw ArgumentError(
17 | 'String $this could not be converted to EntryType!',
18 | )
19 | };
20 | }
21 | }
22 |
23 | class PeregrineEntryList extends StateNotifier