Skip to content

Commit 6c50c50

Browse files
authored
Merge pull request #134 from FleksySDK/133
Update example CustomizationBundleConfiguration
2 parents 99710bf + 2684b4f commit 6c50c50

File tree

3 files changed

+4
-35
lines changed

3 files changed

+4
-35
lines changed

Examples/CustomAction/iOS/KeyboardCustomAction/keyboard/KeyboardViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ class KeyboardViewController: FKKeyboardViewController {
3333
//
3434
// Add Custom Action button with an AspectFill example image and a simple print action
3535
//
36-
let actionButton = CustomLayoutConfiguration.Button(label: "custom-action",
36+
let actionButton = CustomizationBundleConfiguration.Button(label: "custom-action",
3737
image: UIImage(named: "IconOrange"),
3838
contentMode: .scaleAspectFill,
3939
action: { _ in
4040
// Do something for "custom-action" pressed
4141
print("> Pressed custom-action")
4242
})
43-
let customActionConfig = CustomLayoutConfiguration(bundleFileName: "custom-action", buttons: [actionButton])
43+
let customActionConfig = CustomizationBundleConfiguration(bundleFileName: "custom-action", buttons: [actionButton])
4444

4545

4646
//
4747
// Create the configuration for the keyboard
4848
//
49-
return KeyboardConfiguration(customLayout: customActionConfig,
49+
return KeyboardConfiguration(customizationBundle: customActionConfig,
5050
license: licenseConfig)
5151
}
5252

Integration/Keyboard-iOS/FleksyKeyboardSDKApp/FleksyKeyboardSDKApp.xcodeproj/project.pbxproj

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
7534057C29C4817800273484 /* FleksyApps in Frameworks */ = {isa = PBXBuildFile; productRef = 7534057B29C4817800273484 /* FleksyApps */; };
11-
7534057E29C4817C00273484 /* FleksyApps in Frameworks */ = {isa = PBXBuildFile; productRef = 7534057D29C4817C00273484 /* FleksyApps */; };
1210
753CA890296D751C00E05B42 /* InAppKeyboardTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 753CA88F296D751C00E05B42 /* InAppKeyboardTextField.swift */; };
1311
753CA891296D755500E05B42 /* KeyboardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7540091C29530F3E0022B197 /* KeyboardViewController.swift */; };
1412
7540090329530F120022B197 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7540090229530F120022B197 /* AppDelegate.swift */; };
@@ -96,7 +94,6 @@
9694
isa = PBXFrameworksBuildPhase;
9795
buildActionMask = 2147483647;
9896
files = (
99-
7534057C29C4817800273484 /* FleksyApps in Frameworks */,
10097
75F25B5D299FB30C00D884AB /* FleksySDK in Frameworks */,
10198
);
10299
runOnlyForDeploymentPostprocessing = 0;
@@ -105,7 +102,6 @@
105102
isa = PBXFrameworksBuildPhase;
106103
buildActionMask = 2147483647;
107104
files = (
108-
7534057E29C4817C00273484 /* FleksyApps in Frameworks */,
109105
75F25B5F299FB33E00D884AB /* FleksySDK in Frameworks */,
110106
);
111107
runOnlyForDeploymentPostprocessing = 0;
@@ -254,7 +250,6 @@
254250
name = FleksyKeyboardSDKApp;
255251
packageProductDependencies = (
256252
75F25B5C299FB30C00D884AB /* FleksySDK */,
257-
7534057B29C4817800273484 /* FleksyApps */,
258253
);
259254
productName = TestSDKIntegration;
260255
productReference = 754008FF29530F120022B197 /* FleksyKeyboardSDKApp.app */;
@@ -275,7 +270,6 @@
275270
name = keyboard;
276271
packageProductDependencies = (
277272
75F25B5E299FB33E00D884AB /* FleksySDK */,
278-
7534057D29C4817C00273484 /* FleksyApps */,
279273
);
280274
productName = keyboard;
281275
productReference = 7540091A29530F3E0022B197 /* keyboard.appex */;
@@ -311,7 +305,6 @@
311305
mainGroup = 754008F629530F120022B197;
312306
packageReferences = (
313307
75F25B5B299FB30C00D884AB /* XCRemoteSwiftPackageReference "FleksySDK-iOS" */,
314-
7534057A29C45B5B00273484 /* XCRemoteSwiftPackageReference "fleksyapps-iOS" */,
315308
);
316309
productRefGroup = 7540090029530F120022B197 /* Products */;
317310
projectDirPath = "";
@@ -659,14 +652,6 @@
659652
/* End XCConfigurationList section */
660653

661654
/* Begin XCRemoteSwiftPackageReference section */
662-
7534057A29C45B5B00273484 /* XCRemoteSwiftPackageReference "fleksyapps-iOS" */ = {
663-
isa = XCRemoteSwiftPackageReference;
664-
repositoryURL = "https://github.com/FleksySDK/fleksyapps-iOS";
665-
requirement = {
666-
kind = upToNextMajorVersion;
667-
minimumVersion = 1.0.1;
668-
};
669-
};
670655
75F25B5B299FB30C00D884AB /* XCRemoteSwiftPackageReference "FleksySDK-iOS" */ = {
671656
isa = XCRemoteSwiftPackageReference;
672657
repositoryURL = "https://github.com/FleksySDK/FleksySDK-iOS";
@@ -678,16 +663,6 @@
678663
/* End XCRemoteSwiftPackageReference section */
679664

680665
/* Begin XCSwiftPackageProductDependency section */
681-
7534057B29C4817800273484 /* FleksyApps */ = {
682-
isa = XCSwiftPackageProductDependency;
683-
package = 7534057A29C45B5B00273484 /* XCRemoteSwiftPackageReference "fleksyapps-iOS" */;
684-
productName = FleksyApps;
685-
};
686-
7534057D29C4817C00273484 /* FleksyApps */ = {
687-
isa = XCSwiftPackageProductDependency;
688-
package = 7534057A29C45B5B00273484 /* XCRemoteSwiftPackageReference "fleksyapps-iOS" */;
689-
productName = FleksyApps;
690-
};
691666
75F25B5C299FB30C00D884AB /* FleksySDK */ = {
692667
isa = XCSwiftPackageProductDependency;
693668
package = 75F25B5B299FB30C00D884AB /* XCRemoteSwiftPackageReference "FleksySDK-iOS" */;

Integration/Keyboard-iOS/FleksyKeyboardSDKApp/keyboard/KeyboardViewController.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
import UIKit
1010
import FleksyKeyboardSDK
11-
import GiphyApp
12-
import Combine
1311

1412
// MARK: - KeyboardViewController
1513

@@ -29,13 +27,9 @@ class KeyboardViewController: FKKeyboardViewController {
2927

3028
let licenseConfig = LicenseConfiguration(licenseKey: "your-license-key", licenseSecret: "your-license-secret")
3129

32-
let appsConfig = AppsConfiguration(keyboardApps: [GiphyApp(apiKey: "your-Giphy-api-key")],
33-
showAppsInCarousel: true)
34-
3530
//
3631
// Create the configuration for the keyboard
3732
//
38-
return KeyboardConfiguration(apps: appsConfig,
39-
license: licenseConfig)
33+
return KeyboardConfiguration(license: licenseConfig)
4034
}
4135
}

0 commit comments

Comments
 (0)