-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32fd5b5
commit 15c0e29
Showing
13 changed files
with
321 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<resources> | ||
<string name="app_name">Fingerprint</string> | ||
<string name="title_activity_kimera">Fingerprint</string> | ||
|
||
<string name="cancel">Cancel</string> | ||
<string name="use_password">Use password</string> | ||
<string name="ok">OK</string> | ||
<string name="password_description">Enter your password to continue</string> | ||
<string name="new_fingerprint_enrolled_description">A new fingerprint was added to this device, so your password is required.</string> | ||
|
||
<string name="use_fingerprint_in_future">Use fingerprint in the future</string> | ||
<string name="use_fingerprint_to_authenticate_key" >use_fingerprint_to_authenticate_key</string> | ||
<!--<string name="fingerprint_description">Confirm fingerprint 2 continue</string>--> | ||
<string name="fingerprint_hint">Touch da sensor</string> | ||
|
||
<!-- Error messages --> | ||
<string name="fingerprint_auth_not_available_msg"><![CDATA[\"Secure lock screen hasn\'t set up.\\n\" + \"Go to \'Settings -> Security -> Fingerprint\' to set up a fingerprint\"]]></string> | ||
<string name="fingerprint_auth_not_enrolled_msg">Go to \'Settings -> Security -> Fingerprint\' and register at least one fingerprint</string> | ||
<string name="fingerprint_not_initialised_error_msg">Fingerprint not initialised</string> | ||
<string name="fingerprint_not_available_error_msg">Fingerprint not available</string> | ||
<string name="fingerprint_not_recognized_error_msg">Fingerprint not recognized</string> | ||
<string name="warning_password_empty">Password can\'t be empty</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { setActivityCallbacks, AndroidActivityCallbacks } from "tns-core-modules/ui/frame"; | ||
|
||
@JavaProxy("org.nativescript.fingerprintplugin.AppCompatActivity") | ||
class Activity extends android.support.v7.app.AppCompatActivity { | ||
private _callbacks: AndroidActivityCallbacks; | ||
|
||
protected onCreate(savedInstanceState: android.os.Bundle): void { | ||
if (!this._callbacks) { | ||
setActivityCallbacks(this); | ||
} | ||
|
||
this._callbacks.onCreate(this, savedInstanceState, super.onCreate); | ||
} | ||
|
||
protected onSaveInstanceState(outState: android.os.Bundle): void { | ||
this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState); | ||
} | ||
|
||
protected onStart(): void { | ||
this._callbacks.onStart(this, super.onStart); | ||
} | ||
|
||
protected onStop(): void { | ||
this._callbacks.onStop(this, super.onStop); | ||
} | ||
|
||
protected onDestroy(): void { | ||
this._callbacks.onDestroy(this, super.onDestroy); | ||
} | ||
|
||
public onBackPressed(): void { | ||
this._callbacks.onBackPressed(this, super.onBackPressed); | ||
} | ||
|
||
public onRequestPermissionsResult(requestCode: number, permissions: Array<String>, grantResults: Array<number>): void { | ||
this._callbacks.onRequestPermissionsResult(this, requestCode, permissions, grantResults, undefined); | ||
} | ||
|
||
protected onActivityResult(requestCode: number, resultCode: number, data: android.content.Intent): void { | ||
this._callbacks.onActivityResult(this, requestCode, resultCode, data, super.onActivityResult); | ||
} | ||
} |
Oops, something went wrong.