Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ dependencies {

// Animated WEBP support. See: https://github.com/DylanVann/react-native-fast-image/issues/92#issuecomment-1680704556
implementation "com.github.zjupure:webpdecoder:2.6.${rootProject.ext.glideVersion}"

// See: https://developers.google.com/ad-manager/mobile-ads-sdk/android/quick-start
implementation 'com.google.android.gms:play-services-ads:22.6.0'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Expand Down
9 changes: 8 additions & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning"
android:networkSecurityConfig="@xml/network_security_config">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
<!-- See: https://developers.google.com/ad-manager/mobile-ads-sdk/android/quick-start
Google Ad Manager account wasn't ready - received app ID at Google AdMob service instead.
-->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-2162012490925055~6747905394"
/>
</application>
</manifest>
11 changes: 11 additions & 0 deletions android/app/src/main/java/com/templewallet/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
import android.content.Intent;
import android.content.res.Configuration;

import com.google.android.gms.ads.MobileAds;
import com.google.android.gms.ads.initialization.InitializationStatus;
import com.google.android.gms.ads.initialization.OnInitializationCompleteListener;

public class MainActivity extends ReactActivity {

/**
Expand All @@ -25,6 +29,13 @@ protected String getMainComponentName() {
protected void onCreate(Bundle savedInstanceState) {
RNBootSplash.init(this, R.style.BootTheme);
super.onCreate(null);

// See: https://developers.google.com/ad-manager/mobile-ads-sdk/android/quick-start
MobileAds.initialize(this, new OnInitializationCompleteListener() {
@Override
public void onInitializationComplete(InitializationStatus initializationStatus) {
}
});
}

/**
Expand Down
4 changes: 1 addition & 3 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true

pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'Google-Mobile-Ads-SDK'

platform :ios, '12.4'
prepare_react_native_project!
Expand Down
29 changes: 27 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PODS:
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FBAudienceNetwork (6.12.0)
- FBLazyVector (0.72.5)
- FBReactNativeSpec (0.72.5):
- RCT-Folly (= 2021.07.22.00)
Expand Down Expand Up @@ -138,6 +139,9 @@ PODS:
- FlipperKit/FlipperKitNetworkPlugin
- fmt (6.2.1)
- glog (0.3.5)
- Google-Mobile-Ads-SDK (9.14.0):
- GoogleAppMeasurement (< 11.0, >= 7.0)
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleAppMeasurement (10.7.0):
- GoogleAppMeasurement/AdIdSupport (= 10.7.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
Expand All @@ -162,10 +166,14 @@ PODS:
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMobileAdsMediationFacebook (6.12.0.0):
- FBAudienceNetwork (= 6.12.0)
- Google-Mobile-Ads-SDK (~> 9.8)
- GoogleSignIn (6.2.4):
- AppAuth (~> 1.5)
- GTMAppAuth (~> 1.3)
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
- GoogleUserMessagingPlatform (2.1.0)
- GoogleUtilities (7.11.5):
- GoogleUtilities/AppDelegateSwizzler (= 7.11.5)
- GoogleUtilities/Environment (= 7.11.5)
Expand Down Expand Up @@ -496,6 +504,10 @@ PODS:
- React-jsinspector (0.72.5)
- React-logger (0.72.5):
- glog
- react-native-ad-manager (2.0.8):
- Google-Mobile-Ads-SDK (~> 9.14.0)
- GoogleMobileAdsMediationFacebook
- React-Core
- react-native-biometrics (3.0.1):
- React-Core
- react-native-camera (4.2.1):
Expand Down Expand Up @@ -777,6 +789,7 @@ DEPENDENCIES:
- FlipperKit/FlipperKitUserDefaultsPlugin (= 0.182.0)
- FlipperKit/SKIOSNetworkPlugin (= 0.182.0)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- Google-Mobile-Ads-SDK
- GoogleUtilities
- OpenSSL-Universal (= 1.1.1100)
- Permission-Camera (from `../node_modules/react-native-permissions/ios/Camera`)
Expand All @@ -797,6 +810,7 @@ DEPENDENCIES:
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- react-native-ad-manager (from `../node_modules/react-native-ad-manager`)
- react-native-biometrics (from `../node_modules/react-native-biometrics`)
- react-native-camera (from `../node_modules/react-native-camera`)
- react-native-cloud-fs (from `../node_modules/react-native-cloud-fs`)
Expand Down Expand Up @@ -862,6 +876,7 @@ SPEC REPOS:
trunk:
- AppAuth
- CocoaAsyncSocket
- FBAudienceNetwork
- Firebase
- FirebaseAnalytics
- FirebaseAppCheck
Expand All @@ -880,9 +895,12 @@ SPEC REPOS:
- Flipper-PeerTalk
- FlipperKit
- fmt
- Google-Mobile-Ads-SDK
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleMobileAdsMediationFacebook
- GoogleSignIn
- GoogleUserMessagingPlatform
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
Expand Down Expand Up @@ -941,6 +959,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/jsinspector"
React-logger:
:path: "../node_modules/react-native/ReactCommon/logger"
react-native-ad-manager:
:path: "../node_modules/react-native-ad-manager"
react-native-biometrics:
:path: "../node_modules/react-native-biometrics"
react-native-camera:
Expand Down Expand Up @@ -1067,6 +1087,7 @@ SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBAudienceNetwork: e0fcc9091fced34910ed0b6da06f129db46ac9e6
FBLazyVector: 71803c074f6325f10b5ec891c443b6bbabef0ca7
FBReactNativeSpec: 448e08a759d29a96e15725ae532445bf4343567c
Firebase: 0219acf760880eeec8ce479895bd7767466d9f81
Expand All @@ -1088,9 +1109,12 @@ SPEC CHECKSUMS:
FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
Google-Mobile-Ads-SDK: 4fe6304b771f8467d29978cb790ec1e56e646946
GoogleAppMeasurement: fe17c92a32207dd5cdd4e8d742767f2da74857f6
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleMobileAdsMediationFacebook: 8c64904ac98459c8819cf07de3e15d5663b3d8ec
GoogleSignIn: 5651ce3a61e56ca864160e79b484cd9ed3f49b7a
GoogleUserMessagingPlatform: dce302b8f1b84d6e945812ee7a15c3f65a102cbf
GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084
GTMAppAuth: 0ff230db599948a9ad7470ca667337803b3fc4dd
GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2
Expand All @@ -1115,6 +1139,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: f32f98d8ddbdfd97dea286af90381a731d68c505
React-jsinspector: aef73cbd43b70675f572214d10fa438c89bf11ba
React-logger: 2e4aee3e11b3ec4fa6cfd8004610bbb3b8d6cca4
react-native-ad-manager: 4a1ef660def5fd3b2bf8c5036d273ffea2e9ba68
react-native-biometrics: 352e5a794bfffc46a0c86725ea7dc62deb085bdc
react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f
react-native-cloud-fs: cd21282c5cecaf285225e447dd7f3cf2f9015496
Expand Down Expand Up @@ -1182,6 +1207,6 @@ SPEC CHECKSUMS:
Yoga: 86fed2e4d425ee4c6eab3813ba1791101ee153c6
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: fd2faa0d2ada1afc5c766e490109280741af9c0b
PODFILE CHECKSUM: 2dab5185e96559b9937a3aa973d97d683616c2de

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
4 changes: 4 additions & 0 deletions ios/TempleWallet/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#import <React/RCTLinkingManager.h>

#import <GoogleMobileAds/GoogleMobileAds.h>


@implementation AppDelegate

Expand All @@ -31,6 +33,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
center.delegate = self;

[GADMobileAds.sharedInstance startWithCompletionHandler:nil];

return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Expand Down
Loading