├── .gitignore ├── .metadata ├── .vscode └── launch.json ├── LICENSE ├── PRIVACY.md ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ └── res │ │ │ ├── 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 │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── 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-60x60@2x.png │ │ ├── Icon-App-60x60@3x.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 ├── lib ├── api │ └── miniflux.dart ├── common │ ├── theme.dart │ └── tools.dart ├── main.dart ├── models │ ├── category.dart │ ├── data.dart │ ├── data_all.dart │ ├── entry.dart │ ├── entry_style.dart │ ├── feed.dart │ ├── nav.dart │ └── settings.dart └── screens │ ├── category.dart │ ├── drawer.dart │ ├── entry.dart │ ├── feed.dart │ ├── feed_create.dart │ ├── feeds.dart │ ├── home.dart │ ├── search.dart │ └── settings.dart ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── various ├── icons.zip └── screenshots ├── miniflutt_01.png ├── miniflutt_02.png ├── miniflutt_03.png ├── miniflutt_04.png ├── miniflutt_05.png └── miniflutt_tablet_01.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | 39 | # Publishing 40 | android/key.properties 41 | -------------------------------------------------------------------------------- /.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 and should not be manually edited. 5 | 6 | version: 7 | revision: 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e 8 | channel: v1.12.13-hotfixes 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Flutter", 9 | "request": "launch", 10 | "type": "dart" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Nicolas Martinelli 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /PRIVACY.md: -------------------------------------------------------------------------------- 1 | # Privacy Policy 2 | 3 | Miniflutt doesn't collect any private information of any kind. The app doesn't perform any 4 | tracking of the device and doesn't send any information to any third-party service. No ads, no 5 | tracking, no 'anonymous bug report'. Nothing. 6 | 7 | In order to work, Miniflutt requires the URL and the API key of your Miniflux server. This 8 | information is stored locally and is solely used to connect to your own server. This information 9 | is never sent or backed up to any third-party service. 10 | 11 | Miniflutt needs an optional access to files and media on your device. This is used to save 12 | attachments (images, videos, documents...) in your device's 'download' folder. If this access is 13 | denied, attachments are saved in Miniflutt's data directory. Miniflutt doesn't list or read 14 | your personal files. Obviously, no information is sent to any third-party service. 15 | 16 | Miniflutt is a free and open-source app made on my free time. I'm not interested in your private 17 | information at all. 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Miniflutt 2 | 3 | Miniflutt is an Android client for [Miniflux](https://miniflux.app/) feed reader. It is free and 4 | open source, without any advertisement or tracking whatsoever. 5 | 6 | ## Getting Started 7 | 8 | Miniflutt requires Miniflux version >= [2.0.21](https://miniflux.app/releases/2.0.21.html). 9 | 10 | 1. Install the latest APK from the 11 | [releases page](https://github.com/DocMarty84/miniflutt/releases). 12 | 2. In Miniflux, create an API key in Settings / API Keys. 13 | 3. Open the app, go to the Settings page 14 | 4. Add the server URL and the token (do **not** include the `/v1` part of the URL endpoint) 15 | 5. Save and refresh! 16 | 17 | The unread articles should appear in the app. 18 | 19 | ## Features 20 | 21 | Miniflutt is still in development but implements the most common features for an RSS reader. Keep in 22 | mind that this is a personal project which is moving forward depending on my free time. At the 23 | moment, the following is supported: 24 | 25 | - Dark theme available on night mode 26 | - Supports video playback. 27 | - Download most common files (documents, images and videos) 28 | - Articles are grouped by categories / feeds. 29 | - All articles from a category / feed can be marked as read. 30 | - The original article can be opened in an external browser. 31 | - Fetch read and/or unread articles 32 | - Sort by date 33 | - Set favorites 34 | - Search articles 35 | - Feed and category management 36 | 37 | Limitations: 38 | 39 | - Being online is required (no fetching for offline reading). 40 | - No user management. 41 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 | id "dev.flutter.flutter-gradle-plugin" 6 | } 7 | 8 | def keystoreProperties = new Properties() 9 | def keystorePropertiesFile = rootProject.file('key.properties') 10 | if (keystorePropertiesFile.exists()) { 11 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 12 | } 13 | 14 | android { 15 | namespace = "be.martinelli.miniflutt" 16 | compileSdk = flutter.compileSdkVersion 17 | ndkVersion = flutter.ndkVersion 18 | // compileSdk = 34 19 | // ndkVersion = "25.1.8937393" 20 | 21 | compileOptions { 22 | sourceCompatibility JavaVersion.VERSION_1_8 23 | targetCompatibility JavaVersion.VERSION_1_8 24 | } 25 | 26 | kotlinOptions { 27 | jvmTarget = JavaVersion.VERSION_1_8 28 | } 29 | 30 | sourceSets { 31 | main.java.srcDirs += 'src/main/kotlin' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "be.martinelli.miniflutt" 37 | minSdk = 21 38 | targetSdk = flutter.targetSdkVersion 39 | // targetSdk = 34 40 | versionCode = flutter.versionCode 41 | versionName = flutter.versionName 42 | } 43 | 44 | signingConfigs { 45 | release { 46 | keyAlias keystoreProperties['keyAlias'] 47 | keyPassword keystoreProperties['keyPassword'] 48 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 49 | storePassword keystoreProperties['storePassword'] 50 | } 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.release 58 | ndk { 59 | debugSymbolLevel 'SYMBOL_TABLE' 60 | } 61 | } 62 | } 63 | } 64 | 65 | flutter { 66 | source '../..' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = "../build" 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(":app") 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /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-8.3-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "8.1.0" apply false 22 | id "org.jetbrains.kotlin.android" version "1.8.22" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = be.martinelli.miniflutt; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = be.martinelli.miniflutt; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = be.martinelli.miniflutt; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DocMarty84/miniflutt/a791fb18086b0171c6eb314a8695610b2d212a16/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 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | miniflutt 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/api/miniflux.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:convert'; 3 | //import 'dart:developer'; 4 | 5 | import 'package:http/http.dart' as http; 6 | import 'package:shared_preferences/shared_preferences.dart'; 7 | 8 | final Map statusCodes = { 9 | 200: 'Everything is OK', 10 | 201: 'Resource created/modified', 11 | 202: 'Action initiated', 12 | 204: 'Resource removed/modified', 13 | 400: 'Bad request', 14 | 401: 'Unauthorized (bad username/password)', 15 | 403: 'Forbidden (access not allowed)', 16 | 500: 'Internal server error', 17 | }; 18 | 19 | String makeError(String msg, http.Response res, String endpoint, 20 | Map params) { 21 | final String? error = statusCodes.containsKey(res.statusCode) 22 | ? statusCodes[res.statusCode] 23 | : res.reasonPhrase; 24 | return '$msg\n' 25 | 'Status code: ${res.statusCode}\n' 26 | 'Error: $error\n' 27 | 'Endpoint: $endpoint\n' 28 | 'Body: $params'; 29 | } 30 | 31 | Future _delete(String endpoint) async { 32 | SharedPreferences prefs = await SharedPreferences.getInstance(); 33 | final url = (prefs.getString('url') ?? ''); 34 | final apiKey = (prefs.getString('apiKey') ?? ''); 35 | if (url == '') { 36 | throw Exception('The server URL is not set.'); 37 | } 38 | 39 | final query = new Uri.http('', endpoint).toString().replaceFirst('http:', ''); 40 | final response = await http 41 | .delete(Uri.parse(url + query), headers: {'X-Auth-Token': apiKey}); 42 | 43 | if (response.statusCode <= 204) { 44 | return true; 45 | } else { 46 | throw Exception(makeError('Failed to delete data.', response, 47 | url + endpoint, {})); 48 | } 49 | } 50 | 51 | Future _get(String endpoint, Map params) async { 52 | SharedPreferences prefs = await SharedPreferences.getInstance(); 53 | final url = (prefs.getString('url') ?? ''); 54 | final apiKey = (prefs.getString('apiKey') ?? ''); 55 | if (url == '') { 56 | throw Exception('The server URL is not set.'); 57 | } 58 | 59 | final query = 60 | new Uri.http('', endpoint, params).toString().replaceFirst('http:', ''); 61 | final response = 62 | await http.get(Uri.parse(url + query), headers: {'X-Auth-Token': apiKey}); 63 | 64 | if (response.statusCode == 200) { 65 | return utf8.decode(response.bodyBytes); 66 | } else { 67 | throw Exception(makeError( 68 | 'Failed to load URL.', response, url + endpoint, {})); 69 | } 70 | } 71 | 72 | Future _post(String endpoint, Map body) async { 73 | SharedPreferences prefs = await SharedPreferences.getInstance(); 74 | final url = (prefs.getString('url') ?? ''); 75 | final apiKey = (prefs.getString('apiKey') ?? ''); 76 | if (url == '') { 77 | throw Exception('The server URL is not set.'); 78 | } 79 | 80 | String bodyStr = jsonEncode(body); 81 | final response = await http.post(Uri.parse(url + endpoint), 82 | body: bodyStr, 83 | headers: {'X-Auth-Token': apiKey, 'Content-Type': 'application/json'}); 84 | 85 | if (response.statusCode <= 204) { 86 | return true; 87 | } else { 88 | throw Exception( 89 | makeError('Failed to update data.', response, url + endpoint, body)); 90 | } 91 | } 92 | 93 | Future _put(String endpoint, Map body) async { 94 | SharedPreferences prefs = await SharedPreferences.getInstance(); 95 | final url = (prefs.getString('url') ?? ''); 96 | final apiKey = (prefs.getString('apiKey') ?? ''); 97 | if (url == '') { 98 | throw Exception('The server URL is not set.'); 99 | } 100 | 101 | String bodyStr = jsonEncode(body); 102 | final response = await http.put(Uri.parse(url + endpoint), 103 | body: bodyStr, 104 | headers: {'X-Auth-Token': apiKey, 'Content-Type': 'application/json'}); 105 | 106 | if (response.statusCode <= 204) { 107 | return true; 108 | } else { 109 | throw Exception( 110 | makeError('Failed to update data.', response, url + endpoint, body)); 111 | } 112 | } 113 | 114 | Future getFeeds() async { 115 | return await _get('/v1/feeds', {}); 116 | } 117 | 118 | Future createFeed(Map params) async { 119 | return await _post('/v1/feeds', params); 120 | } 121 | 122 | Future updateFeed(int? feedId, Map params) async { 123 | return await _put('/v1/feeds/$feedId', params); 124 | } 125 | 126 | Future refreshAllFeeds() async { 127 | Map params = {}; 128 | return await _put('/v1/feeds/refresh', params); 129 | } 130 | 131 | Future removeFeed(int? feedId) async { 132 | return await _delete('/v1/feeds/$feedId'); 133 | } 134 | 135 | Future getEntries(Map params) async { 136 | return await _get('/v1/entries', params); 137 | } 138 | 139 | Future updateEntries(List entryIds, String status) async { 140 | Map params = { 141 | "entry_ids": entryIds, 142 | "status": status, 143 | }; 144 | return await _put('/v1/entries', params); 145 | } 146 | 147 | Future toggleEntryBookmark(int? entryId) async { 148 | Map params = {}; 149 | return await _put('/v1/entries/$entryId/bookmark', params); 150 | } 151 | 152 | Future triggerSaveEntry(int? entryId) async { 153 | return await _post('/v1/entries/$entryId/save', {}); 154 | } 155 | 156 | Future getCategories() async { 157 | return await _get('/v1/categories', {}); 158 | } 159 | 160 | Future createCategory(Map params) async { 161 | return await _post('/v1/categories', params); 162 | } 163 | 164 | Future updateCategory( 165 | int? categoryId, Map params) async { 166 | return await _put('/v1/categories/$categoryId', params); 167 | } 168 | 169 | Future deleteCategory(int? categoryId) async { 170 | return await _delete('/v1/categories/$categoryId'); 171 | } 172 | 173 | Future getCurrentUser() async { 174 | final Map params = {}; 175 | return await _get('/v1/me', params); 176 | } 177 | 178 | Future connectCheck() async { 179 | try { 180 | await getCurrentUser(); 181 | return true; 182 | } catch (e) { 183 | return false; 184 | } 185 | } 186 | 187 | Future getEntryOriginalContent(int? entryId) async { 188 | Map content = json.decode( 189 | await _get('/v1/entries/$entryId/fetch-content', {}) 190 | ); 191 | String new_content = content['content']; 192 | Map params = { 193 | "content": new_content, 194 | }; 195 | await _put('/v1/entries/$entryId', params); 196 | return new_content; 197 | } 198 | -------------------------------------------------------------------------------- /lib/common/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | final appTheme = ThemeData( 4 | colorScheme: ColorScheme.fromSeed( 5 | seedColor: Colors.indigo, 6 | ), 7 | ); 8 | 9 | final appThemeDark = ThemeData( 10 | colorScheme: ColorScheme.fromSeed( 11 | brightness: Brightness.dark, 12 | seedColor: Colors.indigo, 13 | ), 14 | ); 15 | -------------------------------------------------------------------------------- /lib/common/tools.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:http/http.dart' as http; 4 | import 'package:path_provider/path_provider.dart'; 5 | import 'package:url_launcher/url_launcher_string.dart'; 6 | 7 | void launchURL(String url) async { 8 | if (await canLaunchUrlString(url)) { 9 | await launchUrlString( 10 | url, 11 | mode: LaunchMode.externalApplication, 12 | ); 13 | } else { 14 | throw Exception('Could not launch $url'); 15 | } 16 | } 17 | 18 | Future downloadURL(String url) async { 19 | String fileName = url.split('/').last.split('?').first; 20 | String downloadPath = (await getExternalStorageDirectory())!.path; 21 | 22 | // Get permission and download file 23 | final Future responseFut = http.get(Uri.parse(url)); 24 | 25 | // Get absolute file path. If a file with the same name exists, prepend the date. 26 | String filePath = '$downloadPath${Platform.pathSeparator}$fileName'; 27 | if (FileSystemEntity.typeSync(filePath) != FileSystemEntityType.notFound) { 28 | final String now = '${DateTime.now().toString().substring(0, 19)}'; 29 | filePath = '$downloadPath${Platform.pathSeparator}$now - $fileName'; 30 | } 31 | final File file = File(filePath); 32 | 33 | // Save the file 34 | final http.Response response = await responseFut; 35 | await file.writeAsBytes(response.bodyBytes); 36 | return filePath; 37 | } 38 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | 4 | import 'common/theme.dart'; 5 | import 'models/data.dart'; 6 | import 'models/data_all.dart'; 7 | import 'models/entry_style.dart'; 8 | import 'models/nav.dart'; 9 | import 'models/settings.dart'; 10 | import 'screens/home.dart'; 11 | import 'screens/category.dart'; 12 | import 'screens/entry.dart'; 13 | import 'screens/feed.dart'; 14 | import 'screens/feed_create.dart'; 15 | import 'screens/feeds.dart'; 16 | import 'screens/search.dart'; 17 | import 'screens/settings.dart'; 18 | 19 | void main() { 20 | runApp(MyApp()); 21 | } 22 | 23 | class MyApp extends StatelessWidget { 24 | @override 25 | Widget build(BuildContext context) { 26 | return MultiProvider( 27 | providers: [ 28 | ChangeNotifierProvider(create: (context) => Data()), 29 | ChangeNotifierProvider(create: (context) => DataAll()), 30 | ChangeNotifierProvider(create: (context) => EntryStyle()), 31 | ChangeNotifierProvider(create: (context) => Nav()), 32 | ChangeNotifierProvider(create: (context) => Settings()), 33 | ], 34 | child: MaterialApp( 35 | title: 'Miniflutt', 36 | theme: appTheme, 37 | darkTheme: appThemeDark, 38 | initialRoute: '/', 39 | routes: { 40 | '/': (context) => MyHome(), 41 | '/category': (context) => MyCategory(), 42 | '/entry': (context) => MyEntry(), 43 | '/feed': (context) => MyFeed(), 44 | '/feed_create': (context) => MyFeedCreate(), 45 | '/feeds': (context) => MyFeeds(), 46 | '/search': (context) => MySearch(), 47 | '/settings': (context) => MySettings(), 48 | }, 49 | ), 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /lib/models/category.dart: -------------------------------------------------------------------------------- 1 | class Category { 2 | final int? id; 3 | final String? title; 4 | final int? userId; 5 | final bool? hideGlobally; 6 | 7 | Category({ 8 | this.id, 9 | this.title, 10 | this.userId, 11 | this.hideGlobally, 12 | }); 13 | 14 | factory Category.fromJson(Map json) { 15 | return Category( 16 | id: json['id'], 17 | title: json['title'], 18 | userId: json['user_id'], 19 | hideGlobally: 20 | (json.containsKey('hide_globally') ? json['hide_globally'] : false), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/models/data.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | 5 | import 'category.dart'; 6 | import 'entry.dart'; 7 | import 'feed.dart'; 8 | import '../api/miniflux.dart'; 9 | 10 | class Data extends ChangeNotifier { 11 | final List entries = []; 12 | final List feeds = []; 13 | final List categories = []; 14 | bool isRefresh = false; 15 | 16 | // The constructor allows refreshing at startup 17 | Data() { 18 | refresh(); 19 | } 20 | 21 | Future read(List entryIds) async { 22 | if (entryIds.length == 0) { 23 | return true; 24 | } 25 | entries 26 | .where((entry) => entryIds.contains(entry!.id)) 27 | .forEach((entry) => entry!.status = 'read'); 28 | notifyListeners(); 29 | return await updateEntries(entryIds, 'read'); 30 | } 31 | 32 | Future unread(List entryIds) async { 33 | if (entryIds.length == 0) { 34 | return true; 35 | } 36 | entries 37 | .where((entry) => entryIds.contains(entry!.id)) 38 | .forEach((entry) => entry!.status = 'unread'); 39 | notifyListeners(); 40 | return await updateEntries(entryIds, 'unread'); 41 | } 42 | 43 | Future toggleRead(int? entryId) async { 44 | final Entry currentEntry = 45 | entries.firstWhere((entry) => entry!.id == entryId)!; 46 | final String newStatus = currentEntry.status == 'read' ? 'unread' : 'read'; 47 | currentEntry.status = newStatus; 48 | notifyListeners(); 49 | return await updateEntries([entryId], newStatus); 50 | } 51 | 52 | Future toggleStar(int? entryId) async { 53 | entries 54 | .where((entry) => entry!.id == entryId) 55 | .forEach((entry) => entry!.starred = !entry.starred!); 56 | notifyListeners(); 57 | return await toggleEntryBookmark(entryId); 58 | } 59 | 60 | Future saveEntry(int? entryId) async { 61 | return await triggerSaveEntry(entryId); 62 | } 63 | 64 | Future refresh({String? search}) async { 65 | final Set feedIds = {}; 66 | final Set categoryIds = {}; 67 | 68 | // Trigger a progress indicator in the listeners 69 | isRefresh = true; 70 | notifyListeners(); 71 | 72 | // Get preferences 73 | SharedPreferences prefs = await SharedPreferences.getInstance(); 74 | final read = (prefs.getBool('read') ?? false); 75 | final limit = (prefs.getString('limit') ?? '500'); 76 | final asc = (prefs.getBool('asc') ?? false); 77 | final starred = (prefs.getBool('starred') ?? false); 78 | Map params = { 79 | 'status': read ? '' : 'unread', 80 | 'limit': limit, 81 | 'order': 'published_at', 82 | 'direction': asc ? 'asc' : 'desc', 83 | }; 84 | if (starred) { 85 | params['starred'] = '1'; 86 | params['status'] = ''; 87 | } 88 | if (search != null) { 89 | params['search'] = search; 90 | } 91 | 92 | Map? jsonEntries = {}; 93 | try { 94 | jsonEntries = json.decode(await getEntries(params)); 95 | } catch (e) { 96 | jsonEntries = {}; 97 | } 98 | 99 | // Clear the existing data 100 | entries.clear(); 101 | feeds.clear(); 102 | categories.clear(); 103 | 104 | // Fill in entries, feeds and categories 105 | for (Map elem in (jsonEntries!['entries'] ?? [])) { 106 | final Entry entry = Entry.fromJson(elem); 107 | entries.add(entry); 108 | if (!feedIds.contains(entry.feedId)) { 109 | feeds.add(entry.feed); 110 | feedIds.add(entry.feedId); 111 | if (!categoryIds.contains(entry.feed!.category!.id)) { 112 | categories.add(entry.feed!.category); 113 | categoryIds.add(entry.feed!.category!.id); 114 | } 115 | } 116 | } 117 | 118 | // Sort feeds and categories 119 | feeds.sort((a, b) => a!.title!.compareTo(b!.title!)); 120 | categories.sort((a, b) => a!.title!.compareTo(b!.title!)); 121 | 122 | // Stop the progress indicator and notify listeners 123 | isRefresh = false; 124 | notifyListeners(); 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /lib/models/data_all.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'category.dart'; 5 | import 'feed.dart'; 6 | import '../api/miniflux.dart'; 7 | 8 | class DataAll extends ChangeNotifier { 9 | final List feeds = []; 10 | final List categories = []; 11 | bool isRefresh = false; 12 | 13 | Future refresh() async { 14 | final Set categoryIds = {}; 15 | 16 | // Trigger a progress indicator in the listeners 17 | isRefresh = true; 18 | notifyListeners(); 19 | 20 | List? jsonFeeds = []; 21 | List? jsonCategories = []; 22 | try { 23 | final Future jsonFeedsFut = getFeeds(); 24 | final Future jsonCategoriesFut = getCategories(); 25 | jsonFeeds = json.decode(await jsonFeedsFut); 26 | jsonCategories = json.decode(await jsonCategoriesFut); 27 | } catch (e) { 28 | debugPrint('error: $e'); 29 | jsonFeeds = []; 30 | jsonCategories = []; 31 | } 32 | 33 | // Clear the existing data 34 | feeds.clear(); 35 | categories.clear(); 36 | 37 | // Fill all feeds and categories 38 | categoryIds.clear(); 39 | for (Map elem in (jsonFeeds ?? [])) { 40 | final Feed feed = Feed.fromJson(elem); 41 | feeds.add(feed); 42 | if (!categoryIds.contains(feed.category!.id)) { 43 | categories.add(feed.category); 44 | categoryIds.add(feed.category!.id); 45 | } 46 | } 47 | 48 | for (Map elem in (jsonCategories ?? [])) { 49 | final Category category = Category.fromJson(elem); 50 | if (!categoryIds.contains(category.id)) { 51 | categories.add(category); 52 | categoryIds.add(category.id); 53 | } 54 | } 55 | 56 | // Sort all feeds and categories 57 | feeds.sort((a, b) => a.title!.compareTo(b.title!)); 58 | categories.sort((a, b) => a!.title!.compareTo(b!.title!)); 59 | 60 | // Stop the progress indicator and notify listeners 61 | isRefresh = false; 62 | notifyListeners(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/models/entry.dart: -------------------------------------------------------------------------------- 1 | import 'feed.dart'; 2 | 3 | class Entry { 4 | final String? author; 5 | final String? commentsUrl; 6 | String? content; 7 | final Feed? feed; 8 | final int? feedId; 9 | final String? hash; 10 | final int? id; 11 | final int? readingTime; 12 | final String? publishedAt; 13 | final String? shareCode; 14 | bool? starred; 15 | String? status; 16 | final String? title; 17 | final String? url; 18 | final int? userId; 19 | 20 | Entry({ 21 | this.author, 22 | this.commentsUrl, 23 | this.content, 24 | this.feed, 25 | this.feedId, 26 | this.hash, 27 | this.id, 28 | this.publishedAt, 29 | this.readingTime, 30 | this.shareCode, 31 | this.starred, 32 | this.status, 33 | this.title, 34 | this.url, 35 | this.userId, 36 | }); 37 | 38 | factory Entry.fromJson(Map json) { 39 | return Entry( 40 | author: json['author'], 41 | commentsUrl: json['comments_url'], 42 | content: json['content'], 43 | feed: Feed.fromJson(json['feed']), 44 | feedId: json['feed_id'], 45 | hash: json['hash'], 46 | id: json['id'], 47 | publishedAt: json['published_at'], 48 | readingTime: json['reading_time'], 49 | shareCode: json['share_code'], 50 | starred: json['starred'], 51 | status: json['status'], 52 | title: json['title'], 53 | url: json['url'], 54 | userId: json['user_id'], 55 | ); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /lib/models/entry_style.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_html/flutter_html.dart'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | 5 | class EntryStyle extends ChangeNotifier { 6 | FontSize? fontSize; 7 | 8 | // The constructor allows refreshing at startup 9 | EntryStyle() { 10 | refresh(); 11 | } 12 | 13 | Future refresh() async { 14 | // Get preferences 15 | SharedPreferences prefs = await SharedPreferences.getInstance(); 16 | 17 | // Font size 18 | final String _fontSize = (prefs.getString('fontSize') ?? 'medium'); 19 | if (_fontSize == 'small') { 20 | fontSize = FontSize.small; 21 | } else if (_fontSize == 'large') { 22 | fontSize = FontSize.large; 23 | } else if (_fontSize == 'xlarge') { 24 | fontSize = FontSize.xLarge; 25 | } else { 26 | fontSize = FontSize.medium; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/models/feed.dart: -------------------------------------------------------------------------------- 1 | import 'category.dart'; 2 | 3 | class Feed { 4 | final Category? category; 5 | final String? checkedAt; 6 | final bool? crawler; 7 | final bool? disabled; 8 | final String? etagHeader; 9 | final String? feedUrl; 10 | final int? id; 11 | final String? lastModifiedHeader; 12 | final int? parsingErrorCount; 13 | final String? parsingErrorMessage; 14 | final String? password; 15 | final String? rewriteRules; 16 | final String? scraperRules; 17 | final String? siteUrl; 18 | final String? title; 19 | final String? userAgent; 20 | final int? userId; 21 | final String? userName; 22 | final bool? hideGlobally; 23 | 24 | Feed({ 25 | this.category, 26 | this.checkedAt, 27 | this.crawler, 28 | this.disabled, 29 | this.etagHeader, 30 | this.feedUrl, 31 | this.id, 32 | this.lastModifiedHeader, 33 | this.parsingErrorCount, 34 | this.parsingErrorMessage, 35 | this.password, 36 | this.rewriteRules, 37 | this.scraperRules, 38 | this.siteUrl, 39 | this.title, 40 | this.userAgent, 41 | this.userId, 42 | this.userName, 43 | this.hideGlobally, 44 | }); 45 | 46 | factory Feed.fromJson(Map json) { 47 | return Feed( 48 | category: Category.fromJson(json['category']), 49 | checkedAt: json['checked_at'], 50 | crawler: json['crawler'], 51 | disabled: json['disabled'], 52 | etagHeader: json['etag_header'], 53 | feedUrl: json['feed_url'], 54 | id: json['id'], 55 | lastModifiedHeader: json['last_modified_header'], 56 | parsingErrorCount: json['parsing_error_count'], 57 | parsingErrorMessage: json['parsing_error_message'], 58 | password: json['password'], 59 | rewriteRules: json['rewrite_rules'], 60 | scraperRules: json['scraper_rules'], 61 | siteUrl: json['site_url'], 62 | title: json['title'], 63 | userAgent: json['user_agent'], 64 | userId: json['user_id'], 65 | userName: json['user_name'], 66 | hideGlobally: 67 | (json.containsKey('hide_globally') ? json['hide_globally'] : false), 68 | ); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /lib/models/nav.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Nav extends ChangeNotifier { 4 | int? currentFeedId; 5 | int? currentCategoryId; 6 | String? appBarTitle = 'All'; 7 | 8 | void set(int? feedId, int? categoryId, String? title) { 9 | currentFeedId = feedId; 10 | currentCategoryId = categoryId; 11 | appBarTitle = title; 12 | notifyListeners(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/models/settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | 5 | import '../models/data.dart'; 6 | import '../models/nav.dart'; 7 | 8 | class Settings extends ChangeNotifier { 9 | String? url; 10 | String? apiKey; 11 | String? limit; 12 | late bool markReadOnScroll; 13 | String? entryOnLongPress; 14 | String? entrySwipeLeft; 15 | String? entrySwipeRight; 16 | String? feedOnLongPress; 17 | String? fontSize; 18 | late bool isLoad; 19 | 20 | Future load() async { 21 | // First load preferences 22 | isLoad = true; 23 | notifyListeners(); 24 | final SharedPreferences prefs = await SharedPreferences.getInstance(); 25 | url = (prefs.getString('url') ?? 'http://'); 26 | apiKey = (prefs.getString('apiKey') ?? ''); 27 | limit = (prefs.getString('limit') ?? '500'); 28 | markReadOnScroll = (prefs.getBool('markReadOnScroll') ?? false); 29 | entryOnLongPress = (prefs.getString('entryOnLongPress') ?? 'read'); 30 | entrySwipeLeft = (prefs.getString('entrySwipeLeft') ?? 'no'); 31 | entrySwipeRight = (prefs.getString('entrySwipeRight') ?? 'no'); 32 | feedOnLongPress = (prefs.getString('feedOnLongPress') ?? 'no'); 33 | fontSize = (prefs.getString('fontSize') ?? 'medium'); 34 | isLoad = false; 35 | notifyListeners(); 36 | } 37 | 38 | Future save(BuildContext context) async { 39 | final SharedPreferences prefs = await SharedPreferences.getInstance(); 40 | prefs.setString('url', url!.replaceAll(RegExp(r"/+$"), '')); 41 | prefs.setString('apiKey', apiKey!); 42 | prefs.setString('limit', limit!); 43 | 44 | // Refresh to populate the interface 45 | final data = Provider.of(context, listen: false); 46 | final nav = Provider.of