File tree Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module.exports = {
2222 $0 : 'jest' ,
2323 config : 'e2e/jest.e2e.config.js' ,
2424 } ,
25- detached : true ,
25+ detached : process . env . CI ? true : false ,
2626 jest : {
2727 setupTimeout : 220000 ,
2828 teardownTimeout : 60000 , // Increase teardown timeout from default 30s to 60s
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ android {
187187 applicationId " io.metamask"
188188 minSdkVersion rootProject. ext. minSdkVersion
189189 targetSdkVersion rootProject. ext. targetSdkVersion
190- versionName " 7.59 .0"
190+ versionName " 7.60 .0"
191191 versionCode 2818
192192 testBuildType System . getProperty(' testBuildType' , ' debug' )
193193 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { MetricsEventBuilder } from '../Analytics/MetricsEventBuilder';
3636import { Json } from '@metamask/utils' ;
3737import { SchedulableBackgroundEvent } from '@metamask/snaps-controllers' ;
3838import { endTrace , trace } from '../../util/trace' ;
39+ import { AppState } from 'react-native' ;
3940
4041export function getSnapIdFromRequest (
4142 request : Record < string , unknown > ,
@@ -190,7 +191,9 @@ const snapMethodMiddlewareBuilder = (
190191 engineContext . ApprovalController . addAndShowApprovalRequest . bind (
191192 engineContext . ApprovalController ,
192193 ) ,
193- getIsActive : ( ) => true , // For now we consider the app to be always active.
194+ getIsActive : ( ) =>
195+ AppState . currentState === 'active' &&
196+ engineContext . KeyringController . isUnlocked ( ) ,
194197 getIsLocked : ( ) => ! engineContext . KeyringController . isUnlocked ( ) ,
195198 getEntropySources : ( ) => {
196199 const state = controllerMessenger . call ( 'KeyringController:getState' ) ;
Original file line number Diff line number Diff line change @@ -3574,13 +3574,13 @@ app:
35743574 PROJECT_LOCATION_IOS : ios
35753575 - opts :
35763576 is_expand : false
3577- VERSION_NAME : 7.59 .0
3577+ VERSION_NAME : 7.60 .0
35783578 - opts :
35793579 is_expand : false
35803580 VERSION_NUMBER : 2818
35813581 - opts :
35823582 is_expand : false
3583- FLASK_VERSION_NAME : 7.59 .0
3583+ FLASK_VERSION_NAME : 7.60 .0
35843584 - opts :
35853585 is_expand : false
35863586 FLASK_VERSION_NUMBER : 2818
Original file line number Diff line number Diff line change 13111311 "${inherited}",
13121312 );
13131313 LLVM_LTO = YES;
1314- MARKETING_VERSION = 7.59 .0;
1314+ MARKETING_VERSION = 7.60 .0;
13151315 ONLY_ACTIVE_ARCH = YES;
13161316 OTHER_CFLAGS = "$(inherited)";
13171317 OTHER_LDFLAGS = (
13771377 "${inherited}",
13781378 );
13791379 LLVM_LTO = YES;
1380- MARKETING_VERSION = 7.59 .0;
1380+ MARKETING_VERSION = 7.60 .0;
13811381 ONLY_ACTIVE_ARCH = NO;
13821382 OTHER_CFLAGS = "$(inherited)";
13831383 OTHER_LDFLAGS = (
14461446 "\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
14471447 );
14481448 LLVM_LTO = YES;
1449- MARKETING_VERSION = 7.59 .0;
1449+ MARKETING_VERSION = 7.60 .0;
14501450 ONLY_ACTIVE_ARCH = YES;
14511451 OTHER_CFLAGS = "$(inherited)";
14521452 OTHER_LDFLAGS = (
15101510 "\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
15111511 );
15121512 LLVM_LTO = YES;
1513- MARKETING_VERSION = 7.59 .0;
1513+ MARKETING_VERSION = 7.60 .0;
15141514 ONLY_ACTIVE_ARCH = NO;
15151515 OTHER_CFLAGS = "$(inherited)";
15161516 OTHER_LDFLAGS = (
16761676 "\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
16771677 );
16781678 LLVM_LTO = YES;
1679- MARKETING_VERSION = 7.59 .0;
1679+ MARKETING_VERSION = 7.60 .0;
16801680 ONLY_ACTIVE_ARCH = YES;
16811681 OTHER_CFLAGS = (
16821682 "$(inherited)",
17431743 "\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
17441744 );
17451745 LLVM_LTO = YES;
1746- MARKETING_VERSION = 7.59 .0;
1746+ MARKETING_VERSION = 7.60 .0;
17471747 ONLY_ACTIVE_ARCH = NO;
17481748 OTHER_CFLAGS = (
17491749 "$(inherited)",
You can’t perform that action at this time.
0 commit comments