Skip to content

Commit 5071b1e

Browse files
nattb8claude
andcommitted
chore(audience-sdk): remove em dashes from comments and trim verbose phrasing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 94daeb7 commit 5071b1e

17 files changed

Lines changed: 38 additions & 38 deletions

src/Packages/Audience/Editor/AudienceMobileBuildSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class AudienceMobileBuildSettings : ScriptableObject
2727

2828
[SerializeField]
2929
[Tooltip("Copy shown in the iOS App Tracking Transparency prompt. " +
30-
"Apple rejects empty or generic strings — describe what is " +
30+
"Apple rejects empty or generic strings. Describe what is " +
3131
"collected and why.")]
3232
private string trackingUsageDescription = DefaultTrackingUsageDescription;
3333

@@ -64,7 +64,7 @@ private static void CreateAsset()
6464
if (guids.Length > 1)
6565
{
6666
Debug.LogWarning(
67-
$"[ImmutableAudience] Multiple AudienceMobileBuildSettings assets found " +
67+
$"[ImmutableAudience] Multiple AudienceMobileBuildSettings assets found - " +
6868
$"using '{path}'. Remove the duplicates to avoid unexpected build behaviour.");
6969
}
7070
return AssetDatabase.LoadAssetAtPath<AudienceMobileBuildSettings>(path);

src/Packages/Audience/Editor/iOSFrameworkPostProcessor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ namespace Immutable.Audience.Editor
1919
/// <c>AdSupport.framework</c> hosts <c>ASIdentifierManager</c> (the IDFA
2020
/// accessor). Without it linked, the runtime <c>NSClassFromString</c>
2121
/// lookup returns nil and the IDFA is silently dropped from
22-
/// <c>game_launch</c> — the Info.plist key alone does not load this
22+
/// <c>game_launch</c>. The Info.plist key alone does not load this
2323
/// framework. Linked as a required dep; the framework has shipped on
2424
/// every iOS release since 6.0.
2525
/// </para>
2626
/// <para>
2727
/// <c>AppTrackingTransparency.framework</c> hosts <c>ATTrackingManager</c>.
2828
/// Unity often auto-links this when <c>NSUserTrackingUsageDescription</c>
2929
/// is present, but the auto-link heuristic is undocumented and
30-
/// version-sensitive — an explicit weak link is immune to that drift and
30+
/// version-sensitive. An explicit weak link is immune to that drift and
3131
/// keeps the binary loadable on iOS &lt; 14 (the runtime code already
3232
/// guards via <c>NSClassFromString</c>).
3333
/// </para>
@@ -40,7 +40,7 @@ namespace Immutable.Audience.Editor
4040
internal static class iOSFrameworkPostProcessor
4141
{
4242
// Runs just after the Info.plist post-processor (9050). Order is
43-
// independent in practice both edit different files but keeping
43+
// independent in practice (both edit different files), but keeping
4444
// them adjacent makes the build log obvious.
4545
internal const int CallbackOrder = 9051;
4646

@@ -76,7 +76,7 @@ internal static void OnPostProcessBuild(BuildTarget target, string pathToBuiltPr
7676
#endif
7777
}
7878

79-
// Reads the iOS-target define list specifically — the post-processor
79+
// Reads the iOS-target define list specifically. The post-processor
8080
// mutates iOS build output regardless of which target the editor is
8181
// currently focused on.
8282
private static bool AttributionDefineEnabled()

src/Packages/Audience/Editor/iOSInfoPlistPostProcessor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Immutable.Audience.Editor
1818
/// <remarks>
1919
/// Both keys are gated by the <c>AUDIENCE_MOBILE_ATTRIBUTION</c>
2020
/// scripting define so a studio that hasn't opted into attribution
21-
/// ships a clean <c>Info.plist</c> Apple flags apps that include
21+
/// ships a clean <c>Info.plist</c>. Apple flags apps that include
2222
/// either key without the corresponding code paths.
2323
///
2424
/// Values come from the <see cref="AudienceMobileBuildSettings"/>
@@ -88,11 +88,11 @@ private static void ValidateBuildSettings()
8888
$" NSUserTrackingUsageDescription: {description}\n" +
8989
$" SKAdNetworkItems: {ids.Length} id(s)\n" +
9090
(ids.Length == 0
91-
? " (no SKAdNetwork ids configured set them on the AudienceMobileBuildSettings asset)\n"
91+
? " (no SKAdNetwork ids configured - set them on the AudienceMobileBuildSettings asset)\n"
9292
: string.Concat(System.Array.ConvertAll(ids, id => $" - {id}\n"))));
9393
}
9494

95-
// Reads the iOS-target define list specifically — the post-processor
95+
// Reads the iOS-target define list specifically. The post-processor
9696
// mutates iOS build output regardless of which target the editor is
9797
// currently focused on.
9898
private static bool AttributionDefineEnabled()
@@ -114,7 +114,7 @@ internal static void ApplyTrackingUsageDescription(
114114
? settings.TrackingUsageDescription
115115
: AudienceMobileBuildSettings.DefaultTrackingUsageDescription;
116116

117-
// Always overwrite — the settings asset is the source of truth,
117+
// Always overwrite. The settings asset is the source of truth,
118118
// beating any placeholder a lower-order post-processor wrote.
119119
root.SetString("NSUserTrackingUsageDescription", description);
120120
}

src/Packages/Audience/Editor/iOSPrivacyManifestPostProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal static void OnPostProcessBuild(BuildTarget target, string pathToBuiltPr
6262
/// <summary>
6363
/// Adds the attribution-specific privacy declarations to an existing
6464
/// (already Unity-merged) <c>PrivacyInfo.xcprivacy</c> plist root.
65-
/// Idempotent — safe to call on a manifest that already has these entries.
65+
/// Idempotent. Safe to call on a manifest that already has these entries.
6666
/// </summary>
6767
internal static void ApplyAttributionPrivacyEntries(PlistElementDict root)
6868
{

src/Packages/Audience/Runtime/AudienceConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class AudienceConfig
6868
/// collected at runtime. Without the define, this setter is a
6969
/// no-op.
7070
///
71-
/// Studios who set neither ship a clean binary no AD_ID permission,
71+
/// Studios who set neither ship a clean binary: no AD_ID permission,
7272
/// no native attribution code, <c>NSPrivacyTracking = false</c>.
7373
/// </remarks>
7474
public bool EnableMobileAttribution { get; set; } = false;

src/Packages/Audience/Runtime/ImmutableAudience.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ private static void SyncConsentToBackend(AudienceConfig config, ConsentLevel lev
742742
/// </summary>
743743
/// <remarks>
744744
/// <para>
745-
/// Studios decide when to show the prompt Apple's HIG requires it
745+
/// Studios decide when to show the prompt. Apple's HIG requires it
746746
/// to fire at a moment that makes the value to the player obvious,
747747
/// not at SDK Init. The IDFA, when authorized, is collected
748748
/// automatically on the next <see cref="ImmutableAudience.Init"/> via
@@ -751,7 +751,7 @@ private static void SyncConsentToBackend(AudienceConfig config, ConsentLevel lev
751751
/// </para>
752752
/// <para>
753753
/// Resolves to <see cref="TrackingAuthorizationStatus.NotDetermined"/>
754-
/// in three distinct cases — callers who use this signal to decide
754+
/// in three distinct cases. Callers who use this signal to decide
755755
/// whether to retry should consult the SDK log to disambiguate:
756756
/// </para>
757757
/// <list type="bullet">
@@ -1148,7 +1148,7 @@ private static void FireGameLaunch(
11481148
if (skanRegistered == true)
11491149
properties["skanRegistered"] = true;
11501150

1151-
// iOS ATT/IDFA snapshot merged after Unity context so attribution
1151+
// iOS ATT/IDFA snapshot, merged after Unity context so attribution
11521152
// keys are authoritative if both sources happen to set the same key.
11531153
// idfa and gaid are cross-app device identifiers, same privacy class
11541154
// as userId; gate them at Full-only. State-class keys (attStatus,
@@ -1170,7 +1170,7 @@ private static void FireGameLaunch(
11701170
}
11711171

11721172
// Fires install_referrer_received exactly once per install. Cache
1173-
// file presence alone isn't enough — on first launch the bridge may
1173+
// file presence alone isn't enough. On first launch the bridge may
11741174
// write the cache after Init has already run, so the event must be
11751175
// dispatched at the next Init that observes a cache hit. The on-disk
11761176
// "sent" marker provides idempotency across that boundary.
@@ -1193,7 +1193,7 @@ private static void FireInstallReferrerReceivedOnce(AudienceConfig config, strin
11931193
}
11941194
catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
11951195
{
1196-
// Marker write failed — the event will re-fire on the next
1196+
// Marker write failed. The event will re-fire on the next
11971197
// launch. Pipeline-side dedup or the cost of one duplicate is
11981198
// less bad than never sending the event at all.
11991199
Log.Warn(AudienceLogs.InstallReferrerSentMarkerWriteFailed(ex));
@@ -1220,7 +1220,7 @@ private static string AttStatusToString(int status)
12201220
// RequestTrackingAuthorizationAsync resolves).
12211221
//
12221222
// First observation (no file): persists the baseline and returns without
1223-
// firing game_launch already captures the initial state on that Init.
1223+
// firing. game_launch already captures the initial state on that Init.
12241224
private static void CheckAndFireAttStatusChanged(
12251225
AudienceConfig config,
12261226
ConsentLevel consent,

src/Packages/Audience/Runtime/Plugins/Android/proguard-user.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Keep Google Play Services AdvertisingIdClient symbols (GAID).
1414
#
1515
# AdvertisingIdClient and its inner Info class are reflected via JNI from
16-
# GAIDBridge they have no managed-side reference for R8 to follow, so
16+
# GAIDBridge - they have no managed-side reference for R8 to follow, so
1717
# fullMode in studio projects can drop them. Defensive rules ensure the
1818
# getAdvertisingIdInfo / getId / isLimitAdTrackingEnabled surface survives.
1919
-keep class com.google.android.gms.ads.identifier.** { *; }

src/Packages/Audience/Runtime/Unity/Mobile/ATTBridge.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal static class ATTBridge
4747
// Hold a single delegate instance for the lifetime of the process. If
4848
// we passed a fresh delegate to each P/Invoke call, IL2CPP could GC
4949
// the wrapper before Apple's completion handler fires (which can be
50-
// seconds or minutes later — the user may swipe the prompt away or
50+
// seconds or minutes later. The user may swipe the prompt away or
5151
// background the app).
5252
private static readonly NativeStatusCallback _staticCallback = OnATTStatus;
5353

@@ -60,7 +60,7 @@ internal static class ATTBridge
6060
// - MonoPInvokeCallback so IL2CPP emits the trampoline that lets
6161
// native code call back into managed code.
6262
// - Preserve so managed-code stripping at High doesn't drop this
63-
// method (it has no managed callers only the function pointer).
63+
// method (no managed callers; only the function pointer).
6464
// Without both, the await in RequestAsync never completes on a
6565
// shipping build with stripping enabled.
6666
[MonoPInvokeCallback(typeof(NativeStatusCallback))]

src/Packages/Audience/Runtime/Unity/Mobile/AttributionContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Immutable.Audience.Unity.Mobile
1414
// Android: gaid + gaidLimitAdTracking are read from the GAIDBridge disk
1515
// cache populated by the previous launch's background fetch (Google's
1616
// AdvertisingIdClient is sync + must run off main thread, so first launch
17-
// ships nothing gaidLimitAdTracking shows up on launch #2 onwards).
17+
// ships nothing; gaidLimitAdTracking shows up on launch #2 onwards).
1818
internal static class AttributionContext
1919
{
2020
// Maps Apple's ATTrackingManagerAuthorizationStatus to the wire
@@ -33,7 +33,7 @@ internal static string AttStatusToString(int status)
3333
}
3434

3535
// persistentDataPath is required for Android (GAID disk cache); iOS
36-
// ignores it. Returns a possibly-empty dict never null so callers
36+
// ignores it. Returns a possibly-empty dict (never null) so callers
3737
// can merge unconditionally.
3838
internal static IReadOnlyDictionary<string, object> Capture(string? persistentDataPath = null)
3939
{

src/Packages/Audience/Runtime/Unity/Mobile/GAIDBridge.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Immutable.Audience.Unity.Mobile
1414
/// Reads gaid + limitAdTracking via AdvertisingIdClient. Google requires
1515
/// the call run off the main thread, so we dispatch on a dedicated worker
1616
/// and cache the result to disk for the next launch. GAID can change
17-
/// (user reset), so we refresh every launch — first launch ships nothing,
17+
/// (user reset), so we refresh every launch. First launch ships nothing;
1818
/// launch #2+ ships the previously-cached value.
1919
/// </summary>
2020
internal static class GAIDBridge
@@ -101,7 +101,7 @@ internal static void WriteCacheEntry(string persistentDataPath, string gaidOrEmp
101101
private static void StartFetchNative(string persistentDataPath)
102102
{
103103
// Dedicated Thread (not ThreadPool) so Attach/Detach pair on the
104-
// same one-shot worker ThreadPool reuse strands JVM state.
104+
// same one-shot worker. ThreadPool reuse strands JVM state.
105105
var thread = new Thread(() => FetchOnWorkerThread(persistentDataPath))
106106
{
107107
IsBackground = true,

0 commit comments

Comments
 (0)