sync
This commit is contained in:
parent
85f123a98a
commit
fa0ace8c08
Binary file not shown.
|
@ -1,26 +1,26 @@
|
||||||
import 'dart:io';
|
import "dart:io";
|
||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import "package:dart_appwrite/dart_appwrite.dart";
|
||||||
|
|
||||||
void main() { // Init SDK
|
void main() { // Init SDK
|
||||||
Client client = Client();
|
Client client = Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint(process.env.APPWRITE_ENDPOINT) // Your API Endpoint
|
.setEndpoint(Platform.environment["APPWRITE_ENDPOINT"]) // Your API Endpoint
|
||||||
.setProject(process.env.APPWRITE_PROJECT) // Your project ID
|
.setProject(Platform.environment["APPWRITE_PROJECT"]) // Your project ID
|
||||||
.setKey(process.env.APPWRITE_SECRET) // Your secret API key
|
.setKey(Platform.environment["APPWRITE_SECRET"]) // Your secret API key
|
||||||
;
|
;
|
||||||
|
|
||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
//Future result = storage.getFile(fileId: '[FILE_ID]');
|
//Future result = storage.getFile(fileId: '[FILE_ID]');
|
||||||
|
|
||||||
print(process.env.APPWRITE_FUNCTION_ID);
|
print(Platform.environment["APPWRITE_FUNCTION_ID"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_NAME);
|
print(Platform.environment["APPWRITE_FUNCTION_NAME"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_TAG);
|
print(Platform.environment["APPWRITE_FUNCTION_TAG"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_TRIGGER);
|
print(Platform.environment["APPWRITE_FUNCTION_TRIGGER"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_ENV_NAME);
|
print(Platform.environment["APPWRITE_FUNCTION_ENV_NAME"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_ENV_VERSION);
|
print(Platform.environment["APPWRITE_FUNCTION_ENV_VERSION"]);
|
||||||
// print(result['$id']);
|
// print(result['$id']);
|
||||||
print(process.env.APPWRITE_FUNCTION_EVENT);
|
print(Platform.environment["APPWRITE_FUNCTION_EVENT"]);
|
||||||
print(process.env.APPWRITE_FUNCTION_EVENT_PAYLOAD);
|
print(Platform.environment["APPWRITE_FUNCTION_EVENT_PAYLOAD"]);
|
||||||
}
|
}
|
|
@ -3,7 +3,9 @@ echo 'Dart Packaging...'
|
||||||
|
|
||||||
cp -r $(pwd)/tests/resources/functions/dart $(pwd)/tests/resources/functions/packages/dart
|
cp -r $(pwd)/tests/resources/functions/dart $(pwd)/tests/resources/functions/packages/dart
|
||||||
|
|
||||||
|
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app appwrite/env-dart-2.10:1.0.0 ls
|
||||||
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app --env PUB_CACHE=./.appwrite appwrite/env-dart-2.10:1.0.0 pub get
|
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app --env PUB_CACHE=./.appwrite appwrite/env-dart-2.10:1.0.0 pub get
|
||||||
|
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app --env PUB_CACHE=./.appwrite appwrite/env-dart-2.10:1.0.0 pub get --offline
|
||||||
|
|
||||||
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app appwrite/env-dart-2.10:1.0.0 tar -zcvf code.tar.gz .
|
docker run --rm -v $(pwd)/tests/resources/functions/packages/dart:/app -w /app appwrite/env-dart-2.10:1.0.0 tar -zcvf code.tar.gz .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue