Skip to content

Commit

Permalink
change fallback for earlier iOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMoriarty committed Jul 18, 2021
1 parent 3b3e23f commit b9d5921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion godot_plugin/godot_plugin_class.mm
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Variant nsobject_to_variant(NSObject *object) {
}];
} else {
// Fallback on earlier versions
emit_signal("requestCompleted", 3);
};
}

Expand All @@ -196,6 +197,6 @@ Variant nsobject_to_variant(NSObject *object) {
return (int)[ATTrackingManager trackingAuthorizationStatus];
} else {
// Fallback on earlier versions
return 0;
return 3;
}
}
2 changes: 1 addition & 1 deletion nativelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ios-att",
"display_name": "AppTrackingTransparency",
"description": "",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"url": "https://github.com/DrMoriarty/godot-ios-att",
"category": "misc",
Expand Down

0 comments on commit b9d5921

Please sign in to comment.