The methods described in
this blog don't seem to apply to Swift code using GMA-SDK.
I see that the GMA-SDK has
FOUNDATION_EXPORT const unsigned char GoogleMobileAdsVersionString[];
But when I try to use that in the simplest possible Swift:
let foo = GoogleMobileAdsVersionString
I’m told
Cannot reference invalid declaration 'GoogleMobileAdsVersionString'
I wrote this ObjectiveC
const unsigned char* foo(void) {return GoogleMobileAdsVersionString; }
and can use it from the Swift side with
if let a = foo() {
let b = String(cString: a)
}
and can get "afma-sdk-i-v10.3.0", but that smacks of the internal version number that the blog referenced.
What am I missing?