Updating nextcloud dependency, fixing upload and pub dep error
This commit is contained in:
parent
3adc3bcf88
commit
047282c5aa
12
.idea/libraries/Dart_Packages.xml
generated
12
.idea/libraries/Dart_Packages.xml
generated
@ -275,6 +275,13 @@
|
|||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry key="dynamite_runtime">
|
||||||
|
<value>
|
||||||
|
<list>
|
||||||
|
<option value="$USER_HOME$/.pub-cache/git/nextcloud-neon-482bff006d4338964c0704600c50434fe76a19b2/packages/dynamite/dynamite_runtime/lib" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
<entry key="fake_async">
|
<entry key="fake_async">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
@ -621,7 +628,7 @@
|
|||||||
<entry key="nextcloud">
|
<entry key="nextcloud">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
<option value="$USER_HOME$/.pub-cache/git/nextcloud-neon-68624545e6ef45e6c4d07bf76addade067479683/packages/nextcloud/lib" />
|
<option value="$USER_HOME$/.pub-cache/git/nextcloud-neon-dc54d2f0c2b5641f3a81a7af8e585482111ce1fc/packages/nextcloud/lib" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
@ -1140,7 +1147,8 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$USER_HOME$/.pub-cache/git/flowder-1ddd171a763c4f1ba09b95e34e35e2e5cf0d1bba//lib" />
|
<root url="file://$USER_HOME$/.pub-cache/git/flowder-1ddd171a763c4f1ba09b95e34e35e2e5cf0d1bba//lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/git/nextcloud-neon-68624545e6ef45e6c4d07bf76addade067479683/packages/nextcloud/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/git/nextcloud-neon-482bff006d4338964c0704600c50434fe76a19b2/packages/dynamite/dynamite_runtime/lib" />
|
||||||
|
<root url="file://$USER_HOME$/.pub-cache/git/nextcloud-neon-dc54d2f0c2b5641f3a81a7af8e585482111ce1fc/packages/nextcloud/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/_fe_analyzer_shared-61.0.0/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/_fe_analyzer_shared-61.0.0/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/analyzer-5.13.0/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/analyzer-5.13.0/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/another_flushbar-1.12.30/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/another_flushbar-1.12.30/lib" />
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
Flutter crash report.
|
|
||||||
Please report a bug at https://github.com/flutter/flutter/issues.
|
|
||||||
|
|
||||||
## command
|
|
||||||
|
|
||||||
flutter --no-color run --machine --device-id=5200de3d4dd02295 --profile --dart-define=flutter.inspector.structuredErrors=true lib/main.dart
|
|
||||||
|
|
||||||
## exception
|
|
||||||
|
|
||||||
String: failed to connect to http://127.0.0.1:33337/a6hNejw63ys=/
|
|
||||||
|
|
||||||
```
|
|
||||||
```
|
|
||||||
|
|
||||||
## flutter doctor
|
|
||||||
|
|
||||||
```
|
|
||||||
[!] Flutter (Channel stable, 3.7.4, on Linux Mint 20.3 5.15.0-60-generic, locale de_DE.UTF-8)
|
|
||||||
• Flutter version 3.7.4 on channel stable at /opt/flutter
|
|
||||||
! The flutter binary is not on your path. Consider adding /opt/flutter/bin to your path.
|
|
||||||
! The dart binary is not on your path. Consider adding /opt/flutter/bin to your path.
|
|
||||||
• Upstream repository https://github.com/flutter/flutter.git
|
|
||||||
• Framework revision b4bce91dd0 (vor 33 Stunden), 2023-02-21 09:50:50 +0800
|
|
||||||
• Engine revision 248290d6d5
|
|
||||||
• Dart version 2.19.2
|
|
||||||
• DevTools version 2.20.1
|
|
||||||
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
|
|
||||||
|
|
||||||
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
|
|
||||||
• Android SDK at /home/elias/Android/Sdk
|
|
||||||
• Platform android-33, build-tools 33.0.0
|
|
||||||
• Java binary at: /home/elias/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/jre/bin/java
|
|
||||||
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
|
|
||||||
• All Android licenses accepted.
|
|
||||||
|
|
||||||
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
|
|
||||||
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
|
|
||||||
|
|
||||||
[✓] Linux toolchain - develop for Linux desktop
|
|
||||||
• clang version 10.0.0-4ubuntu1
|
|
||||||
• cmake version 3.16.3
|
|
||||||
• ninja version 1.10.0
|
|
||||||
• pkg-config version 0.29.1
|
|
||||||
|
|
||||||
[✓] Android Studio (version 2021.3)
|
|
||||||
• Android Studio at /home/elias/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335
|
|
||||||
• Flutter plugin version 72.1.1
|
|
||||||
• Dart plugin version 213.7433
|
|
||||||
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
|
|
||||||
|
|
||||||
[✓] Connected device (2 available)
|
|
||||||
• SM G800F (mobile) • 5200de3d4dd02295 • android-arm • Android 6.0.1 (API 23)
|
|
||||||
• Linux (desktop) • linux • linux-x64 • Linux Mint 20.3 5.15.0-60-generic
|
|
||||||
|
|
||||||
[✓] HTTP Host Availability
|
|
||||||
• All required HTTP hosts are available
|
|
||||||
|
|
||||||
! Doctor found issues in 2 categories.
|
|
||||||
```
|
|
@ -1,30 +0,0 @@
|
|||||||
import 'dart:io';
|
|
||||||
import 'package:nextcloud/nextcloud.dart';
|
|
||||||
|
|
||||||
// NOT WORKING curl -H 'Transfer-Encoding: chunked' -H 'Content-Type: image/png' --compressed -u goldbaja -T /home/elias/Bilder/robotikmeme.png https://cloud.marianum-fulda.de/remote.php/webdav/some-image.png
|
|
||||||
// WORKS curl -H 'Transfer-Encoding: chunked' -H 'Content-Type: image/png' --compressed -u minetec -T /home/elias/Bilder/robotikmeme.png https://mhsl.eu/cloud/remote.php/webdav/some-image.png
|
|
||||||
|
|
||||||
void main() async {
|
|
||||||
print("HELLO WORLD");
|
|
||||||
WebDavClient client = NextcloudClient("https://cloud.marianum-fulda.de", username: "xxx", password: "xxx", loginName: "xxx").webdav;
|
|
||||||
|
|
||||||
final fileBytes = File("/home/elias/Bilder/robotikmeme.png").readAsBytesSync();
|
|
||||||
|
|
||||||
print(fileBytes.length);
|
|
||||||
|
|
||||||
HttpClientResponse response = await client.upload(fileBytes, "menue/test.png");
|
|
||||||
print(response.statusCode);
|
|
||||||
|
|
||||||
await Future.delayed(const Duration(seconds: 5)); // Wait a bit, just in case
|
|
||||||
|
|
||||||
final responses = (await client.ls(
|
|
||||||
'/menue/',
|
|
||||||
prop: WebDavPropfindProp.fromBools(
|
|
||||||
ocsize: true,
|
|
||||||
),
|
|
||||||
)).responses;
|
|
||||||
|
|
||||||
print("Filesize local: ${fileBytes.length}");
|
|
||||||
print("Filesize on Server: ${responses.singleWhere((final response) => response.href!.endsWith('/menue/test.png')).propstats.first.prop.ocsize}");
|
|
||||||
|
|
||||||
}
|
|
@ -31,11 +31,6 @@ environment:
|
|||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
xml: ^6.2.2
|
xml: ^6.2.2
|
||||||
dynamite_runtime:
|
|
||||||
git:
|
|
||||||
url: https://github.com/provokateurin/nextcloud-neon
|
|
||||||
path: packages/dynamite/dynamite_runtime
|
|
||||||
ref: 482bff006d4338964c0704600c50434fe76a19b2
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
@ -62,7 +57,7 @@ dependencies:
|
|||||||
git:
|
git:
|
||||||
url: https://github.com/provokateurin/nextcloud-neon
|
url: https://github.com/provokateurin/nextcloud-neon
|
||||||
path: packages/nextcloud
|
path: packages/nextcloud
|
||||||
ref: 482bff006d4338964c0704600c50434fe76a19b2
|
ref: dc54d2f0c2b5641f3a81a7af8e585482111ce1fc
|
||||||
flutter_launcher_icons: ^0.13.1
|
flutter_launcher_icons: ^0.13.1
|
||||||
pretty_json: ^2.0.0
|
pretty_json: ^2.0.0
|
||||||
cached_network_image: ^3.2.3
|
cached_network_image: ^3.2.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user