You are on page 1of 2

Import the library in Android Studio · MagicMicky/FreemiumLibrary Wiki

This repository Search


Search
Pull requests
Issues
Marketplace
Explore

MagicMicky / FreemiumLibrary Star 97 Fork 26


Watch
11

Code Issues
3 Pull requests
0 Projects
0 Wiki Insights

Import the library in Android Studio Edit New Page

Alex I. Ramirez edited this page on Jul 24, 2017


·
4 revisions

Pages 8
To import the library to Android Studio, there are two methods that can work.
Home

Method 1: Add a link to upgrade on the


ActionBar's menu

1. Open your project in Android Studio Add an upgrade link in the app's
2. Download the library (using Git, or a zip archive to unzip) drawer

3. Create a folder "subProject" in your project Add some ads for non premium
4. Copy and paste the FreemiumLibrary folder to your subProject folder users

5. On the root of your project directory create/modify the settings.gradle file. It should contain Hide some features to non
something like the following: premium users

How to use
include 'MyApp', ':subProject:FreemiumLibrary'
Import the library in Android
Studio
6. gradle clean & build/close the project and reopen/re-import it. Tips
7. Edit your project's build.gradle to add this in the "depencies" section:

dependencies { Add a custom sidebar


//...
compile project(':subProject:FreemiumLibrary')
} Clone this wiki locally

https://github.com/MagicMicky/FreemiumLibrary.wiki.git

11. Edit your App Activities to extend AdsFragmentActivity instead of Activity.


Clone in Desktop
12. Edit the library if you want to use it with ActionBarCompat

Method 2:

https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio[3/27/2018 4:52:38 AM]


Import the library in Android Studio · MagicMicky/FreemiumLibrary Wiki

1. Open your project in Android Studio


2. Download the library (using Git, or a zip archive to unzip)
3. Go to File > Import Module and import the library as a module
4. Right-click your app in project view and select "Open Module Settings"
5. Click the "Dependencies" tab and then the '+' button
6. Select "Module Dependency"
7. Select "Freemium Library" (not Freemium Library Project)
8. Modify your App Activities to extend AdsFragmentActivity instead of Activity.
9. Modify the library if you want to use it with ActionBarCompat

Add a custom footer

© 2018 GitHub, Inc.


Terms
Privacy
Security
Status
Help
Contact GitHub
API
Training
Shop
Blog
About

https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio[3/27/2018 4:52:38 AM]