Commit afa6870ebe981a2c888e4484f8b7bb5100ba8d90
1 parent
86d32fce
1.Html广告展示优化
2.SDK版本更新
Showing
4 changed files
with
6 additions
and
4 deletions
.idea/misc.xml
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project version="4"> | 2 | <project version="4"> |
| 3 | - <component name="EntryPointsManager"> | ||
| 4 | - <entry_points version="2.0" /> | ||
| 5 | - </component> | ||
| 6 | <component name="NullableNotNullManager"> | 3 | <component name="NullableNotNullManager"> |
| 7 | <option name="myDefaultNullable" value="android.support.annotation.Nullable" /> | 4 | <option name="myDefaultNullable" value="android.support.annotation.Nullable" /> |
| 8 | <option name="myDefaultNotNull" value="android.support.annotation.NonNull" /> | 5 | <option name="myDefaultNotNull" value="android.support.annotation.NonNull" /> |
app/build.gradle
| @@ -25,5 +25,5 @@ dependencies { | @@ -25,5 +25,5 @@ dependencies { | ||
| 25 | compile 'com.google.code.gson:gson:2.8.2' | 25 | compile 'com.google.code.gson:gson:2.8.2' |
| 26 | compile 'com.android.support.constraint:constraint-layout:1.0.2' | 26 | compile 'com.android.support.constraint:constraint-layout:1.0.2' |
| 27 | //引入广告SDK | 27 | //引入广告SDK |
| 28 | - compile 'cn.vlion:vlion-ad:1.1.1' | 28 | + compile 'cn.vlion:vlion-ad:1.1.2' |
| 29 | } | 29 | } |
app/src/main/java/cn/vlion/simple/NativeActivity.java
| 1 | package cn.vlion.simple; | 1 | package cn.vlion.simple; |
| 2 | 2 | ||
| 3 | +import android.content.Intent; | ||
| 3 | import android.os.Bundle; | 4 | import android.os.Bundle; |
| 4 | import android.support.annotation.Nullable; | 5 | import android.support.annotation.Nullable; |
| 5 | import android.support.v7.app.AppCompatActivity; | 6 | import android.support.v7.app.AppCompatActivity; |
| @@ -16,6 +17,7 @@ import cn.vlion.ad.moudle.natives.model.NativeCarouselData; | @@ -16,6 +17,7 @@ import cn.vlion.ad.moudle.natives.model.NativeCarouselData; | ||
| 16 | import cn.vlion.ad.moudle.natives.model.NativeFeedsData; | 17 | import cn.vlion.ad.moudle.natives.model.NativeFeedsData; |
| 17 | import cn.vlion.ad.moudle.natives.model.NativeNewsData; | 18 | import cn.vlion.ad.moudle.natives.model.NativeNewsData; |
| 18 | import cn.vlion.ad.moudle.natives.model.NativeWaterfallData; | 19 | import cn.vlion.ad.moudle.natives.model.NativeWaterfallData; |
| 20 | +import cn.vlion.ad.view.webview.VLionWebViewActivity; | ||
| 19 | 21 | ||
| 20 | /** | 22 | /** |
| 21 | * Created by xiansong on 2017/10/14. | 23 | * Created by xiansong on 2017/10/14. |
| @@ -55,6 +57,9 @@ public class NativeActivity extends AppCompatActivity { | @@ -55,6 +57,9 @@ public class NativeActivity extends AppCompatActivity { | ||
| 55 | NativeManager.getInstance().requestCarousel(this, adId_Carousel, new NativeListener<NativeCarouselData>() { | 57 | NativeManager.getInstance().requestCarousel(this, adId_Carousel, new NativeListener<NativeCarouselData>() { |
| 56 | @Override | 58 | @Override |
| 57 | public void onRequestSuccess(NativeCarouselData data) { | 59 | public void onRequestSuccess(NativeCarouselData data) { |
| 60 | + Intent intent = new Intent(NativeActivity.this, VLionWebViewActivity.class); | ||
| 61 | + intent.putExtra("ldp", data.getNativead().getLdp()); | ||
| 62 | + startActivity(intent); | ||
| 58 | Log.e("DemoView", "数据获取成功 " + new Gson().toJson(data)); | 63 | Log.e("DemoView", "数据获取成功 " + new Gson().toJson(data)); |
| 59 | Toast.makeText(NativeActivity.this, "数据获取成功 " + new Gson().toJson(data), Toast.LENGTH_SHORT).show(); | 64 | Toast.makeText(NativeActivity.this, "数据获取成功 " + new Gson().toJson(data), Toast.LENGTH_SHORT).show(); |
| 60 | } | 65 | } |
lib/vlion-ad-1.1.1.jar renamed to lib/vlion-ad-1.1.2.jar
No preview for this file type