-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bumped iOS and have first API working * Have first API working for Android * Now working with new APIs on both platforms * Fixed extraneous comma * Bumped version and added release notes * Package lock
- Loading branch information
Showing
21 changed files
with
187 additions
and
69 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,17 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
module.exports = function (context) { | ||
const platformRoot = path.join(context.opts.projectRoot, 'platforms/ios'); | ||
const projectPbxproj = path.join(platformRoot, 'CordovaLib', 'CordovaLib.xcodeproj', 'project.pbxproj'); | ||
|
||
if (fs.existsSync(projectPbxproj)) { | ||
let contents = fs.readFileSync(projectPbxproj, 'utf8'); | ||
|
||
// Update deployment target | ||
contents = contents.replace(/IPHONEOS_DEPLOYMENT_TARGET = 11\.0;/g, 'IPHONEOS_DEPLOYMENT_TARGET = 15.0;'); | ||
|
||
fs.writeFileSync(projectPbxproj, contents, 'utf8'); | ||
console.log('Updated CordovaLib deployment target to iOS 15.0'); | ||
} | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
package io.intercom.android.sdk; | ||
|
||
public class RegistrationModel { | ||
private String email; | ||
private String userId; | ||
|
||
public RegistrationModel( | ||
String email, | ||
String userId | ||
) { | ||
this.email = email; | ||
this.userId = userId; | ||
} | ||
} |
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
19 changes: 0 additions & 19 deletions
19
intercom-plugin/src/ios/ICMHelpCenterSection+DictionaryConversion.h
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
intercom-plugin/src/ios/ICMHelpCenterSection+DictionaryConversion.m
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
intercom-plugin/src/ios/ICMUserAttributes+DictionaryConversion.h
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,19 @@ | ||
// | ||
// ICMUserAttributes+DictionaryConversion.h | ||
// Sample | ||
// | ||
// Created by Matthew Pierce on 11/12/2024. | ||
// Copyright © 2024 Intercom. All rights reserved. | ||
// | ||
|
||
#import "Intercom/Intercom.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ICMUserAttributes (DictionaryConversion) | ||
|
||
- (NSDictionary *)toDictionary; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
24 changes: 24 additions & 0 deletions
24
intercom-plugin/src/ios/ICMUserAttributes+DictionaryConversion.m
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,24 @@ | ||
// | ||
// ICMUserAttributes+DictionaryConversion.h | ||
// Sample | ||
// | ||
// Created by Matthew Pierce on 11/12/2024. | ||
// Copyright © 2024 Intercom. All rights reserved. | ||
// | ||
|
||
#import "ICMUserAttributes+DictionaryConversion.h" | ||
|
||
@implementation ICMUserAttributes (DictionaryConversion) | ||
|
||
- (NSDictionary *)toDictionary { | ||
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; | ||
if (self.email) { | ||
dictionary[@"email"] = self.email; | ||
} | ||
if (self.userId) { | ||
dictionary[@"userId"] = self.userId; | ||
} | ||
return [dictionary copy]; | ||
} | ||
|
||
@end |
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
Oops, something went wrong.