-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OGGraph.descriptionFormat API (#69)
* Add OGGraph.descriptionFormat API * Fix Linux build issue
- Loading branch information
Showing
15 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...eGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Headers/AGGraphDescription.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,24 @@ | ||
// | ||
// AGGraphDescription.h | ||
// | ||
// | ||
// Created by Kyle on 2024/1/21. | ||
// | ||
|
||
#ifndef AGGraphDescription_h | ||
#define AGGraphDescription_h | ||
|
||
#include "AGBase.h" | ||
|
||
AG_ASSUME_NONNULL_BEGIN | ||
|
||
#if AG_OBJC_FOUNDATION | ||
AG_EXTERN_C_BEGIN | ||
AG_EXPORT | ||
CFStringRef AGDescriptionFormat AG_SWIFT_NAME(AGGraphRef.descriptionFormat); | ||
AG_EXTERN_C_END | ||
#endif | ||
|
||
AG_ASSUME_NONNULL_END | ||
|
||
#endif /* AGGraphDescription_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
24 changes: 24 additions & 0 deletions
24
...ramework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Headers/AGGraphDescription.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,24 @@ | ||
// | ||
// AGGraphDescription.h | ||
// | ||
// | ||
// Created by Kyle on 2024/1/21. | ||
// | ||
|
||
#ifndef AGGraphDescription_h | ||
#define AGGraphDescription_h | ||
|
||
#include "AGBase.h" | ||
|
||
AG_ASSUME_NONNULL_BEGIN | ||
|
||
#if AG_OBJC_FOUNDATION | ||
AG_EXTERN_C_BEGIN | ||
AG_EXPORT | ||
CFStringRef AGDescriptionFormat AG_SWIFT_NAME(AGGraphRef.descriptionFormat); | ||
AG_EXTERN_C_END | ||
#endif | ||
|
||
AG_ASSUME_NONNULL_END | ||
|
||
#endif /* AGGraphDescription_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
24 changes: 24 additions & 0 deletions
24
...framework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Headers/AGGraphDescription.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,24 @@ | ||
// | ||
// AGGraphDescription.h | ||
// | ||
// | ||
// Created by Kyle on 2024/1/21. | ||
// | ||
|
||
#ifndef AGGraphDescription_h | ||
#define AGGraphDescription_h | ||
|
||
#include "AGBase.h" | ||
|
||
AG_ASSUME_NONNULL_BEGIN | ||
|
||
#if AG_OBJC_FOUNDATION | ||
AG_EXTERN_C_BEGIN | ||
AG_EXPORT | ||
CFStringRef AGDescriptionFormat AG_SWIFT_NAME(AGGraphRef.descriptionFormat); | ||
AG_EXTERN_C_END | ||
#endif | ||
|
||
AG_ASSUME_NONNULL_END | ||
|
||
#endif /* AGGraphDescription_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
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 @@ | ||
// | ||
// AGGraphDescription.h | ||
// | ||
// | ||
// Created by Kyle on 2024/1/21. | ||
// | ||
|
||
#ifndef AGGraphDescription_h | ||
#define AGGraphDescription_h | ||
|
||
#include "AGBase.h" | ||
|
||
AG_ASSUME_NONNULL_BEGIN | ||
|
||
#if AG_OBJC_FOUNDATION | ||
AG_EXTERN_C_BEGIN | ||
AG_EXPORT | ||
CFStringRef AGDescriptionFormat AG_SWIFT_NAME(AGGraphRef.descriptionFormat); | ||
AG_EXTERN_C_END | ||
#endif | ||
|
||
AG_ASSUME_NONNULL_END | ||
|
||
#endif /* AGGraphDescription_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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// OGGraphDescription.h | ||
// | ||
// | ||
// Created by Kyle on 2024/1/21. | ||
// | ||
|
||
#ifndef OGGraphDescription_h | ||
#define OGGraphDescription_h | ||
|
||
#include "OGBase.h" | ||
|
||
OG_ASSUME_NONNULL_BEGIN | ||
|
||
#if OG_OBJC_FOUNDATION | ||
OG_EXTERN_C_BEGIN | ||
OG_EXPORT | ||
CFStringRef OGDescriptionFormat OG_SWIFT_NAME(OGGraphRef.descriptionFormat); | ||
OG_EXTERN_C_END | ||
#endif | ||
|
||
OG_ASSUME_NONNULL_END | ||
|
||
#endif /* OGGraphDescription_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
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 @@ | ||
../Graph/OGGraphDescription.h |
14 changes: 14 additions & 0 deletions
14
Tests/OpenGraphCompatibilityTests/Graph/GraphDescriptionTests.swift
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 @@ | ||
// | ||
// GraphDescriptionTests.swift | ||
// OpenGraphCompatibilityTests | ||
|
||
import Testing | ||
|
||
#if canImport(Darwin) | ||
struct GraphDescriptionTests { | ||
@Test | ||
func format() { | ||
#expect(OGGraph.descriptionFormat.takeUnretainedValue() as String == "format") | ||
} | ||
} | ||
#endif |