mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-04 12:42:22 +01:00
Add workaround for swift package manager for the health package
This commit is contained in:
@@ -1,2 +1 @@
|
||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
||||
#include "Generated.xcconfig"
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
||||
#include "Generated.xcconfig"
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
BB0286322FD60C00014F981C /* Pods */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@@ -105,13 +104,6 @@
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
BB0286322FD60C00014F981C /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
@@ -295,7 +287,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
@@ -383,7 +375,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
@@ -432,7 +424,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import 'package:health/health.dart';
|
||||
import 'package:health_bridge/health.dart';
|
||||
import 'package:wger/features/measurements/models/measurement_category.dart';
|
||||
|
||||
/// A body metric that can be imported from Apple Health / Health Connect into a
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import 'package:health/health.dart';
|
||||
import 'package:health_bridge/health.dart';
|
||||
|
||||
/// A single reading pulled from a health platform, reduced to the fields the
|
||||
/// importer needs. Keeps the `health` package's [HealthDataPoint] out of the
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:health/health.dart';
|
||||
import 'package:health_bridge/health.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:wger/features/health/models/health_reading.dart';
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:health/health.dart';
|
||||
import 'package:health_bridge/health.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:powersync/powersync.dart' as ps;
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
21
pubspec.lock
21
pubspec.lock
@@ -193,14 +193,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.1.2"
|
||||
carp_serializable:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: carp_serializable
|
||||
sha256: f039f8ea22e9437aef13fe7e9743c3761c76d401288dcb702eadd273c3e4dcef
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.1"
|
||||
change:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -743,14 +735,15 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.2.0"
|
||||
health:
|
||||
health_bridge:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: health
|
||||
sha256: "2d9e119f3a1d281139f93149b41032b9f80b759960875bc784c5a25dd3c17524"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "13.3.1"
|
||||
path: "."
|
||||
ref: "51a567db9a97ccb15a9c1138aa4bcbdaf3d6c7b1"
|
||||
resolved-ref: "51a567db9a97ccb15a9c1138aa4bcbdaf3d6c7b1"
|
||||
url: "https://github.com/ytsni/health_bridge.git"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
hooks:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
10
pubspec.yaml
10
pubspec.yaml
@@ -51,7 +51,15 @@ dependencies:
|
||||
flutter_zxing: ^2.3.0
|
||||
font_awesome_flutter: ^11.0.0
|
||||
freezed_annotation: ^3.1.0
|
||||
health: ^13.3.1
|
||||
# Temporarily swap `health` with a fork with Swift Package Manager support.
|
||||
# Once that is available on upstream (see e.g. https://github.com/carp-dk/carp-health-flutter/issues/480 )
|
||||
# we can switch back. Note that if this doesn't happen in the near future we
|
||||
# can just re-activate the cocoapods infrastructure.
|
||||
# health: ^13.3.1
|
||||
health_bridge:
|
||||
git:
|
||||
url: https://github.com/ytsni/health_bridge.git
|
||||
ref: 51a567db9a97ccb15a9c1138aa4bcbdaf3d6c7b1
|
||||
http: ^1.6.0
|
||||
image_picker: ^1.2.2
|
||||
intl: ^0.20.2
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:health/health.dart';
|
||||
import 'package:health_bridge/health.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart';
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i4;
|
||||
|
||||
import 'package:health/health.dart' as _i5;
|
||||
import 'package:health_bridge/health.dart' as _i5;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i3;
|
||||
import 'package:wger/features/health/models/health_reading.dart' as _i6;
|
||||
|
||||
Reference in New Issue
Block a user