libs
folder at the root of your project and copy it here.
Now, on your Gradle configuration file (build.gradle
), add:
// Adstronomic SDK
compile(name: 'adstronomic-debug', ext: 'aar')
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'androidx.core:core-ktx:1.3.2'
Update your Gradle project.libs
folder at the root of your project and copy it here.
Now, on your Gradle configuration file (build.gradle
), add:
implementation files('libs/AdstronomicSDK.jar')
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'androidx.core:core-ktx:1.3.2'
Update your Gradle project.MainActivity.java
and add the following include code import com.adstronomic.sdk.Adstronomic;
.
Now, initialize Adstronomic in the onCreate
methods of your Activity
with this line Adstronomic.init(this, "CAMPAIGN ID");
and replace CAMPAIGN ID
with your ID available on your dashboard.Adstronomic.loadAdsData();
.