-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
13 lines (11 loc) · 1 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def can_build(env, plat):
return plat=="android" or plat=="iphone"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_dependency("implementation ('com.google.android.gms:play-services-ads:16.0.0') { exclude group: 'com.android.support' }")
env.android_add_java_dir("android")
env.android_add_to_manifest("android/AndroidManifestChunk.xml")
env.disable_module()
if env['platform'] == "iphone":
env.Append(FRAMEWORKPATH=['modules/admob/ios/lib'])
env.Append(LINKFLAGS=['-ObjC', '-framework','AdSupport', '-framework','CoreTelephony', '-framework','EventKit', '-framework','EventKitUI', '-framework','MessageUI', '-framework','StoreKit', '-framework','SafariServices', '-framework','CoreBluetooth', '-framework','AssetsLibrary', '-framework','CoreData', '-framework','CoreLocation', '-framework','CoreText', '-framework','ImageIO', '-framework', 'GLKit', '-framework','CoreVideo', '-framework', 'CFNetwork', '-framework', 'MobileCoreServices', '-framework', 'GoogleMobileAds'])