提交 fdc1b851 编写于 作者: E Eric Frohnhoefer

Update support libs tnd mopub to use only necessary dependencies

Change-Id: Ice3d499132adda375a952003bdbb3eda620b9e8b
上级 9a579de7
......@@ -16,7 +16,7 @@ ext {
androidGradlePlugin : 'com.android.tools.build:gradle:3.0.0',
// Mopub
mopub : 'com.mopub:mopub-sdk:4.11.0@aar',
mopub : 'com.mopub:mopub-sdk-native-static:4.11.0@aar',
// Sample App
leakCanary : 'com.squareup.leakcanary:leakcanary-android:1.5.3',
......@@ -35,7 +35,8 @@ ext {
// Other
picasso : 'com.squareup.picasso:picasso:2.5.2',
supportV4 : 'com.android.support:support-v4:26.1.0',
supportCompatV4 : 'com.android.support:support-compat:26.1.0',
supportCoreV4 : 'com.android.support:support-core-ui:26.1.0',
retrofit : 'com.squareup.retrofit2:retrofit:2.3.0',
retrofitMock : 'com.squareup.retrofit2:retrofit-mock:2.3.0',
retrofitGsonConverter : 'com.squareup.retrofit2:converter-gson:2.3.0',
......
......@@ -70,7 +70,8 @@ dependencies {
api project(':twitter-core')
implementation dependency.picasso
implementation dependency.supportV4
implementation dependency.supportCoreV4
implementation dependency.supportCompatV4
implementation dependency.recyclerview
androidTestCompile dependency.retrofitMock
......
......@@ -93,7 +93,8 @@ dependencies {
}
implementation dependency.picasso
implementation dependency.supportV4
implementation dependency.supportCoreV4
implementation dependency.supportCompatV4
implementation dependency.recyclerview
androidTestCompile dependency.retrofitMock
......
......@@ -25,7 +25,6 @@ import android.widget.ImageView;
import android.widget.TextView;
import com.mopub.nativeads.BaseNativeAd;
import com.mopub.nativeads.MoPubCustomEventVideoNative;
import com.mopub.nativeads.StaticNativeAd;
import com.mopub.network.MaxWidthImageLoader;
import com.mopub.network.Networking;
......@@ -146,7 +145,5 @@ public class TwitterStaticNativeAdRendererTest {
public void testSupports_withCorrectInstanceOfBaseNativeAd_shouldReturnTrue() throws Exception {
assertTrue(twitterStaticNativeAdRenderer.supports(new StaticNativeAd() {}));
assertFalse(twitterStaticNativeAdRenderer.supports(mock(BaseNativeAd.class)));
assertFalse(twitterStaticNativeAdRenderer
.supports(mock(MoPubCustomEventVideoNative.MoPubVideoNativeAd.class)));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册