File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
src/main/java/com/stumbleapp/utils Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ android {
1616 defaultConfig {
1717 minSdkVersion safeExtGet(' minSdkVersion' , 16 )
1818 targetSdkVersion safeExtGet(' targetSdkVersion' , 28 )
19- versionCode 6
20- versionName " 0.1.5 "
19+ versionCode 7
20+ versionName " 0.1.6 "
2121 }
2222}
2323
Original file line number Diff line number Diff line change 1111import android .annotation .TargetApi ;
1212import android .annotation .SuppressLint ;
1313import android .app .Activity ;
14+ import android .app .KeyguardManager ;
1415import android .os .Build ;
1516
1617import android .os .PowerManager ;
@@ -194,6 +195,10 @@ public void acquireScreenLock() {
194195 try {
195196 activity .setTurnScreenOn ( true );
196197 activity .setShowWhenLocked ( true );
198+
199+ ReactApplicationContext reactContext = getReactApplicationContext ();
200+ KeyguardManager keyguardManager = (KeyguardManager ) reactContext .getSystemService ( Context .KEYGUARD_SERVICE );
201+ keyguardManager .requestDismissKeyguard ( activity , null );
197202 } catch ( NoSuchMethodError e ) {
198203 e .printStackTrace ();
199204 }
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-app-utils" ,
3- "version" : " 0.1.5 " ,
3+ "version" : " 0.1.6 " ,
44 "description" : " A simple React-Native utils library with useful functions." ,
55 "nativePackage" : true ,
66 "main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments