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 +}