Skip to content

Commit

Permalink
Merge pull request #84 from OneSignal/user-model/getTags
Browse files Browse the repository at this point in the history
[User Model] Add GetTags
  • Loading branch information
emawby authored Jan 5, 2024
2 parents de8eb8c + db58658 commit 47d3e07
Show file tree
Hide file tree
Showing 186 changed files with 3,734 additions and 656 deletions.
Binary file modified OneSignalSDK.DotNet.Android.Core.Binding/Jars/core-release.aar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions OneSignalSDK.DotNet.Android/AndroidUserManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void Initialize()
public void AddTags(IDictionary<string, string> tags) => OneSignalNative.User.AddTags(tags);
public void RemoveTag(string key) => OneSignalNative.User.RemoveTag(key);
public void RemoveTags(params string[] keys) => OneSignalNative.User.RemoveTags(keys);
public IDictionary<string, string> GetTags() => OneSignalNative.User.Tags;
}

public class AndroidPushSubscription : IPushSubscription
Expand Down
5 changes: 5 additions & 0 deletions OneSignalSDK.DotNet.Core/User/IUserManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ public interface IUserManager
/// </summary>
/// <param name="keys">The collection of keys, all of which will be removed from the current user.</param>
void RemoveTags(params string[] keys);

/// <summary>
/// Get the dictionary of data tags for the current user.
/// </summary>
IDictionary<string, string> GetTags();
}
}
6 changes: 6 additions & 0 deletions OneSignalSDK.DotNet.iOS.Binding/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ interface OSUser
[Export ("removeTags:")]
void RemoveTags(string[] tags);

// @required -(NSDictionary<NSString *,NSString *>)getTags;
//[Abstract]
[Export ("getTags")]
[return: NullAllowed]
NSDictionary<NSString, NSString> GetTags();

// @required -(void)addEmail:(NSString * _Nonnull)email;
//[Abstract]
[Export ("addEmail:")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>OneSignalCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>OneSignalCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// "*" in comment line ending comment means the string value has not been changed
// App

#define ONESIGNAL_VERSION @"050001"
#define ONESIGNAL_VERSION @"050005"

#define OSUD_APP_ID @"GT_APP_ID" // * OSUD_APP_ID
#define OSUD_REGISTERED_WITH_APPLE @"GT_REGISTERED_WITH_APPLE" // * OSUD_REGISTERED_WITH_APPLE
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</data>
<key>Headers/OneSignalCommonDefines.h</key>
<data>
tad+KeT+bga4RH8NIYBPtCfJCgg=
SG8j5q+Z6fExky4vxn4vwfT4D5Y=
</data>
<key>Headers/OneSignalConfigManager.h</key>
<data>
Expand Down Expand Up @@ -126,7 +126,7 @@
</data>
<key>Info.plist</key>
<data>
V8UeTZvBi+hwmpifOzEeQp3qBVU=
5j92A0qIhyoYwuBXYk8Ucin9gQc=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -265,7 +265,7 @@
<dict>
<key>hash2</key>
<data>
uKea+bE5o/QJ5H7bQVZBM4KaCo6vtSBj28a02B++tpY=
l1n/qWZvLmzj+PhG8acqf110T8rOeDJ+T+Ru+FKBR6g=
</data>
</dict>
<key>Headers/OneSignalConfigManager.h</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// "*" in comment line ending comment means the string value has not been changed
// App

#define ONESIGNAL_VERSION @"050001"
#define ONESIGNAL_VERSION @"050005"

#define OSUD_APP_ID @"GT_APP_ID" // * OSUD_APP_ID
#define OSUD_REGISTERED_WITH_APPLE @"GT_REGISTERED_WITH_APPLE" // * OSUD_REGISTERED_WITH_APPLE
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>22F82</string>
<string>23B81</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>Resources/Info.plist</key>
<data>
nWmlazzXzMNV2iuESh6kPWyaoJg=
BkFCch7mVZcdA2wPF5SEfMDbkGk=
</data>
</dict>
<key>files2</key>
Expand Down Expand Up @@ -141,7 +141,7 @@
<dict>
<key>hash2</key>
<data>
uKea+bE5o/QJ5H7bQVZBM4KaCo6vtSBj28a02B++tpY=
l1n/qWZvLmzj+PhG8acqf110T8rOeDJ+T+Ru+FKBR6g=
</data>
</dict>
<key>Headers/OneSignalConfigManager.h</key>
Expand Down Expand Up @@ -232,7 +232,7 @@
<dict>
<key>hash2</key>
<data>
RZRQ2O+hu/Hf7EgiEaTA+P1JA82grTXH9ZuI5CxWvJU=
y3RYB55M2LKU2SSaZZhXP4YEAPY7E5CyiXSxIL4mUnY=
</data>
</dict>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// "*" in comment line ending comment means the string value has not been changed
// App

#define ONESIGNAL_VERSION @"050001"
#define ONESIGNAL_VERSION @"050005"

#define OSUD_APP_ID @"GT_APP_ID" // * OSUD_APP_ID
#define OSUD_REGISTERED_WITH_APPLE @"GT_REGISTERED_WITH_APPLE" // * OSUD_REGISTERED_WITH_APPLE
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</data>
<key>Headers/OneSignalCommonDefines.h</key>
<data>
tad+KeT+bga4RH8NIYBPtCfJCgg=
SG8j5q+Z6fExky4vxn4vwfT4D5Y=
</data>
<key>Headers/OneSignalConfigManager.h</key>
<data>
Expand Down Expand Up @@ -126,7 +126,7 @@
</data>
<key>Info.plist</key>
<data>
9pJRj3QH+B19u9B6F3skt/NDrdg=
XkPUJ3HXHTzA0ASZY88QKf6lcPA=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -265,7 +265,7 @@
<dict>
<key>hash2</key>
<data>
uKea+bE5o/QJ5H7bQVZBM4KaCo6vtSBj28a02B++tpY=
l1n/qWZvLmzj+PhG8acqf110T8rOeDJ+T+Ru+FKBR6g=
</data>
</dict>
<key>Headers/OneSignalConfigManager.h</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>OneSignalExtension.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -17,34 +17,34 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>OneSignalExtension.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>OneSignalExtension.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@
</data>
<key>Info.plist</key>
<data>
p7Y7XDq7Nj+qnaY5sKooDWJVOX4=
7HlcW6AuOT07ua/ecfcRV+CNRLU=
</data>
<key>Modules/module.modulemap</key>
<data>
MniqwSJOOQq7kIj/mIrXwnwSVlU=
</data>
<key>PrivacyInfo.xcprivacy</key>
<data>
z0nfsDi7mdXLVAhLoBccLVx0TaQ=
</data>
</dict>
<key>files2</key>
<dict>
Expand Down Expand Up @@ -77,6 +81,13 @@
tDPf+7yPnc5GbW/ygIzPKJ0ZkgW0SgdPvoOOrivzzvw=
</data>
</dict>
<key>PrivacyInfo.xcprivacy</key>
<dict>
<key>hash2</key>
<data>
MxaDwVmcnkDSqiLbNG4U0OYlc6UDhnUXTO0K0aB8V+s=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>22F82</string>
<string>23B81</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
<dict>
<key>Resources/Info.plist</key>
<data>
/HgvEv1joE5tKYGLi5d+HuzmB8U=
c3NoFIMzPrAc1McpZ7Ds0XUzsmo=
</data>
<key>Resources/PrivacyInfo.xcprivacy</key>
<data>
z0nfsDi7mdXLVAhLoBccLVx0TaQ=
</data>
</dict>
<key>files2</key>
Expand Down Expand Up @@ -57,7 +61,14 @@
<dict>
<key>hash2</key>
<data>
9bLB52LyHWjaDZcjsf9ZzheFru2qTBkCT7AmH7f2e4A=
srsqXs0TFQsZZL1e14Fka+RNWv/2zjYgHg5wl/8rhfM=
</data>
</dict>
<key>Resources/PrivacyInfo.xcprivacy</key>
<dict>
<key>hash2</key>
<data>
MxaDwVmcnkDSqiLbNG4U0OYlc6UDhnUXTO0K0aB8V+s=
</data>
</dict>
</dict>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 47d3e07

Please sign in to comment.