Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ios/Classes/FlutterTalsecConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ struct FlutterTalsecConfig : Decodable {
let watcherMail: String
let iosConfig: IOSConfig
let isProd: Bool
let killOnBypass: Bool

func toNativeConfig() -> TalsecConfig {
return TalsecConfig(appBundleIds: iosConfig.bundleIds, appTeamId: iosConfig.teamId, watcherMailAddress: watcherMail, isProd: isProd)
return TalsecConfig(appBundleIds: iosConfig.bundleIds, appTeamId: iosConfig.teamId, watcherMailAddress: watcherMail, isProd: isProd, killOnBypass: killOnBypass)
}
}

Expand Down
2 changes: 2 additions & 0 deletions lib/src/models/talsec_config.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions test/src/utils/config_verifier_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void main() {
test('Should encode TalsecConfig to String', () {
// Arrange
const expectedString =
'{"androidConfig":{"packageName":"com.aheaditec.freeraspExample","signingCertHashes":["AKoRuyLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0="],"supportedStores":["com.sec.android.app.samsungapps"]},"iosConfig":{"bundleIds":["com.aheaditec.freeraspExample"],"teamId":"M8AK35..."},"watcherMail":"[email protected]","isProd":false}';
'{"androidConfig":{"packageName":"com.aheaditec.freeraspExample","signingCertHashes":["AKoRuyLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0="],"supportedStores":["com.sec.android.app.samsungapps"]},"iosConfig":{"bundleIds":["com.aheaditec.freeraspExample"],"teamId":"M8AK35..."},"watcherMail":"[email protected]","isProd":false,"killOnBypass":true}';
final config = TalsecConfig(
androidConfig: AndroidConfig(
packageName: 'com.aheaditec.freeraspExample',
Expand All @@ -89,6 +89,7 @@ void main() {
),
watcherMail: '[email protected]',
isProd: false,
killOnBypass: true,
);

// Act & Assert
Expand All @@ -112,10 +113,11 @@ void main() {
),
watcherMail: '[email protected]',
isProd: false,
killOnBypass: true,
);

const config =
'{"androidConfig":{"packageName":"com.aheaditec.freeraspExample","signingCertHashes":["AKoRuyLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0="],"supportedStores":["com.sec.android.app.samsungapps"]},"iosConfig":{"bundleIds":["com.aheaditec.freeraspExample"],"teamId":"M8AK35..."},"watcherMail":"[email protected]","isProd":false}';
'{"androidConfig":{"packageName":"com.aheaditec.freeraspExample","signingCertHashes":["AKoRuyLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0="],"supportedStores":["com.sec.android.app.samsungapps"]},"iosConfig":{"bundleIds":["com.aheaditec.freeraspExample"],"teamId":"M8AK35..."},"watcherMail":"[email protected]","isProd":false,"killOnBypass":true}';

// Act
final actualConfig =
Expand Down