Skip to content

Commit

Permalink
Support of ObjC interface
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Nov 29, 2024
1 parent f0a1a37 commit bc2b1d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions LineSDK/LineSDKObjC/Login/LineSDKLoginManagerParameters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public class LineSDKLoginManagerParameters: NSObject {
get { return _value.IDTokenNonce }
set { _value.IDTokenNonce = newValue }
}

public var initialAMRDisplay: String? {
get { return _value.initialAMRDisplay }
set { _value.initialAMRDisplay = newValue }
}
}

@objcMembers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ - (void)testLoginManagerParametersInterface {
param.preferredWebPageLanguage = @"ja";
param.IDTokenNonce = @"test";
param.promptBotID = @"@abc123";

param.initialAMRDisplay = @"lineqr";

XCTAssertTrue([param onlyWebLogin]);
XCTAssertTrue([[param.botPromptStyle rawValue] isEqualToString: @"normal"]);
XCTAssertTrue([param.preferredWebPageLanguage isEqualToString: @"ja"]);
XCTAssertTrue([param.IDTokenNonce isEqualToString: @"test"]);
XCTAssertTrue([param.initialAMRDisplay isEqualToString:@"lineqr"]);
}

- (void)testLoginResultInterface {
Expand Down

0 comments on commit bc2b1d8

Please sign in to comment.