Skip to content

Commit

Permalink
Corrected Merge Conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gioele Bigini committed Nov 17, 2020
1 parent d9a1d64 commit 679ef3a
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 71 deletions.
8 changes: 0 additions & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ android {
}

defaultConfig {
<<<<<<< HEAD
applicationId "it.uniurb.balance_app"
=======
applicationId "srl.digit.balance"
>>>>>>> dev
minSdkVersion 16
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
Expand All @@ -65,11 +61,7 @@ android {

buildTypes {
release {
<<<<<<< HEAD
signingConfig signingConfigs.release
=======
signingConfig signingConfigs.debug
>>>>>>> dev
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<<<<<<< HEAD
package="it.uniurb.balance_app">
=======
package="srl.digit.balance">
>>>>>>> dev
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
4 changes: 0 additions & 4 deletions android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<<<<<<< HEAD
package="it.uniurb.balance_app">
=======
package="srl.digit.balance">
>>>>>>> dev
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
3 changes: 0 additions & 3 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
<<<<<<< HEAD
=======
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
>>>>>>> dev
#include "Generated.xcconfig"
3 changes: 0 additions & 3 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
<<<<<<< HEAD
=======
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
>>>>>>> dev
#include "Generated.xcconfig"
3 changes: 0 additions & 3 deletions ios/Runner.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<<<<<<< HEAD
<string>balance_app</string>
=======
<string>Balance</string>
>>>>>>> dev
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
29 changes: 0 additions & 29 deletions lib/model/measurement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,34 +146,6 @@ class Measurement {
grZ: s.grZ,
);

/// Maps this object to json
<<<<<<< HEAD
Map toJson() => {
"id": this.id,
"creationDate": this.creationDate,
"eyesOpen": this.eyesOpen,
"hasFeatures": this.hasFeatures,
"swayPath": this.swayPath,
"meanDisplacement": this.meanDisplacement,
"stdDisplacement": this.stdDisplacement,
"minDist": this.minDist,
"maxDist": this.maxDist,
"frequencyPeakAP": this.frequencyPeakAP,
"frequencyPeakML": this.frequencyPeakML,
"meanFrequencyML": this.meanFrequencyML,
"meanFrequencyAP": this.meanFrequencyAP,
"f80ML": this.f80ML,
"f80AP": this.f80AP,
"np": this.numMax, "meanTime": this.meanTime,
"stdTime": this.stdTime, "meanDistance": this.meanDistance,
"stdDistance": this.stdDistance, "meanPeaks": this.meanPeaks,
"stdPeaks": this.stdPeaks,
"gsX": this.gsX, "gsY": this.gsY, "gsZ": this.gsZ,
"gkX": this.gkX, "gkY": this.gkY, "gkZ": this.gkZ,
"gmX": this.gmX, "gmY": this.gmY, "gmZ": this.gmZ,
"gvX": this.gvX, "gvY": this.gvY, "gvZ": this.gvZ,
"grX": this.grX, "grY": this.grY, "grZ": this.grZ,
=======
Map<String, dynamic> toJson() => {
'id': this.id,
'token': this.token,
Expand Down Expand Up @@ -204,7 +176,6 @@ class Measurement {
'gmX': this.gmX, 'gmY': this.gmY, 'gmZ': this.gmZ,
'gvX': this.gvX, 'gvY': this.gvY, 'gvZ': this.gvZ,
'grX': this.grX, 'grY': this.grY, 'grZ': this.grZ,
>>>>>>> dev
};


Expand Down
15 changes: 2 additions & 13 deletions lib/repository/measure_countdown_repository.dart
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@

<<<<<<< HEAD
=======
import 'dart:convert';

>>>>>>> dev

import 'package:balance_app/floor/measurement_database.dart';
import 'package:balance_app/floor/test_database_view.dart';
import 'package:balance_app/manager/preference_manager.dart';
import 'package:balance_app/model/measurement.dart';
import 'package:balance_app/model/raw_measurement_data.dart';
import 'package:balance_app/model/sensor_data.dart';
<<<<<<< HEAD
=======
import 'package:http/http.dart';
>>>>>>> dev


class MeasureCountdownRepository {
final MeasurementDatabase database;
Expand All @@ -39,12 +34,9 @@ class MeasureCountdownRepository {
await _generateRawData(rawSensorData, newMeasId).toList()
);

<<<<<<< HEAD
=======
// send data to server
_makePostRequest(await _generateRawData(rawSensorData, newMeasId).toList());

>>>>>>> dev
// return the newly added Test
return await measurementDao.findTestById(newMeasId);
} catch(e) {
Expand All @@ -53,8 +45,6 @@ class MeasureCountdownRepository {
}
}

<<<<<<< HEAD
=======
_makePostRequest(var data) async {
// TODO: This stuff here is hardcode. Need changes
// set up POST request arguments
Expand All @@ -72,7 +62,6 @@ class MeasureCountdownRepository {
print("RawMeasurement Sent to the Backend");
}

>>>>>>> dev
/// Asynchronously generate the [RawMeasurementData] from the [SensorData]
///
/// This method will generate one-by-one each [RawMeasurementData] that will be then
Expand Down

0 comments on commit 679ef3a

Please sign in to comment.