Skip to content

Commit

Permalink
Auto build v1.4.17
Browse files Browse the repository at this point in the history
  • Loading branch information
glispaconnect committed Oct 3, 2018
1 parent d3c69a4 commit 960c77d
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 34 deletions.
4 changes: 2 additions & 2 deletions avocarrot-admob-banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the AdMob or DFP Android SDK.

## Requirements

* Google Mobile Ads SDK version 11.8.0.
* Avocarrot Android SDK v4.10.1.
* Google Mobile Ads SDK version 15.0.1.
* Avocarrot Android SDK v4.10.3.

## Instructions

Expand Down
4 changes: 2 additions & 2 deletions avocarrot-admob-interstitial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the AdMob or DFP Android SDK.

## Requirements

* Google Mobile Ads SDK version 11.8.0.
* Avocarrot Android SDK v4.10.1.
* Google Mobile Ads SDK version 15.0.1.
* Avocarrot Android SDK v4.10.3.

## Instructions

Expand Down
4 changes: 2 additions & 2 deletions avocarrot-admob-nativead/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the AdMob Android SDK.

## Requirements

* Google Mobile Ads SDK version 11.8.0.
* Avocarrot Android SDK v4.10.1.
* Google Mobile Ads SDK version 15.0.1.
* Avocarrot Android SDK v4.10.3.

## Instructions

Expand Down
32 changes: 16 additions & 16 deletions avocarrot-app-sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
compileSdkVersion 28
buildToolsVersion "28.0.3"

defaultConfig {
minSdkVersion 16
//noinspection OldTargetApi
targetSdkVersion 27
targetSdkVersion 28

versionCode 1
versionName VERSION_NAME
Expand All @@ -27,18 +27,18 @@ android {
}

dependencies {
compile 'com.android.support:multidex:1.0.3'
compile 'com.android.support:appcompat-v7:27.1.0'
compile 'com.android.support:design:27.1.0'
compile 'com.facebook.stetho:stetho:1.5.0'
compile 'com.jakewharton:process-phoenix:2.0.0'
compile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
compile 'org.jooq:joor:0.9.6'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.jakewharton:process-phoenix:2.0.0'
implementation 'com.squareup.leakcanary:leakcanary-android:1.5.1'
implementation 'org.jooq:joor:0.9.6'
//
compile project(':adapter-mopub-nativead')
compile project(':adapter-mopub-banner')
compile project(':adapter-mopub-interstitial')
compile project(':adapter-admob-banner')
compile project(':adapter-admob-interstitial')
compile project(':adapter-admob-nativead')
implementation project(':adapter-mopub-nativead')
implementation project(':adapter-mopub-banner')
implementation project(':adapter-mopub-interstitial')
implementation project(':adapter-admob-banner')
implementation project(':adapter-admob-interstitial')
implementation project(':adapter-admob-nativead')
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.avocarrot.adapters.sample.mopub;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
Expand All @@ -19,6 +20,10 @@
import com.avocarrot.adapters.sample.IntentStarter;
import com.avocarrot.adapters.sample.R;
import com.avocarrot.adapters.sample.ScreenAdType;
import com.avocarrot.sdk.Avocarrot;
import com.mopub.common.MoPub;
import com.mopub.common.SdkConfiguration;
import com.mopub.common.SdkInitializationListener;

public class MopubConfigActivity extends AppCompatActivity {
@NonNull
Expand Down Expand Up @@ -86,8 +91,24 @@ private void attempt(final int adTypeScreen) {
adUnitIdView.setError(getString(R.string.error_field_required));
adUnitIdView.requestFocus();
} else {
IntentStarter.startMopubAdTypeActivity(this, adTypeScreen, adUnitId);
finish();
Avocarrot.setDebugMode(true);
if (MoPub.isSdkInitialized()) {
IntentStarter.startMopubAdTypeActivity(this, adTypeScreen, adUnitId);
finish();
} else {
SdkConfiguration sdkConfiguration = new SdkConfiguration.Builder(adUnitId).build();
MoPub.initializeSdk(this, sdkConfiguration, initSdkListener(this, adTypeScreen, adUnitId));
}
}
}

private SdkInitializationListener initSdkListener(final Activity activity, final int adTypeScreen, final String adUnitId) {
return new SdkInitializationListener() {
@Override
public void onInitializationFinished() {
IntentStarter.startMopubAdTypeActivity(activity, adTypeScreen, adUnitId);
finish();
}
};
}
}
4 changes: 2 additions & 2 deletions avocarrot-mopub-banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the MoPub Android SDK.

## Requirements

* MoPub Android SDK v4.18.0 or later.
* Avocarrot Android SDK v4.10.1 or later.
* MoPub Android SDK v5.3.0 or later.
* Avocarrot Android SDK v4.10.3 or later.

## Instructions

Expand Down
4 changes: 2 additions & 2 deletions avocarrot-mopub-interstitial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the MoPub Android SDK.

## Requirements

* MoPub Android SDK v4.18.0 or later.
* Avocarrot Android SDK v4.10.1 or later.
* MoPub Android SDK v5.3.0 or later.
* Avocarrot Android SDK v4.10.3 or later.

## Instructions

Expand Down
4 changes: 2 additions & 2 deletions avocarrot-mopub-nativead/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an adapter to be used in conjunction with the MoPub Android SDK.

## Requirements

* MoPub Android SDK v4.18.0 or later.
* Avocarrot Android SDK v4.10.1 or later.
* MoPub Android SDK v5.3.0 or later.
* Avocarrot Android SDK v4.10.3 or later.

## Instructions

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'de.felixschulze.gradle:gradle-hockeyapp-plugin:3.6'
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Mar 29 13:38:12 EEST 2018
#Mon Oct 01 15:49:27 EEST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION_NAME=1.4.16
VERSION_NAME=1.4.17

0 comments on commit 960c77d

Please sign in to comment.