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
[line 79: try {] | |
[line 80: MessageDigest instance = | |
MessageDigest.getInstance("MD5");] | |
[line 81: instance.update(str.getBytes());] |
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
There is 'rawQuery()' found in file 'com/freshchat/consumer/sdk/c/c.java': | |
[line 218: if (k.a(list)) {] | |
[line 219: cursor = cs().rawQuery(" SELECT DISTINCT | |
channels.* FROM channels, (SELECT * FROM tags WHERE " + j.a(k.b(list), | |
Tag.TaggedType.CHANNEL) + ") AS matching_tags WHERE ( matching_tags.tagged_id | |
= _id) AND hidden= 0 ORDER BY position", (String[]) list.toArray(new | |
String[0]));] | |
[line 220: } else {] |
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
name: Publish new version | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
build_project: | |
runs-on: macos-latest | |
env: | |
GITHUB_USER: ${{ secrets.GITHUB_USER }} |
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
name: Validate PR | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
build_project: | |
if: startsWith(github.head_ref, 'renovate') | |
runs-on: macos-latest | |
steps: |
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
actual fun getNonEncryptedSettings(context: AppContext?): Settings = | |
NSUserDefaultsSettings(NSUserDefaults.standardUserDefaults) | |
@OptIn(ExperimentalSettingsImplementation::class) | |
actual fun getEncryptedSettings(context: AppContext?): Settings = | |
MigrationSettings( | |
listOf("key1", "key2"), | |
getNonEncryptedSettings(context), | |
KeychainSettings("${NSBundle.mainBundle.bundleIdentifier}.AUTH") | |
) |
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
actual fun getNonEncryptedSettings(context: AppContext?): Settings = SharedPreferencesSettings( | |
PreferenceManager.getDefaultSharedPreferences(context) | |
) | |
actual fun getEncryptedSettings(context: AppContext?): Settings { | |
requireNotNull(context) | |
val masterKey = MasterKey.Builder(context) | |
.setKeyScheme(KeyScheme.AES256_GCM) | |
.build() |
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
@OptIn(ExperimentalSettingsImplementation::class) | |
actual fun getEncryptedSettings(context: AppContext?): Settings = | |
KeychainSettings("${NSBundle.mainBundle.bundleIdentifier}.AUTH") |
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
@OptIn(ExperimentalSettingsImplementation::class) | |
actual fun getSettings(context: AppContext?): Settings = | |
MigrationSettings(KeychainSettings("${NSBundle.mainBundle.bundleIdentifier}")) |
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
actual fun getSettings(context: AppContext?): Settings { | |
requireNotNull(context) | |
val masterKey = MasterKey.Builder(context) | |
.setKeyScheme(KeyScheme.AES256_GCM) | |
.build() | |
val encryptedPreferences = EncryptedSharedPreferences.create( | |
context, | |
context.packageName + "_encrypted_preferences", |
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
actual fun getSettings(context: AppContext?): Settings = | |
NSUserDefaultsSettings(NSUserDefaults.standardUserDefaults) |
NewerOlder