Skip to content

Commit

Permalink
missing mac/ios native project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobaoapae committed Nov 12, 2024
1 parent 7f18ce2 commit b7badc1
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.swc
/aneBuild/**/*.swc
/aneBuild/**/*.aar
/aneBuild/**/*.swf
/aneBuild/**/*.swf
/AppleNative/AneAwesomeUtils/DerivedData/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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/>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataCustomLocation</key>
<string>DerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>WorkspaceRelativePath</string>
<key>ShowSharedSchemesAutomaticallyEnabled</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1610"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "57B755732CD02AFF0000FE66"
BuildableName = "libAneAwesomeUtils-IOS.a"
BlueprintName = "AneAwesomeUtils-IOS"
ReferencedContainer = "container:AneAwesomeUtils.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "57B755732CD02AFF0000FE66"
BuildableName = "libAneAwesomeUtils-IOS.a"
BlueprintName = "AneAwesomeUtils-IOS"
ReferencedContainer = "container:AneAwesomeUtils.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
22 changes: 22 additions & 0 deletions AppleNative/AneAwesomeUtils/AneAwesomeUtils/DeviceUtils.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// DeviceUtils.m
// AneAwesomeUtils-IOS
//
// Created by João Vitor Borges on 03/11/24.
//

#import <Foundation/Foundation.h>
#include "DeviceUtils.h"
#include <TargetConditionals.h> // Ensure TARGET_OS_IOS is defined
#if TARGET_OS_IOS
#import <UIKit/UIKit.h>
#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
}

0 comments on commit b7badc1

Please sign in to comment.