Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Upgrade of AppBrain AppLift SDK:

- Better banner button handling
- Google compliance: only use Android Advertising ID
- Add setOfferWallClickListener for custom "more apps" buttons
  • Loading branch information...
commit 3798c1e957bff272d47183d0bb7ec3963653d53a 1 parent bf1bb97
Mathijs Vogelzang mathijs81 authored
BIN  appbrain-advertiser-sdk-v10.01.jar
Binary file not shown
BIN  appbrain-advertiser-sdk-v10.1.jar
Binary file not shown
BIN  appbrain-applift-sdk-v10.01.jar
Binary file not shown
BIN  appbrain-applift-sdk-v10.1.jar
Binary file not shown
BIN  applift-admob-mediation-v10.01.jar → applift-admob-mediation-v10.1.jar
Binary file not shown
BIN  applift-adwhirl-v10.01.jar → applift-adwhirl-v10.1.jar
Binary file not shown
BIN  applift-mopub-v10.01.jar → applift-mopub-v10.1.jar
Binary file not shown
4 example/AndroidManifest.xml
... ... @@ -1,8 +1,8 @@
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 3 package="com.appbrain.example"
4   - android:versionCode="20"
5   - android:versionName="3.1" >
  4 + android:versionCode="21"
  5 + android:versionName="3.2" >
6 6
7 7 <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19"/>
8 8 <uses-permission android:name="android.permission.INTERNET" />
BIN  example/libs/appbrain-applift-sdk-v10.01.jar
Binary file not shown
BIN  example/libs/appbrain-applift-sdk-v10.1.jar
Binary file not shown
10 example/proguard.cfg
@@ -6,9 +6,6 @@
6 6 -allowaccessmodification
7 7 -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
8 8
9   --keepattributes *Annotation*
10   --keep class android.webkit.JavascriptInterface
11   --dontwarn android.webkit.JavascriptInterface
12 9 -keep public class * extends android.app.Activity
13 10 -keep public class * extends android.app.Application
14 11 -keep public class * extends android.app.Service
@@ -43,8 +40,13 @@
43 40 public static final android.os.Parcelable$Creator *;
44 41 }
45 42
  43 +# AppBrain AppLift:
46 44 -keep public class cmn.Proguard$KeepMembers
47 45 -keep public class * implements cmn.Proguard$KeepMembers
48 46 -keepclassmembers class * implements cmn.Proguard$KeepMembers {
49 47 <methods>;
50   -}
  48 +}
  49 +-keepattributes *Annotation*
  50 +-keep class android.webkit.JavascriptInterface
  51 +-dontwarn android.webkit.JavascriptInterface
  52 +-dontwarn com.google.android.gms.**
199 javadoc/reference/com/appbrain/AdService.html
@@ -317,6 +317,22 @@
317 317
318 318
319 319
  320 + String</nobr>
  321 + </td>
  322 + <td class="jd-linkcol" width="100%"><nobr>
  323 + <span class="sympad"><a href="../../com/appbrain/AdService.html#getOfferWallButtonLabel(android.content.Context)">getOfferWallButtonLabel</a></span>(Context context)</nobr>
  324 +
  325 + </td></tr>
  326 +
  327 +
  328 +
  329 + <tr class=" api apilevel-" >
  330 + <td class="jd-typecol"><nobr>
  331 + abstract
  332 +
  333 +
  334 +
  335 +
320 336 boolean</nobr>
321 337 </td>
322 338 <td class="jd-linkcol" width="100%"><nobr>
@@ -329,6 +345,24 @@
329 345
330 346
331 347
  348 + <tr class="alt-color api apilevel-" >
  349 + <td class="jd-typecol"><nobr>
  350 + abstract
  351 +
  352 +
  353 +
  354 +
  355 + void</nobr>
  356 + </td>
  357 + <td class="jd-linkcol" width="100%"><nobr>
  358 + <span class="sympad"><a href="../../com/appbrain/AdService.html#setOfferWallClickListener(android.content.Context, android.view.View)">setOfferWallClickListener</a></span>(Context context, View view)</nobr>
  359 +
  360 + <div class="jd-descrdiv">Sets a view's OnClickListener to open the offer wall when clicked.</div>
  361 +
  362 + </td></tr>
  363 +
  364 +
  365 +
332 366 <tr class=" api apilevel-" >
333 367 <td class="jd-typecol"><nobr>
334 368 abstract
@@ -336,6 +370,25 @@
336 370
337 371
338 372
  373 + void</nobr>
  374 + </td>
  375 + <td class="jd-linkcol" width="100%"><nobr>
  376 + <span class="sympad"><a href="../../com/appbrain/AdService.html#setOfferWallMenuItemClickListener(android.content.Context, android.view.MenuItem)">setOfferWallMenuItemClickListener</a></span>(Context context, MenuItem menuItem)</nobr>
  377 +
  378 + <div class="jd-descrdiv">Sets a menu item's OnMenuItemClickListener to open the offer wall when
  379 + clicked.</div>
  380 +
  381 + </td></tr>
  382 +
  383 +
  384 +
  385 + <tr class="alt-color api apilevel-" >
  386 + <td class="jd-typecol"><nobr>
  387 + abstract
  388 +
  389 +
  390 +
  391 +
339 392 boolean</nobr>
340 393 </td>
341 394 <td class="jd-linkcol" width="100%"><nobr>
@@ -347,7 +400,7 @@
347 400
348 401
349 402
350   - <tr class="alt-color api apilevel-" >
  403 + <tr class=" api apilevel-" >
351 404 <td class="jd-typecol"><nobr>
352 405 abstract
353 406
@@ -365,7 +418,7 @@
365 418
366 419
367 420
368   - <tr class=" api apilevel-" >
  421 + <tr class="alt-color api apilevel-" >
369 422 <td class="jd-typecol"><nobr>
370 423 abstract
371 424
@@ -430,6 +483,53 @@
430 483
431 484
432 485
  486 +<A NAME="getOfferWallButtonLabel(android.content.Context)"></A>
  487 +
  488 +<div class="jd-details api apilevel-">
  489 + <h4 class="jd-details-title">
  490 + <span class="normal">
  491 + public
  492 +
  493 +
  494 + abstract
  495 +
  496 + String
  497 + </span>
  498 + <span class="sympad">getOfferWallButtonLabel</span>
  499 + <span class="normal">(Context context)</span>
  500 + </h4>
  501 + <div class="api-level">
  502 + <div>
  503 +
  504 +</div>
  505 +
  506 +
  507 +
  508 + </div>
  509 + <div class="jd-details-descr">
  510 +
  511 + <div class="jd-tagdata jd-tagdescr"><p></p></div>
  512 + <div class="jd-tagdata">
  513 + <h5 class="jd-tagtitle">Parameters</h5>
  514 + <table class="jd-tagtable">
  515 + <tr>
  516 + <th>context</td>
  517 + <td>the current Context</td>
  518 + </tr>
  519 + </table>
  520 + </div>
  521 + <div class="jd-tagdata">
  522 + <h5 class="jd-tagtitle">Returns</h5>
  523 + <ul class="nolist"><li>an internationalized String which can be used for a button or
  524 + menu item which opens the offer wall. In English this is
  525 + "More free apps".
  526 +</li></ul>
  527 + </div>
  528 +
  529 + </div>
  530 +</div>
  531 +
  532 +
433 533 <A NAME="maybeShowInterstitial(android.content.Context)"></A>
434 534
435 535 <div class="jd-details api apilevel-">
@@ -476,6 +576,101 @@ <h5 class="jd-tagtitle">Returns</h5>
476 576 </div>
477 577
478 578
  579 +<A NAME="setOfferWallClickListener(android.content.Context, android.view.View)"></A>
  580 +
  581 +<div class="jd-details api apilevel-">
  582 + <h4 class="jd-details-title">
  583 + <span class="normal">
  584 + public
  585 +
  586 +
  587 + abstract
  588 +
  589 + void
  590 + </span>
  591 + <span class="sympad">setOfferWallClickListener</span>
  592 + <span class="normal">(Context context, View view)</span>
  593 + </h4>
  594 + <div class="api-level">
  595 + <div>
  596 +
  597 +</div>
  598 +
  599 +
  600 +
  601 + </div>
  602 + <div class="jd-details-descr">
  603 +
  604 + <div class="jd-tagdata jd-tagdescr"><p>Sets a view's OnClickListener to open the offer wall when clicked. Unlike
  605 + the method showOfferWall(), you do not need explicit approval to use this
  606 + method.</p></div>
  607 + <div class="jd-tagdata">
  608 + <h5 class="jd-tagtitle">Parameters</h5>
  609 + <table class="jd-tagtable">
  610 + <tr>
  611 + <th>context</td>
  612 + <td>the current Context</td>
  613 + </tr>
  614 + <tr>
  615 + <th>view</td>
  616 + <td>the button or other clickable view which should open the offer
  617 + wall.
  618 +</td>
  619 + </tr>
  620 + </table>
  621 + </div>
  622 +
  623 + </div>
  624 +</div>
  625 +
  626 +
  627 +<A NAME="setOfferWallMenuItemClickListener(android.content.Context, android.view.MenuItem)"></A>
  628 +
  629 +<div class="jd-details api apilevel-">
  630 + <h4 class="jd-details-title">
  631 + <span class="normal">
  632 + public
  633 +
  634 +
  635 + abstract
  636 +
  637 + void
  638 + </span>
  639 + <span class="sympad">setOfferWallMenuItemClickListener</span>
  640 + <span class="normal">(Context context, MenuItem menuItem)</span>
  641 + </h4>
  642 + <div class="api-level">
  643 + <div>
  644 +
  645 +</div>
  646 +
  647 +
  648 +
  649 + </div>
  650 + <div class="jd-details-descr">
  651 +
  652 + <div class="jd-tagdata jd-tagdescr"><p>Sets a menu item's OnMenuItemClickListener to open the offer wall when
  653 + clicked. Unlike the method showOfferWall(), you do not need explicit
  654 + approval to use this method.</p></div>
  655 + <div class="jd-tagdata">
  656 + <h5 class="jd-tagtitle">Parameters</h5>
  657 + <table class="jd-tagtable">
  658 + <tr>
  659 + <th>context</td>
  660 + <td>the current Context</td>
  661 + </tr>
  662 + <tr>
  663 + <th>menuItem</td>
  664 + <td>the menu item which should open the offer wall.
  665 +</td>
  666 + </tr>
  667 + </table>
  668 + </div>
  669 +
  670 + </div>
  671 +</div>
  672 +
  673 +
479 674 <A NAME="shouldShowInterstitial(android.content.Context)"></A>
480 675
481 676 <div class="jd-details api apilevel-">
68 javadoc/reference/com/appbrain/AppBrain.html
@@ -367,6 +367,24 @@
367 367
368 368 static
369 369
  370 + void</nobr>
  371 + </td>
  372 + <td class="jd-linkcol" width="100%"><nobr>
  373 + <span class="sympad"><a href="../../com/appbrain/AppBrain.html#addTestDevice(java.lang.String)">addTestDevice</a></span>(String deviceId)</nobr>
  374 +
  375 + <div class="jd-descrdiv">Put a device in test mode.</div>
  376 +
  377 + </td></tr>
  378 +
  379 +
  380 +
  381 + <tr class=" api apilevel-" >
  382 + <td class="jd-typecol"><nobr>
  383 +
  384 +
  385 +
  386 + static
  387 +
370 388 <a href="../../com/appbrain/AdService.html">AdService</a></nobr>
371 389 </td>
372 390 <td class="jd-linkcol" width="100%"><nobr>
@@ -379,7 +397,7 @@
379 397
380 398
381 399
382   - <tr class=" api apilevel-" >
  400 + <tr class="alt-color api apilevel-" >
383 401 <td class="jd-typecol"><nobr>
384 402
385 403
@@ -398,7 +416,7 @@
398 416
399 417
400 418
401   - <tr class="alt-color api apilevel-" >
  419 + <tr class=" api apilevel-" >
402 420 <td class="jd-typecol"><nobr>
403 421
404 422
@@ -416,7 +434,7 @@
416 434
417 435
418 436
419   - <tr class=" api apilevel-" >
  437 + <tr class="alt-color api apilevel-" >
420 438 <td class="jd-typecol"><nobr>
421 439
422 440
@@ -434,7 +452,7 @@
434 452
435 453
436 454
437   - <tr class="alt-color api apilevel-" >
  455 + <tr class=" api apilevel-" >
438 456 <td class="jd-typecol"><nobr>
439 457
440 458
@@ -677,6 +695,48 @@
677 695
678 696
679 697
  698 +<A NAME="addTestDevice(java.lang.String)"></A>
  699 +
  700 +<div class="jd-details api apilevel-">
  701 + <h4 class="jd-details-title">
  702 + <span class="normal">
  703 + public
  704 + static
  705 +
  706 +
  707 +
  708 + void
  709 + </span>
  710 + <span class="sympad">addTestDevice</span>
  711 + <span class="normal">(String deviceId)</span>
  712 + </h4>
  713 + <div class="api-level">
  714 + <div>
  715 +
  716 +</div>
  717 +
  718 +
  719 +
  720 + </div>
  721 + <div class="jd-details-descr">
  722 +
  723 + <div class="jd-tagdata jd-tagdescr"><p>Put a device in test mode. In test mode random app alerts will be shown.</p></div>
  724 + <div class="jd-tagdata">
  725 + <h5 class="jd-tagtitle">Parameters</h5>
  726 + <table class="jd-tagtable">
  727 + <tr>
  728 + <th>deviceId</td>
  729 + <td>Your device ID, which can be found in the logcat output after
  730 + calling AppBrain.init() when debugging on your device.
  731 +</td>
  732 + </tr>
  733 + </table>
  734 + </div>
  735 +
  736 + </div>
  737 +</div>
  738 +
  739 +
680 740 <A NAME="getAds()"></A>
681 741
682 742 <div class="jd-details api apilevel-">
56 javadoc/reference/current.xml
@@ -8,6 +8,19 @@
8 8 deprecated="not deprecated"
9 9 visibility="public"
10 10 >
  11 +<method name="getOfferWallButtonLabel"
  12 + return="java.lang.String"
  13 + abstract="true"
  14 + native="false"
  15 + synchronized="false"
  16 + static="false"
  17 + final="false"
  18 + deprecated="not deprecated"
  19 + visibility="public"
  20 +>
  21 +<parameter name="context" type="android.content.Context">
  22 +</parameter>
  23 +</method>
11 24 <method name="maybeShowInterstitial"
12 25 return="boolean"
13 26 abstract="true"
@@ -21,6 +34,36 @@
21 34 <parameter name="context" type="android.content.Context">
22 35 </parameter>
23 36 </method>
  37 +<method name="setOfferWallClickListener"
  38 + return="void"
  39 + abstract="true"
  40 + native="false"
  41 + synchronized="false"
  42 + static="false"
  43 + final="false"
  44 + deprecated="not deprecated"
  45 + visibility="public"
  46 +>
  47 +<parameter name="context" type="android.content.Context">
  48 +</parameter>
  49 +<parameter name="view" type="android.view.View">
  50 +</parameter>
  51 +</method>
  52 +<method name="setOfferWallMenuItemClickListener"
  53 + return="void"
  54 + abstract="true"
  55 + native="false"
  56 + synchronized="false"
  57 + static="false"
  58 + final="false"
  59 + deprecated="not deprecated"
  60 + visibility="public"
  61 +>
  62 +<parameter name="context" type="android.content.Context">
  63 +</parameter>
  64 +<parameter name="menuItem" type="android.view.MenuItem">
  65 +</parameter>
  66 +</method>
24 67 <method name="shouldShowInterstitial"
25 68 return="boolean"
26 69 abstract="true"
@@ -92,6 +135,19 @@
92 135 deprecated="not deprecated"
93 136 visibility="public"
94 137 >
  138 +<method name="addTestDevice"
  139 + return="void"
  140 + abstract="false"
  141 + native="false"
  142 + synchronized="false"
  143 + static="true"
  144 + final="false"
  145 + deprecated="not deprecated"
  146 + visibility="public"
  147 +>
  148 +<parameter name="deviceId" type="java.lang.String">
  149 +</parameter>
  150 +</method>
95 151 <method name="getAds"
96 152 return="com.appbrain.AdService"
97 153 abstract="false"

0 comments on commit 3798c1e

Please sign in to comment.
Something went wrong with that request. Please try again.