Skip to content

Commit e8e905e

Browse files
committed
#971 Fixing keyboard resize for API 35.
Ignoring first 6 seconds on a shot run for the baristamode for sanremo
1 parent 9eabc41 commit e8e905e

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.beanconqueror.app"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 80400
11-
versionName "8.4.0"
10+
versionCode 80401
11+
versionName "8.4.1"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

capacitor.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { CapacitorConfig } from '@capacitor/cli';
22
import { argv, env } from 'process';
3+
import { KeyboardResize } from '@capacitor/keyboard';
34

45
type Platform = 'android' | 'ios';
56
const PlatformOverrideEnvVariable = 'CAPACITOR_PLATFORM_OVERRIDE';
@@ -99,6 +100,10 @@ const createConfig = () => {
99100
// to the __baristaDB on Android when updating from Cordova builds
100101
config.server.hostname = 'beanconqueror.com';
101102
config.server.androidScheme = 'https';
103+
config.plugins.Keyboard = {
104+
resize: KeyboardResize.Native,
105+
resizeOnFullScreen: true,
106+
};
102107
break;
103108
case 'ios':
104109
// Using this hostname and scheme is required to retain access

ios/App/App.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
buildSettings = {
349349
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350350
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
351+
CODE_SIGN_IDENTITY = "Apple Development";
351352
CODE_SIGN_STYLE = Automatic;
352353
CURRENT_PROJECT_VERSION = 3;
353354
DEVELOPMENT_TEAM = W8B7XY7WGY;
@@ -356,10 +357,11 @@
356357
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.food-and-drink";
357358
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
358359
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
359-
MARKETING_VERSION = 8.4.0;
360+
MARKETING_VERSION = 8.4.1;
360361
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
361362
PRODUCT_BUNDLE_IDENTIFIER = com.beanconqueror.app;
362363
PRODUCT_NAME = "$(TARGET_NAME)";
364+
PROVISIONING_PROFILE_SPECIFIER = "";
363365
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
364366
SWIFT_VERSION = 5.0;
365367
TARGETED_DEVICE_FAMILY = "1,2";
@@ -372,6 +374,7 @@
372374
buildSettings = {
373375
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
374376
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
377+
CODE_SIGN_IDENTITY = "Apple Development";
375378
CODE_SIGN_STYLE = Automatic;
376379
CURRENT_PROJECT_VERSION = 1;
377380
DEVELOPMENT_TEAM = W8B7XY7WGY;
@@ -380,9 +383,10 @@
380383
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.food-and-drink";
381384
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
382385
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
383-
MARKETING_VERSION = 8.4.0;
386+
MARKETING_VERSION = 8.4.1;
384387
PRODUCT_BUNDLE_IDENTIFIER = com.beanconqueror.app;
385388
PRODUCT_NAME = "$(TARGET_NAME)";
389+
PROVISIONING_PROFILE_SPECIFIER = "";
386390
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
387391
SWIFT_VERSION = 5.0;
388392
TARGETED_DEVICE_FAMILY = "1,2";

src/components/brews/brew-brewing-graph/brew-brewing-graph.component.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,19 @@ export class BrewBrewingGraphComponent implements OnInit {
26232623
_scaleChange.notMutatedWeight,
26242624
1,
26252625
);
2626+
2627+
if (this.baristamode && this.brewComponent.timer.getSeconds() <= 6) {
2628+
/**Maybe the barista put on a new cup, which means the weight was before -XXX grams, and it may jump to like 5 grams then
2629+
* this means we would regarding the rising factor never work correctly, so we ignore the first 6 seconds in barista mode and then we start**/
2630+
2631+
return {
2632+
actual: weight,
2633+
old: oldWeight,
2634+
smoothed: smoothedWeight,
2635+
oldSmoothed: oldSmoothedWeight,
2636+
notMutatedWeight: notMutatedWeight,
2637+
};
2638+
}
26262639
const isEspresso = _styleType === PREPARATION_STYLE_TYPE.ESPRESSO;
26272640
const scaleType = this.bleManager.getScale()?.getScaleType();
26282641
//Yeay yeay yeay, sometimes the lunar scale is reporting wrongly cause of closed api, therefore try to tackle this issues down with the lunar

0 commit comments

Comments
 (0)