forked from vikunja/app
Cleanup (#1)
This commit is contained in:
parent
a62abc0b35
commit
bbdd63782f
458
.gitignore
vendored
458
.gitignore
vendored
|
@ -1,397 +1,71 @@
|
||||||
# Created by https://www.gitignore.io/api/dart,swift,xcode,kotlin,android,flutter,intellij,androidstudio,visualstudiocode
|
# Miscellaneous
|
||||||
|
|
||||||
### Android ###
|
|
||||||
# Built application files
|
|
||||||
*.apk
|
|
||||||
*.ap_
|
|
||||||
|
|
||||||
# Files for the ART/Dalvik VM
|
|
||||||
*.dex
|
|
||||||
|
|
||||||
# Java class files
|
|
||||||
*.class
|
*.class
|
||||||
|
*.lock
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
|
||||||
# Generated files
|
# IntelliJ related
|
||||||
bin/
|
*.iml
|
||||||
gen/
|
*.ipr
|
||||||
out/
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
# Gradle files
|
# Visual Studio Code related
|
||||||
.gradle/
|
.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
|
.dart_tool/
|
||||||
|
.flutter-plugins
|
||||||
|
.packages
|
||||||
|
.pub-cache/
|
||||||
|
.pub/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
# Local configuration file (sdk path, etc)
|
# Android related
|
||||||
local.properties
|
**/android/**/gradle-wrapper.jar
|
||||||
|
**/android/.gradle
|
||||||
# Proguard folder generated by Eclipse
|
**/android/captures/
|
||||||
proguard/
|
**/android/gradlew
|
||||||
|
**/android/gradlew.bat
|
||||||
# Log Files
|
**/android/local.properties
|
||||||
*.log
|
**/android/**/GeneratedPluginRegistrant.java
|
||||||
|
|
||||||
# Android Studio Navigation editor temp files
|
# iOS/XCode related
|
||||||
.navigation/
|
**/ios/**/*.mode1v3
|
||||||
|
**/ios/**/*.mode2v3
|
||||||
# Android Studio captures folder
|
**/ios/**/*.moved-aside
|
||||||
captures/
|
**/ios/**/*.pbxuser
|
||||||
|
**/ios/**/*.perspectivev3
|
||||||
# IntelliJ
|
**/ios/**/*sync/
|
||||||
*.iml
|
**/ios/**/.sconsign.dblite
|
||||||
.idea/workspace.xml
|
**/ios/**/.tags*
|
||||||
.idea/tasks.xml
|
**/ios/**/.vagrant/
|
||||||
.idea/gradle.xml
|
**/ios/**/DerivedData/
|
||||||
.idea/assetWizardSettings.xml
|
**/ios/**/Icon?
|
||||||
.idea/dictionaries
|
**/ios/**/Pods/
|
||||||
.idea/libraries
|
**/ios/**/.symlinks/
|
||||||
.idea/caches
|
**/ios/**/profile
|
||||||
|
**/ios/**/xcuserdata
|
||||||
# Keystore files
|
**/ios/.generated/
|
||||||
# Uncomment the following line if you do not want to check your keystore files in.
|
**/ios/Flutter/App.framework
|
||||||
#*.jks
|
**/ios/Flutter/Flutter.framework
|
||||||
|
**/ios/Flutter/Generated.xcconfig
|
||||||
# External native build folder generated in Android Studio 2.2 and later
|
**/ios/Flutter/app.flx
|
||||||
.externalNativeBuild
|
**/ios/Flutter/app.zip
|
||||||
|
**/ios/Flutter/flutter_assets/
|
||||||
# Google Services (e.g. APIs or Firebase)
|
**/ios/ServiceDefinitions.json
|
||||||
google-services.json
|
**/ios/Runner/GeneratedPluginRegistrant.*
|
||||||
|
|
||||||
# Freeline
|
# Exceptions to above rules.
|
||||||
freeline.py
|
!**/ios/**/default.mode1v3
|
||||||
freeline/
|
!**/ios/**/default.mode2v3
|
||||||
freeline_project_description.json
|
!**/ios/**/default.pbxuser
|
||||||
|
!**/ios/**/default.perspectivev3
|
||||||
# fastlane
|
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||||
fastlane/report.xml
|
|
||||||
fastlane/Preview.html
|
|
||||||
fastlane/screenshots
|
|
||||||
fastlane/test_output
|
|
||||||
fastlane/readme.md
|
|
||||||
|
|
||||||
### Android Patch ###
|
|
||||||
gen-external-apklibs
|
|
||||||
|
|
||||||
### AndroidStudio ###
|
|
||||||
# Covers files to be ignored for android development using Android Studio.
|
|
||||||
|
|
||||||
# Built application files
|
|
||||||
|
|
||||||
# Files for the ART/Dalvik VM
|
|
||||||
|
|
||||||
# Java class files
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
|
|
||||||
# Gradle files
|
|
||||||
.gradle
|
|
||||||
|
|
||||||
# Signing files
|
|
||||||
.signing/
|
|
||||||
|
|
||||||
# Local configuration file (sdk path, etc)
|
|
||||||
|
|
||||||
# Proguard folder generated by Eclipse
|
|
||||||
|
|
||||||
# Log Files
|
|
||||||
|
|
||||||
# Android Studio
|
|
||||||
/*/build/
|
|
||||||
/*/local.properties
|
|
||||||
/*/out
|
|
||||||
/*/*/build
|
|
||||||
/*/*/production
|
|
||||||
*.ipr
|
|
||||||
*~
|
|
||||||
*.swp
|
|
||||||
|
|
||||||
# Android Patch
|
|
||||||
|
|
||||||
# External native build folder generated in Android Studio 2.2 and later
|
|
||||||
|
|
||||||
# NDK
|
|
||||||
obj/
|
|
||||||
|
|
||||||
# IntelliJ IDEA
|
|
||||||
*.iws
|
|
||||||
/out/
|
|
||||||
|
|
||||||
# User-specific configurations
|
|
||||||
.idea/caches/
|
|
||||||
.idea/libraries/
|
|
||||||
.idea/shelf/
|
|
||||||
.idea/.name
|
|
||||||
.idea/compiler.xml
|
|
||||||
.idea/copyright/profiles_settings.xml
|
|
||||||
.idea/encodings.xml
|
|
||||||
.idea/misc.xml
|
|
||||||
.idea/modules.xml
|
|
||||||
.idea/scopes/scope_settings.xml
|
|
||||||
.idea/vcs.xml
|
|
||||||
.idea/jsLibraryMappings.xml
|
|
||||||
.idea/datasources.xml
|
|
||||||
.idea/dataSources.ids
|
|
||||||
.idea/sqlDataSources.xml
|
|
||||||
.idea/dynamic.xml
|
|
||||||
.idea/uiDesigner.xml
|
|
||||||
|
|
||||||
# OS-specific files
|
|
||||||
.DS_Store
|
|
||||||
.DS_Store?
|
|
||||||
._*
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
ehthumbs.db
|
|
||||||
Thumbs.db
|
|
||||||
|
|
||||||
# Legacy Eclipse project files
|
|
||||||
.classpath
|
|
||||||
.project
|
|
||||||
.cproject
|
|
||||||
.settings/
|
|
||||||
|
|
||||||
# Mobile Tools for Java (J2ME)
|
|
||||||
.mtj.tmp/
|
|
||||||
|
|
||||||
# Package Files #
|
|
||||||
*.war
|
|
||||||
*.ear
|
|
||||||
|
|
||||||
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
|
|
||||||
hs_err_pid*
|
|
||||||
|
|
||||||
## Plugin-specific files:
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
atlassian-ide-plugin.xml
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/mongoSettings.xml
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
com_crashlytics_export_strings.xml
|
|
||||||
crashlytics.properties
|
|
||||||
crashlytics-build.properties
|
|
||||||
fabric.properties
|
|
||||||
|
|
||||||
### AndroidStudio Patch ###
|
|
||||||
|
|
||||||
!android/gradle/wrapper/gradle-wrapper.jar
|
|
||||||
|
|
||||||
### Dart ###
|
|
||||||
# See https://www.dartlang.org/guides/libraries/private-files
|
|
||||||
|
|
||||||
# Files and directories created by pub
|
|
||||||
.dart_tool/
|
|
||||||
.packages
|
|
||||||
# If you're building an application, you may want to check-in your pubspec.lock
|
|
||||||
pubspec.lock
|
|
||||||
|
|
||||||
# Directory created by dartdoc
|
|
||||||
# If you don't generate documentation locally you can remove this line.
|
|
||||||
doc/api/
|
|
||||||
|
|
||||||
# Avoid committing generated Javascript files:
|
|
||||||
*.dart.js
|
|
||||||
*.info.json # Produced by the --dump-info flag.
|
|
||||||
*.js # When generated by dart2js. Don't specify *.js if your
|
|
||||||
# project includes source files written in JavaScript.
|
|
||||||
*.js_
|
|
||||||
*.js.deps
|
|
||||||
*.js.map
|
|
||||||
|
|
||||||
### Flutter ###
|
|
||||||
.flutter-plugins
|
|
||||||
|
|
||||||
### Intellij ###
|
|
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
||||||
|
|
||||||
# User-specific stuff
|
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
# Gradle
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using
|
|
||||||
# auto-import.
|
|
||||||
# .idea/modules.xml
|
|
||||||
# .idea/*.iml
|
|
||||||
# .idea/modules
|
|
||||||
|
|
||||||
# CMake
|
|
||||||
cmake-build-*/
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
# File-based project format
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
|
|
||||||
# Cursive Clojure plugin
|
|
||||||
.idea/replstate.xml
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
|
|
||||||
# Editor-based Rest Client
|
|
||||||
.idea/httpRequests
|
|
||||||
|
|
||||||
### Intellij Patch ###
|
|
||||||
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
|
|
||||||
|
|
||||||
# *.iml
|
|
||||||
# modules.xml
|
|
||||||
# .idea/misc.xml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# Sonarlint plugin
|
|
||||||
.idea/sonarlint
|
|
||||||
|
|
||||||
### Kotlin ###
|
|
||||||
# Compiled class file
|
|
||||||
|
|
||||||
# Log file
|
|
||||||
|
|
||||||
# BlueJ files
|
|
||||||
*.ctxt
|
|
||||||
|
|
||||||
# Mobile Tools for Java (J2ME)
|
|
||||||
|
|
||||||
# Package Files #
|
|
||||||
*.jar
|
|
||||||
*.nar
|
|
||||||
*.zip
|
|
||||||
*.tar.gz
|
|
||||||
*.rar
|
|
||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
|
||||||
|
|
||||||
### Swift ###
|
|
||||||
# Xcode
|
|
||||||
#
|
|
||||||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
|
||||||
|
|
||||||
## Build generated
|
|
||||||
DerivedData/
|
|
||||||
|
|
||||||
## Various settings
|
|
||||||
*.pbxuser
|
|
||||||
!default.pbxuser
|
|
||||||
*.mode1v3
|
|
||||||
!default.mode1v3
|
|
||||||
*.mode2v3
|
|
||||||
!default.mode2v3
|
|
||||||
*.perspectivev3
|
|
||||||
!default.perspectivev3
|
|
||||||
xcuserdata/
|
|
||||||
|
|
||||||
## Other
|
|
||||||
*.moved-aside
|
|
||||||
*.xccheckout
|
|
||||||
*.xcscmblueprint
|
|
||||||
|
|
||||||
## Obj-C/Swift specific
|
|
||||||
*.hmap
|
|
||||||
*.ipa
|
|
||||||
*.dSYM.zip
|
|
||||||
*.dSYM
|
|
||||||
|
|
||||||
## Playgrounds
|
|
||||||
timeline.xctimeline
|
|
||||||
playground.xcworkspace
|
|
||||||
|
|
||||||
# Swift Package Manager
|
|
||||||
#
|
|
||||||
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
|
|
||||||
# Packages/
|
|
||||||
# Package.pins
|
|
||||||
# Package.resolved
|
|
||||||
.build/
|
|
||||||
|
|
||||||
# CocoaPods
|
|
||||||
#
|
|
||||||
# We recommend against adding the Pods directory to your .gitignore. However
|
|
||||||
# you should judge for yourself, the pros and cons are mentioned at:
|
|
||||||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
|
||||||
#
|
|
||||||
# Pods/
|
|
||||||
#
|
|
||||||
# Add this line if you want to avoid checking in source code from the Xcode workspace
|
|
||||||
# *.xcworkspace
|
|
||||||
|
|
||||||
# Carthage
|
|
||||||
#
|
|
||||||
# Add this line if you want to avoid checking in source code from Carthage dependencies.
|
|
||||||
# Carthage/Checkouts
|
|
||||||
|
|
||||||
Carthage/Build
|
|
||||||
|
|
||||||
# fastlane
|
|
||||||
#
|
|
||||||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
||||||
# screenshots whenever they are needed.
|
|
||||||
# For more information about the recommended setup visit:
|
|
||||||
# https://docs.fastlane.tools/best-practices/source-control/#source-control
|
|
||||||
|
|
||||||
fastlane/screenshots/**/*.png
|
|
||||||
|
|
||||||
# Code Injection
|
|
||||||
#
|
|
||||||
# After new code Injection tools there's a generated folder /iOSInjectionProject
|
|
||||||
# https://github.com/johnno1962/injectionforxcode
|
|
||||||
|
|
||||||
iOSInjectionProject/
|
|
||||||
|
|
||||||
### VisualStudioCode ###
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/settings.json
|
|
||||||
!.vscode/tasks.json
|
|
||||||
!.vscode/launch.json
|
|
||||||
!.vscode/extensions.json
|
|
||||||
|
|
||||||
### Xcode ###
|
|
||||||
# Xcode
|
|
||||||
#
|
|
||||||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
|
||||||
|
|
||||||
## User settings
|
|
||||||
|
|
||||||
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
|
|
||||||
|
|
||||||
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
|
|
||||||
|
|
||||||
### Xcode Patch ###
|
|
||||||
*.xcodeproj/*
|
|
||||||
!*.xcodeproj/project.pbxproj
|
|
||||||
!*.xcodeproj/xcshareddata/
|
|
||||||
!*.xcworkspace/contents.xcworkspacedata
|
|
||||||
/*.gcno
|
|
||||||
|
|
||||||
|
|
||||||
# End of https://www.gitignore.io/api/dart,swift,xcode,kotlin,android,flutter,intellij,androidstudio,visualstudiocode
|
|
||||||
|
|
30
Makefile
Normal file
30
Makefile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
GIT_LAST_COMMIT := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
||||||
|
|
||||||
|
ifneq ($(DRONE_TAG),)
|
||||||
|
VERSION ?= $(subst v,,$(DRONE_TAG))-$(GIT_LAST_COMMIT)
|
||||||
|
else
|
||||||
|
ifneq ($(DRONE_BRANCH),)
|
||||||
|
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))-$(GIT_LAST_COMMIT)
|
||||||
|
else
|
||||||
|
VERSION ?= master-$(GIT_LAST_COMMIT)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
flutter test
|
||||||
|
|
||||||
|
.PHONY: build-all
|
||||||
|
build-all: build-release build-debug build-profile
|
||||||
|
|
||||||
|
.PHONY: build-release
|
||||||
|
build-release:
|
||||||
|
flutter build apk --release --build-name=$(VERSION)
|
||||||
|
|
||||||
|
.PHONY: build-debug
|
||||||
|
build-debug:
|
||||||
|
flutter build apk --debug --build-name=$(VERSION)
|
||||||
|
|
||||||
|
.PHONY: build-profile
|
||||||
|
build-profile:
|
||||||
|
flutter build apk --profile --build-name=$(VERSION)
|
|
@ -1,3 +1,7 @@
|
||||||
# FlutteringVikunja
|
# Vikunja Cross-Plattform app
|
||||||
|
|
||||||
Vikunja as Flutter cross platform app
|
[![Build Status](https://drone.kolaente.de/api/badges/vikunja/app/status.svg)](https://drone.kolaente.de/vikunja/app)
|
||||||
|
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
||||||
|
[![Download](https://img.shields.io/badge/download-v0.1-brightgreen.svg)](https://storage.kolaente.de/minio/vikunja-app/)
|
||||||
|
|
||||||
|
Vikunja as Flutter cross platform app.
|
|
@ -13,7 +13,7 @@
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>fluttering_vikunja</string>
|
<string>vikunja_app</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:fluttering_vikunja/api/service.dart';
|
import 'package:vikunja_app/api/service.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
class ListAPIService extends APIService implements ListService {
|
class ListAPIService extends APIService implements ListService {
|
||||||
ListAPIService(Client client) : super(client);
|
ListAPIService(Client client) : super(client);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:fluttering_vikunja/api/service.dart';
|
import 'package:vikunja_app/api/service.dart';
|
||||||
import 'package:fluttering_vikunja/models/namespace.dart';
|
import 'package:vikunja_app/models/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
class NamespaceAPIService extends APIService implements NamespaceService {
|
class NamespaceAPIService extends APIService implements NamespaceService {
|
||||||
NamespaceAPIService(Client client) : super(client);
|
NamespaceAPIService(Client client) : super(client);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:meta/meta.dart';
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
class APIService {
|
class APIService {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:fluttering_vikunja/api/service.dart';
|
import 'package:vikunja_app/api/service.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
class TaskAPIService extends APIService implements TaskService {
|
class TaskAPIService extends APIService implements TaskService {
|
||||||
TaskAPIService(Client client) : super(client);
|
TaskAPIService(Client client) : super(client);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:fluttering_vikunja/api/service.dart';
|
import 'package:vikunja_app/api/service.dart';
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
class UserAPIService extends APIService implements UserService {
|
class UserAPIService extends APIService implements UserService {
|
||||||
UserAPIService(Client client) : super(client);
|
UserAPIService(Client client) : super(client);
|
||||||
|
|
|
@ -2,10 +2,10 @@ import 'dart:async';
|
||||||
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttering_vikunja/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:fluttering_vikunja/models/namespace.dart';
|
import 'package:vikunja_app/models/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/pages/list_page.dart';
|
import 'package:vikunja_app/pages/list_page.dart';
|
||||||
|
|
||||||
class NamespaceFragment extends StatefulWidget {
|
class NamespaceFragment extends StatefulWidget {
|
||||||
final Namespace namespace;
|
final Namespace namespace;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||||
import 'package:fluttering_vikunja/api/client.dart';
|
import 'package:vikunja_app/api/client.dart';
|
||||||
import 'package:fluttering_vikunja/api/list_implementation.dart';
|
import 'package:vikunja_app/api/list_implementation.dart';
|
||||||
import 'package:fluttering_vikunja/api/namespace_implementation.dart';
|
import 'package:vikunja_app/api/namespace_implementation.dart';
|
||||||
import 'package:fluttering_vikunja/api/task_implementation.dart';
|
import 'package:vikunja_app/api/task_implementation.dart';
|
||||||
import 'package:fluttering_vikunja/api/user_implementation.dart';
|
import 'package:vikunja_app/api/user_implementation.dart';
|
||||||
import 'package:fluttering_vikunja/managers/user.dart';
|
import 'package:vikunja_app/managers/user.dart';
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
import 'package:fluttering_vikunja/service/mocked_services.dart';
|
import 'package:vikunja_app/service/mocked_services.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
class VikunjaGlobal extends StatefulWidget {
|
class VikunjaGlobal extends StatefulWidget {
|
||||||
final Widget child;
|
final Widget child;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttering_vikunja/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:fluttering_vikunja/pages/home_page.dart';
|
import 'package:vikunja_app/pages/home_page.dart';
|
||||||
import 'package:fluttering_vikunja/pages/login_page.dart';
|
import 'package:vikunja_app/pages/login_page.dart';
|
||||||
import 'package:fluttering_vikunja/style.dart';
|
import 'package:vikunja_app/style.dart';
|
||||||
|
|
||||||
void main() => runApp(VikunjaGlobal(
|
void main() => runApp(VikunjaGlobal(
|
||||||
child: new VikunjaApp(home: HomePage()),
|
child: new VikunjaApp(home: HomePage()),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
import 'package:meta/meta.dart';
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
class Namespace {
|
class Namespace {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
import 'package:meta/meta.dart';
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
class Task {
|
class Task {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttering_vikunja/components/GravatarImage.dart';
|
import 'package:vikunja_app/components/GravatarImage.dart';
|
||||||
import 'package:fluttering_vikunja/fragments/namespace.dart';
|
import 'package:vikunja_app/fragments/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/fragments/placeholder.dart';
|
import 'package:vikunja_app/fragments/placeholder.dart';
|
||||||
import 'package:fluttering_vikunja/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:fluttering_vikunja/models/namespace.dart';
|
import 'package:vikunja_app/models/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
|
|
||||||
class HomePage extends StatefulWidget {
|
class HomePage extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttering_vikunja/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
|
|
||||||
class ListPage extends StatefulWidget {
|
class ListPage extends StatefulWidget {
|
||||||
final TaskList taskList;
|
final TaskList taskList;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttering_vikunja/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:fluttering_vikunja/main.dart';
|
import 'package:vikunja_app/main.dart';
|
||||||
|
|
||||||
class LoginPage extends StatefulWidget {
|
class LoginPage extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/models/namespace.dart';
|
import 'package:vikunja_app/models/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
import 'package:fluttering_vikunja/service/services.dart';
|
import 'package:vikunja_app/service/services.dart';
|
||||||
|
|
||||||
// Data for mocked services
|
// Data for mocked services
|
||||||
var _users = {1: User(1, 'test@testuser.org', 'test1')};
|
var _users = {1: User(1, 'test@testuser.org', 'test1')};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/models/namespace.dart';
|
import 'package:vikunja_app/models/namespace.dart';
|
||||||
import 'package:fluttering_vikunja/models/task.dart';
|
import 'package:vikunja_app/models/task.dart';
|
||||||
import 'package:fluttering_vikunja/models/user.dart';
|
import 'package:vikunja_app/models/user.dart';
|
||||||
|
|
||||||
abstract class NamespaceService {
|
abstract class NamespaceService {
|
||||||
Future<List<Namespace>> getAll();
|
Future<List<Namespace>> getAll();
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
name: fluttering_vikunja
|
name: vikunja_app
|
||||||
description: Vikunja as Flutter cross platform app
|
description: Vikunja as Flutter cross platform app
|
||||||
|
|
||||||
# The following defines the version and build number for your application.
|
|
||||||
# A version number is three numbers separated by dots, like 1.2.43
|
|
||||||
# followed by an optional build number separated by a +.
|
|
||||||
# Both the version and the builder number may be overridden in flutter
|
|
||||||
# build by specifying --build-name and --build-number, respectively.
|
|
||||||
# Read more about versioning at semver.org.
|
|
||||||
version: 1.0.0+1
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -1,29 +1,3 @@
|
||||||
// This is a basic Flutter widget test.
|
|
||||||
// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter
|
|
||||||
// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to
|
|
||||||
// find child widgets in the widget tree, read text, and verify that the values of widget properties
|
|
||||||
// are correct.
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
|
|
||||||
import 'package:fluttering_vikunja/pages/home_page.dart';
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
// Tests go here.
|
||||||
// Build our app and trigger a frame.
|
|
||||||
await tester.pumpWidget(new HomePage());
|
|
||||||
|
|
||||||
// Verify that our counter starts at 0.
|
|
||||||
expect(find.text('0'), findsOneWidget);
|
|
||||||
expect(find.text('1'), findsNothing);
|
|
||||||
|
|
||||||
// Tap the '+' icon and trigger a frame.
|
|
||||||
await tester.tap(find.byIcon(Icons.add));
|
|
||||||
await tester.pump();
|
|
||||||
|
|
||||||
// Verify that our counter has incremented.
|
|
||||||
expect(find.text('0'), findsNothing);
|
|
||||||
expect(find.text('1'), findsOneWidget);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user