Skip to content

Commit

Permalink
reverted back to local photo storage
Browse files Browse the repository at this point in the history
  • Loading branch information
oltimaloku committed Jan 30, 2024
1 parent 1238859 commit 443d196
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
2 changes: 0 additions & 2 deletions client/.env.example

This file was deleted.

2 changes: 1 addition & 1 deletion client/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion client/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
# platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
2 changes: 1 addition & 1 deletion client/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
20 changes: 13 additions & 7 deletions client/lib/features/gallery/widgets/photo_prompt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ class _PhotoPromptState extends State<PhotoPrompt> {
this.image = imageTemporary;

// Save the image path to the gallery
/* Provider.of<GalleryService>(context, listen: false)
Provider.of<GalleryService>(context, listen: false)
.addPhotoToGallery(widget.geoSphereId, image.path);
*/

/*
Provider.of<GalleryService>(context, listen: false)
.uploadPhoto(widget.geoSphereId, imageTemporary);
.uploadPhoto(widget.geoSphereId, imageTemporary);*/
} on PlatformException catch (e) {
print("Failed to pick image: $e");
}
Expand All @@ -52,11 +53,16 @@ class _PhotoPromptState extends State<PhotoPrompt> {
),
ElevatedButton(
onPressed: () async {
var status = await Permission.camera.request();
if (status.isGranted) {
if (Platform.isAndroid) {
var status = await Permission.camera.request();
if (status.isGranted) {
pickImage(ImageSource.camera);
} else {
print("bruh");
}
} else if (Platform.isIOS) {
// TODO: Implement iOS camera permission
pickImage(ImageSource.camera);
} else {
print("bruh");
}
},
child: const Text("Pick Camera"),
Expand Down
3 changes: 0 additions & 3 deletions client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ flutter:
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
Expand Down

0 comments on commit 443d196

Please sign in to comment.