googleads-mobile-unity icon indicating copy to clipboard operation
googleads-mobile-unity copied to clipboard

Google Mobile Ads SDK with Swift Package Manager (SPM)?

Open stiliyanv opened this issue 5 years ago • 43 comments

Is there a way to import Google Mobile Ads SDK into my Xcode application through Swift Package Manager (SPM) instead of CocoaPods or Manual Download?

This repository doesn't have Package.swift file so I suppose that it is not designed to work with SPM. Any future plans in this direction?

stiliyanv avatar Jan 02 '20 16:01 stiliyanv

No, sorry there are not currently any plans to support SPM, it does not contain any swift code.

stowy avatar Jan 07 '20 23:01 stowy

Now that SPM supports xcframework to deliver binary code, will GAM sdk provides a SPM version?

la-pieuvre avatar Nov 01 '20 13:11 la-pieuvre

Have a look at how Firebase made it work with SPM via binary xcframeworks.

Both Firebase & GoogleMobileAds are ObjC only frameworks and share similar dependencies (GoogleAppMeasurement, FBLPromises, nanopb, GoogleUtilities), so I assume it's possible to also make GoogleMobileAds SPM compatible.

At the moment, GoogleMobileAds is our only non SPM dependency, forcing us to keep using CocoaPods. It would be nice to leave CocoaPods behind and have a clean Xcode project for once :) .

adiracu avatar Nov 26 '20 10:11 adiracu

@stowy I don't think issue should be closed. It is necessary and possible (see Firebase).

carloshwa avatar Dec 04 '20 03:12 carloshwa

Hi @carloshwa - you are correct, we are reviewing this at the moment.

stowy avatar Dec 06 '20 23:12 stowy

@stowy I really need to use GoogleSignIn and GoogleMobileAds with swift package manager , please help me.

PahlevanyanSamvel avatar Dec 18 '20 13:12 PahlevanyanSamvel

Any update?

zaniluca avatar Jan 03 '21 18:01 zaniluca

Hello, we're actively working on this however we are looking into ways to depend on GoogleAppMeasurement since it's not currently support SPM. We're talking to them about this.

maddevrelgithubbot avatar Jan 05 '21 23:01 maddevrelgithubbot

Any news about SPM support?

FranFus avatar Feb 04 '21 14:02 FranFus

I see XCFramework of Google is now available to download. Does anyone know how to declare Package.swift locally to use those frameworks in form of SPM?

pddkhanh avatar Feb 05 '21 15:02 pddkhanh

@maddevrelgithubbot Hi! GoogleAppMeasurement supports SPM now. Any update?

https://github.com/google/GoogleAppMeasurement/blob/main/Package.swift

mezhevikin avatar Feb 14 '21 10:02 mezhevikin

Hi! Any updates?

dankinsoid avatar Feb 15 '21 10:02 dankinsoid

It would be great to have at least some news and feedbacks from contributors

FranFus avatar Feb 17 '21 10:02 FranFus

Still nothing official?

FranFus avatar Mar 08 '21 09:03 FranFus

Any update on this?

vince1393 avatar Apr 28 '21 23:04 vince1393

I've just seen your email, I'll try and let you know

29 Nis 2021 Per 02:51 tarihinde Vincent Romani @.***> şunu yazdı:

Any update on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-unity/issues/1125#issuecomment-828852175, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJJ5QMS7H4UGILDBRGSNHLTLCNRPANCNFSM4KCD6HLQ .

aliosmanuysal avatar Apr 29 '21 00:04 aliosmanuysal

I have update SPM for Admob 8.4.0. You can download it on link https://github.com/quanghits/GoogleMobileAds

quanghits avatar Apr 29 '21 02:04 quanghits

I updated SPM for Admob 8.5.0. https://github.com/quanghits/GoogleMobileAds

quanghits avatar May 11 '21 06:05 quanghits

Any update on getting this package working on SPM? If not we're going to just remove it during our next refactor. Google libraries are starting to create too much overhead nowadays

vince1393 avatar May 11 '21 13:05 vince1393

Any news about SPM support, please?

houmie avatar May 24 '21 11:05 houmie

Any news about SPM support, please?

Download on my repository, I update each new version.

https://github.com/quanghits/GoogleMobileAds

quanghits avatar May 28 '21 08:05 quanghits

Thanks for you work @quanghits, you saved many of us. But why is Google not doing it? They did it for Firebase, why not AdMob...

nathanfallet avatar Jul 15 '21 14:07 nathanfallet

Swift package manager support is on the roadmap. Should be rolled this quarter, targeting August. It will NOT be in this repo though, because this repo is not the iOS SDK. Since the Google Mobile Ads SDK for iOS is not open source, there will be a separate repo for it, similar to how https://github.com/quanghits/GoogleMobileAds is set up.

Having said that, please help me understand why SPM affects you on Unity. The plugin uses https://github.com/googlesamples/unity-jar-resolver which leverages CocoaPods to pull in the iOS libraries. How will you take advantage of SPM for your Unity projects? Are all of these upvotes really from users that are stripping out that way of pulling in libraries, and setting up your own dependencies through SPM?

ericleich avatar Jul 15 '21 15:07 ericleich

Any news on this? Since there is isn't any repo yet, will the announcement be made in this issue?

inc-ali avatar Aug 21 '21 07:08 inc-ali

@ericleich is there already another repo with AdMob for SPM? You mentioned August and the end of August is approaching, but I still cannot find it.

Many thanks for looking into this!

jkozlowicz avatar Aug 27 '21 15:08 jkozlowicz

Any news?

rafagan avatar Sep 15 '21 17:09 rafagan

Any updates? It's past August...

twhitt14 avatar Sep 23 '21 23:09 twhitt14

Some news about the integration anyone?

zaniluca avatar Nov 01 '21 16:11 zaniluca

@ericleich any word on Google Ads Swift package manager support yet?

simspace-dr avatar Nov 02 '21 20:11 simspace-dr

Any updates here? This is badly needed

sean7512 avatar Nov 16 '21 18:11 sean7512