Skip to content

Commit d9e81ed

Browse files
satya164grabbou
authored andcommitted
Upgrade audience network to 4.22.1 (#60)
1 parent 0951fc2 commit d9e81ed

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

Readme.md renamed to README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ $ cd ./example && npm start
341341
### 3. Run it on iOS / Android
342342

343343
```bash
344-
$ cd ./examples && npm run ios
345-
$ cd ./examples && npm run android
344+
$ cd ./example && npm run ios
345+
$ cd ./example && npm run android
346346
```
347347

348348
### Credits

src/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ repositories {
3636
dependencies {
3737
compile 'com.facebook.react:react-native:+'
3838
compile 'com.android.support:appcompat-v7:23.1.0'
39-
compile 'com.facebook.android:audience-network-sdk:4.20.+'
39+
compile 'com.facebook.android:audience-network-sdk:4.22.1'
4040
}

src/android/src/main/java/io/callstack/react/fbads/BannerView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ public void onAdClicked(Ad ad) {
7676
mEventEmitter.receiveEvent(getId(), "onAdPress", null);
7777
}
7878

79+
@Override
80+
public void onLoggingImpression(Ad ad) {
81+
mEventEmitter.receiveEvent(getId(), "onLoggingImpression", null);
82+
}
83+
7984
private void createAdViewIfCan() {
8085
if (myAdView == null && mPlacementId != null && mSize != null) {
8186
myAdView = new AdView(this.getContext(), mPlacementId, mSize);

src/android/src/main/java/io/callstack/react/fbads/InterstitialAdManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public void onInterstitialDisplayed(Ad ad) {
6969

7070
}
7171

72+
@Override
73+
public void onLoggingImpression(Ad ad) {
74+
}
75+
7276
private void cleanUp() {
7377
mPromise = null;
7478
mDidClick = false;

0 commit comments

Comments
 (0)