From b7badc186fe21994c314f52df7610cea7b29cb89 Mon Sep 17 00:00:00 2001 From: bobaoapae Date: Tue, 12 Nov 2024 00:30:22 -0300 Subject: [PATCH] missing mac/ios native project files. --- .gitignore | 3 +- .../xcshareddata/WorkspaceSettings.xcsettings | 5 ++ .../WorkspaceSettings.xcsettings | 16 +++++ .../xcschemes/AneAwesomeUtils-IOS.xcscheme | 67 +++++++++++++++++++ .../AneAwesomeUtils/DeviceUtils.m | 22 ++++++ 5 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcuserdata/joaovitorborges.xcuserdatad/WorkspaceSettings.xcsettings create mode 100644 AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/xcshareddata/xcschemes/AneAwesomeUtils-IOS.xcscheme create mode 100644 AppleNative/AneAwesomeUtils/AneAwesomeUtils/DeviceUtils.m diff --git a/.gitignore b/.gitignore index 91b4f80..dacdd18 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.swc /aneBuild/**/*.swc /aneBuild/**/*.aar -/aneBuild/**/*.swf \ No newline at end of file +/aneBuild/**/*.swf +/AppleNative/AneAwesomeUtils/DerivedData/* \ No newline at end of file diff --git a/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..0c67376 --- /dev/null +++ b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,5 @@ + + + + + diff --git a/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcuserdata/joaovitorborges.xcuserdatad/WorkspaceSettings.xcsettings b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcuserdata/joaovitorborges.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..b4f210d --- /dev/null +++ b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/project.xcworkspace/xcuserdata/joaovitorborges.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,16 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataCustomLocation + DerivedData + DerivedDataLocationStyle + WorkspaceRelativePath + ShowSharedSchemesAutomaticallyEnabled + + + diff --git a/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/xcshareddata/xcschemes/AneAwesomeUtils-IOS.xcscheme b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/xcshareddata/xcschemes/AneAwesomeUtils-IOS.xcscheme new file mode 100644 index 0000000..7b76f67 --- /dev/null +++ b/AppleNative/AneAwesomeUtils/AneAwesomeUtils.xcodeproj/xcshareddata/xcschemes/AneAwesomeUtils-IOS.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AppleNative/AneAwesomeUtils/AneAwesomeUtils/DeviceUtils.m b/AppleNative/AneAwesomeUtils/AneAwesomeUtils/DeviceUtils.m new file mode 100644 index 0000000..38ea164 --- /dev/null +++ b/AppleNative/AneAwesomeUtils/AneAwesomeUtils/DeviceUtils.m @@ -0,0 +1,22 @@ +// +// DeviceUtils.m +// AneAwesomeUtils-IOS +// +// Created by João Vitor Borges on 03/11/24. +// + +#import +#include "DeviceUtils.h" +#include // Ensure TARGET_OS_IOS is defined +#if TARGET_OS_IOS +#import +#endif + +char* getDeviceUniqueId(void) { +#if TARGET_OS_IOS + NSString *uuidString = [[UIDevice currentDevice] identifierForVendor].UUIDString; + return strdup([uuidString UTF8String]); // Copy string to ensure stability +#else + return NULL; +#endif +}