irobotxx
irobotxx

Reputation: 6063

How to remove Ads from Application that uses a library project

Good day, I have a library project that i use to create a paid and free version of an app. Now i don't write any code or have any activity in the different projects except in the library project(for easy maintenance). i have followed the suggestions in the following link here

to try and have an AD free app in the paid app but for some reason the Ads keep coming up. which could mean some functionalities for the paid won't work either.. What could i be doing wrong? :( do i have to manually copy the Activities from the library project into the project for the paid app and remove the code for the Ads manually and others?. Thanks

Upvotes: 1

Views: 677

Answers (1)

Colin
Colin

Reputation: 1119

The ads have to be initialized somewhere in your library - if nothing else creating the ad view and adding it to the main view. If you want different behavior then you probably want to initialize the library differently - say pass a boolean (or enumeration) to the library at initialization time that the library uses to know whether to invoke the lines of code that create the ad view and add it to the main view. Then your paid app can initialize without ads, while your free app initializes with ads.

Upvotes: 1

Related Questions