Breaking - Remove AdSupportIOS
Summary: We're focusing the React Native core on a set of high quality essential components and will be removing any modules that do not belong in that set. If you're currently using AdSuppportIOS, it will remain available in the react-native-deprecated-modules archive. There's also alternative implementations such as https://github.com/ptomasroos/react-native-idfa/. Reviewed By: hramos Differential Revision: D5388632 fbshipit-source-id: ce6204512b61242a0ba8c731836f3b3b7239b4b0
This commit is contained in:
parent
560bab17e1
commit
6ad5e2fa7c
|
@ -1,38 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*
|
|
||||||
* @providesModule AdSupportIOS
|
|
||||||
* @flow
|
|
||||||
*/
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var AdSupport = require('NativeModules').AdSupport;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* `AdSupport` provides access to the "advertising identifier". If you link this library
|
|
||||||
* in your project, you may need to justify your use for this identifier when submitting
|
|
||||||
* your application to the App Store.
|
|
||||||
*
|
|
||||||
* In order to use `AdSupport` in your project, you must link the `RCTAdSupport` library.
|
|
||||||
* In Xcode, you can manually add the `RCTAdSupport.m` and `RCTAdSupport.h` files from
|
|
||||||
* `node_modules/react-native/Libraries/AdSupport/` to the `Libraries/React/Base/` folder
|
|
||||||
* of your current project.
|
|
||||||
*
|
|
||||||
* You can refer to [Linking](docs/linking-libraries-ios.html) for help.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
getAdvertisingId: function(onSuccess: Function, onFailure: Function) {
|
|
||||||
AdSupport.getAdvertisingId(onSuccess, onFailure);
|
|
||||||
},
|
|
||||||
|
|
||||||
getAdvertisingTrackingEnabled: function(onSuccess: Function, onFailure: Function) {
|
|
||||||
AdSupport.getAdvertisingTrackingEnabled(onSuccess, onFailure);
|
|
||||||
},
|
|
||||||
};
|
|
|
@ -1,14 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import <React/RCTBridgeModule.h>
|
|
||||||
|
|
||||||
@interface RCTAdSupport : NSObject <RCTBridgeModule>
|
|
||||||
|
|
||||||
@end
|
|
|
@ -1,37 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#import "RCTAdSupport.h"
|
|
||||||
|
|
||||||
#import <AdSupport/ASIdentifierManager.h>
|
|
||||||
|
|
||||||
#import <React/RCTUtils.h>
|
|
||||||
|
|
||||||
@implementation RCTAdSupport
|
|
||||||
|
|
||||||
RCT_EXPORT_MODULE()
|
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(getAdvertisingId:(RCTResponseSenderBlock)callback
|
|
||||||
withErrorCallback:(RCTResponseErrorBlock)errorCallback)
|
|
||||||
{
|
|
||||||
NSUUID *advertisingIdentifier = [ASIdentifierManager sharedManager].advertisingIdentifier;
|
|
||||||
if (advertisingIdentifier) {
|
|
||||||
callback(@[advertisingIdentifier.UUIDString]);
|
|
||||||
} else {
|
|
||||||
errorCallback(RCTErrorWithMessage(@"Advertising identifier is unavailable."));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(getAdvertisingTrackingEnabled:(RCTResponseSenderBlock)callback
|
|
||||||
withErrorCallback:(__unused RCTResponseSenderBlock)errorCallback)
|
|
||||||
{
|
|
||||||
callback(@[@([ASIdentifierManager sharedManager].advertisingTrackingEnabled)]);
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
|
@ -1,257 +0,0 @@
|
||||||
// !$*UTF8*$!
|
|
||||||
{
|
|
||||||
archiveVersion = 1;
|
|
||||||
classes = {
|
|
||||||
};
|
|
||||||
objectVersion = 46;
|
|
||||||
objects = {
|
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
|
||||||
832C819C1AAF6E1A007FA2F7 /* RCTAdSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 832C819B1AAF6E1A007FA2F7 /* RCTAdSupport.m */; };
|
|
||||||
/* End PBXBuildFile section */
|
|
||||||
|
|
||||||
/* Begin PBXCopyFilesBuildPhase section */
|
|
||||||
832C817E1AAF6DEF007FA2F7 /* CopyFiles */ = {
|
|
||||||
isa = PBXCopyFilesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
dstPath = "include/$(PRODUCT_NAME)";
|
|
||||||
dstSubfolderSpec = 16;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
|
||||||
832C81801AAF6DEF007FA2F7 /* libRCTAdSupport.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTAdSupport.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
832C819A1AAF6E1A007FA2F7 /* RCTAdSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTAdSupport.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
|
||||||
832C819B1AAF6E1A007FA2F7 /* RCTAdSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAdSupport.m; sourceTree = "<group>"; };
|
|
||||||
/* End PBXFileReference section */
|
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
|
||||||
832C817D1AAF6DEF007FA2F7 /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXFrameworksBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
|
||||||
832C81771AAF6DEF007FA2F7 = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
832C819A1AAF6E1A007FA2F7 /* RCTAdSupport.h */,
|
|
||||||
832C819B1AAF6E1A007FA2F7 /* RCTAdSupport.m */,
|
|
||||||
832C81811AAF6DEF007FA2F7 /* Products */,
|
|
||||||
);
|
|
||||||
indentWidth = 2;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
tabWidth = 2;
|
|
||||||
};
|
|
||||||
832C81811AAF6DEF007FA2F7 /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
832C81801AAF6DEF007FA2F7 /* libRCTAdSupport.a */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* End PBXGroup section */
|
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
|
||||||
832C817F1AAF6DEF007FA2F7 /* RCTAdSupport */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 832C81941AAF6DF0007FA2F7 /* Build configuration list for PBXNativeTarget "RCTAdSupport" */;
|
|
||||||
buildPhases = (
|
|
||||||
832C817C1AAF6DEF007FA2F7 /* Sources */,
|
|
||||||
832C817D1AAF6DEF007FA2F7 /* Frameworks */,
|
|
||||||
832C817E1AAF6DEF007FA2F7 /* CopyFiles */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
);
|
|
||||||
name = RCTAdSupport;
|
|
||||||
productName = RCTAdSupport;
|
|
||||||
productReference = 832C81801AAF6DEF007FA2F7 /* libRCTAdSupport.a */;
|
|
||||||
productType = "com.apple.product-type.library.static";
|
|
||||||
};
|
|
||||||
/* End PBXNativeTarget section */
|
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
|
||||||
832C81781AAF6DEF007FA2F7 /* Project object */ = {
|
|
||||||
isa = PBXProject;
|
|
||||||
attributes = {
|
|
||||||
LastUpgradeCheck = 0620;
|
|
||||||
ORGANIZATIONNAME = Facebook;
|
|
||||||
TargetAttributes = {
|
|
||||||
832C817F1AAF6DEF007FA2F7 = {
|
|
||||||
CreatedOnToolsVersion = 6.2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
buildConfigurationList = 832C817B1AAF6DEF007FA2F7 /* Build configuration list for PBXProject "RCTAdSupport" */;
|
|
||||||
compatibilityVersion = "Xcode 3.2";
|
|
||||||
developmentRegion = English;
|
|
||||||
hasScannedForEncodings = 0;
|
|
||||||
knownRegions = (
|
|
||||||
en,
|
|
||||||
);
|
|
||||||
mainGroup = 832C81771AAF6DEF007FA2F7;
|
|
||||||
productRefGroup = 832C81811AAF6DEF007FA2F7 /* Products */;
|
|
||||||
projectDirPath = "";
|
|
||||||
projectRoot = "";
|
|
||||||
targets = (
|
|
||||||
832C817F1AAF6DEF007FA2F7 /* RCTAdSupport */,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/* End PBXProject section */
|
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
|
||||||
832C817C1AAF6DEF007FA2F7 /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
832C819C1AAF6E1A007FA2F7 /* RCTAdSupport.m in Sources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXSourcesBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
|
||||||
832C81921AAF6DF0007FA2F7 /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
|
||||||
CLANG_ENABLE_MODULES = YES;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
||||||
"DEBUG=1",
|
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
||||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
|
||||||
GCC_WARN_SHADOW = YES;
|
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
WARNING_CFLAGS = (
|
|
||||||
"-Werror",
|
|
||||||
"-Wall",
|
|
||||||
);
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
832C81931AAF6DF0007FA2F7 /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
|
||||||
CLANG_ENABLE_MODULES = YES;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
||||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
|
||||||
GCC_WARN_SHADOW = YES;
|
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
VALIDATE_PRODUCT = YES;
|
|
||||||
WARNING_CFLAGS = (
|
|
||||||
"-Werror",
|
|
||||||
"-Wall",
|
|
||||||
);
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
832C81951AAF6DF0007FA2F7 /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CLANG_STATIC_ANALYZER_MODE = deep;
|
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
RUN_CLANG_STATIC_ANALYZER = YES;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
832C81961AAF6DF0007FA2F7 /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CLANG_STATIC_ANALYZER_MODE = deep;
|
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
/* End XCBuildConfiguration section */
|
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
|
||||||
832C817B1AAF6DEF007FA2F7 /* Build configuration list for PBXProject "RCTAdSupport" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
832C81921AAF6DF0007FA2F7 /* Debug */,
|
|
||||||
832C81931AAF6DF0007FA2F7 /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
832C81941AAF6DF0007FA2F7 /* Build configuration list for PBXNativeTarget "RCTAdSupport" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
832C81951AAF6DF0007FA2F7 /* Debug */,
|
|
||||||
832C81961AAF6DF0007FA2F7 /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
/* End XCConfigurationList section */
|
|
||||||
};
|
|
||||||
rootObject = 832C81781AAF6DEF007FA2F7 /* Project object */;
|
|
||||||
}
|
|
|
@ -62,7 +62,6 @@ const ReactNative = {
|
||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
get ActionSheetIOS() { return require('ActionSheetIOS'); },
|
get ActionSheetIOS() { return require('ActionSheetIOS'); },
|
||||||
get AdSupportIOS() { return require('AdSupportIOS'); },
|
|
||||||
get Alert() { return require('Alert'); },
|
get Alert() { return require('Alert'); },
|
||||||
get AlertIOS() { return require('AlertIOS'); },
|
get AlertIOS() { return require('AlertIOS'); },
|
||||||
get Animated() { return require('Animated'); },
|
get Animated() { return require('Animated'); },
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
13417FE91AA91432003F314A /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FE81AA91428003F314A /* libRCTImage.a */; };
|
13417FE91AA91432003F314A /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FE81AA91428003F314A /* libRCTImage.a */; };
|
||||||
134180011AA9153C003F314A /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FEF1AA914B8003F314A /* libRCTText.a */; };
|
134180011AA9153C003F314A /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FEF1AA914B8003F314A /* libRCTText.a */; };
|
||||||
1341802C1AA9178B003F314A /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1341802B1AA91779003F314A /* libRCTNetwork.a */; };
|
1341802C1AA9178B003F314A /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1341802B1AA91779003F314A /* libRCTNetwork.a */; };
|
||||||
134454601AAFCABD003F0779 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1344545A1AAFCAAE003F0779 /* libRCTAdSupport.a */; };
|
|
||||||
134A8A2A1AACED7A00945AAE /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134A8A251AACED6A00945AAE /* libRCTGeolocation.a */; };
|
134A8A2A1AACED7A00945AAE /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134A8A251AACED6A00945AAE /* libRCTGeolocation.a */; };
|
||||||
134CB92A1C85A38800265FA6 /* RCTModuleInitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 134CB9291C85A38800265FA6 /* RCTModuleInitTests.m */; };
|
134CB92A1C85A38800265FA6 /* RCTModuleInitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 134CB9291C85A38800265FA6 /* RCTModuleInitTests.m */; };
|
||||||
138D6A181B53CD440074A87E /* RCTShadowViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 138D6A161B53CD440074A87E /* RCTShadowViewTests.m */; };
|
138D6A181B53CD440074A87E /* RCTShadowViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 138D6A161B53CD440074A87E /* RCTShadowViewTests.m */; };
|
||||||
|
@ -40,7 +39,6 @@
|
||||||
14B6DA821B276C5900BF4DD1 /* libRCTTest.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58005BEE1ABA80530062E044 /* libRCTTest.a */; };
|
14B6DA821B276C5900BF4DD1 /* libRCTTest.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58005BEE1ABA80530062E044 /* libRCTTest.a */; };
|
||||||
14D6D7111B220EB3001FB087 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 14D6D7101B220EB3001FB087 /* libOCMock.a */; };
|
14D6D7111B220EB3001FB087 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 14D6D7101B220EB3001FB087 /* libOCMock.a */; };
|
||||||
14D6D71E1B2222EF001FB087 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 147CED4B1AB34F8C00DA3E4C /* libRCTActionSheet.a */; };
|
14D6D71E1B2222EF001FB087 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 147CED4B1AB34F8C00DA3E4C /* libRCTActionSheet.a */; };
|
||||||
14D6D71F1B2222EF001FB087 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1344545A1AAFCAAE003F0779 /* libRCTAdSupport.a */; };
|
|
||||||
14D6D7201B2222EF001FB087 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134A8A251AACED6A00945AAE /* libRCTGeolocation.a */; };
|
14D6D7201B2222EF001FB087 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134A8A251AACED6A00945AAE /* libRCTGeolocation.a */; };
|
||||||
14D6D7211B2222EF001FB087 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FE81AA91428003F314A /* libRCTImage.a */; };
|
14D6D7211B2222EF001FB087 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FE81AA91428003F314A /* libRCTImage.a */; };
|
||||||
14D6D7221B2222EF001FB087 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1341802B1AA91779003F314A /* libRCTNetwork.a */; };
|
14D6D7221B2222EF001FB087 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1341802B1AA91779003F314A /* libRCTNetwork.a */; };
|
||||||
|
@ -149,13 +147,6 @@
|
||||||
remoteGlobalIDString = 58B511DB1A9E6C8500147676;
|
remoteGlobalIDString = 58B511DB1A9E6C8500147676;
|
||||||
remoteInfo = RCTNetwork;
|
remoteInfo = RCTNetwork;
|
||||||
};
|
};
|
||||||
134454591AAFCAAE003F0779 /* PBXContainerItemProxy */ = {
|
|
||||||
isa = PBXContainerItemProxy;
|
|
||||||
containerPortal = 134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */;
|
|
||||||
proxyType = 2;
|
|
||||||
remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
|
|
||||||
remoteInfo = RCTAdSupport;
|
|
||||||
};
|
|
||||||
134A8A241AACED6A00945AAE /* PBXContainerItemProxy */ = {
|
134A8A241AACED6A00945AAE /* PBXContainerItemProxy */ = {
|
||||||
isa = PBXContainerItemProxy;
|
isa = PBXContainerItemProxy;
|
||||||
containerPortal = 134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */;
|
containerPortal = 134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */;
|
||||||
|
@ -439,7 +430,6 @@
|
||||||
13417FE31AA91428003F314A /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../Libraries/Image/RCTImage.xcodeproj; sourceTree = "<group>"; };
|
13417FE31AA91428003F314A /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../Libraries/Image/RCTImage.xcodeproj; sourceTree = "<group>"; };
|
||||||
13417FEA1AA914B8003F314A /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../Libraries/Text/RCTText.xcodeproj; sourceTree = "<group>"; };
|
13417FEA1AA914B8003F314A /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../Libraries/Text/RCTText.xcodeproj; sourceTree = "<group>"; };
|
||||||
134180261AA91779003F314A /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../Libraries/Network/RCTNetwork.xcodeproj; sourceTree = "<group>"; };
|
134180261AA91779003F314A /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../Libraries/Network/RCTNetwork.xcodeproj; sourceTree = "<group>"; };
|
||||||
134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = ../Libraries/AdSupport/RCTAdSupport.xcodeproj; sourceTree = "<group>"; };
|
|
||||||
134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = "<group>"; };
|
134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = "<group>"; };
|
||||||
134CB9291C85A38800265FA6 /* RCTModuleInitTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModuleInitTests.m; sourceTree = "<group>"; };
|
134CB9291C85A38800265FA6 /* RCTModuleInitTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModuleInitTests.m; sourceTree = "<group>"; };
|
||||||
138D6A161B53CD440074A87E /* RCTShadowViewTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowViewTests.m; sourceTree = "<group>"; };
|
138D6A161B53CD440074A87E /* RCTShadowViewTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowViewTests.m; sourceTree = "<group>"; };
|
||||||
|
@ -524,7 +514,6 @@
|
||||||
files = (
|
files = (
|
||||||
192F69DA1E8240E2008692C7 /* libRCTAnimation.a in Frameworks */,
|
192F69DA1E8240E2008692C7 /* libRCTAnimation.a in Frameworks */,
|
||||||
14D6D71E1B2222EF001FB087 /* libRCTActionSheet.a in Frameworks */,
|
14D6D71E1B2222EF001FB087 /* libRCTActionSheet.a in Frameworks */,
|
||||||
14D6D71F1B2222EF001FB087 /* libRCTAdSupport.a in Frameworks */,
|
|
||||||
14D6D7201B2222EF001FB087 /* libRCTGeolocation.a in Frameworks */,
|
14D6D7201B2222EF001FB087 /* libRCTGeolocation.a in Frameworks */,
|
||||||
14D6D7211B2222EF001FB087 /* libRCTImage.a in Frameworks */,
|
14D6D7211B2222EF001FB087 /* libRCTImage.a in Frameworks */,
|
||||||
14D6D7221B2222EF001FB087 /* libRCTNetwork.a in Frameworks */,
|
14D6D7221B2222EF001FB087 /* libRCTNetwork.a in Frameworks */,
|
||||||
|
@ -547,7 +536,6 @@
|
||||||
52C11BBB1EEACA7100C1A058 /* libRCTBlob.a in Frameworks */,
|
52C11BBB1EEACA7100C1A058 /* libRCTBlob.a in Frameworks */,
|
||||||
2D66FF8F1ECA406D00F0A767 /* libART.a in Frameworks */,
|
2D66FF8F1ECA406D00F0A767 /* libART.a in Frameworks */,
|
||||||
147CED4C1AB3532B00DA3E4C /* libRCTActionSheet.a in Frameworks */,
|
147CED4C1AB3532B00DA3E4C /* libRCTActionSheet.a in Frameworks */,
|
||||||
134454601AAFCABD003F0779 /* libRCTAdSupport.a in Frameworks */,
|
|
||||||
13E501F11D07A84A005F35D8 /* libRCTAnimation.a in Frameworks */,
|
13E501F11D07A84A005F35D8 /* libRCTAnimation.a in Frameworks */,
|
||||||
138DEE241B9EDFB6007F4EA5 /* libRCTCameraRoll.a in Frameworks */,
|
138DEE241B9EDFB6007F4EA5 /* libRCTCameraRoll.a in Frameworks */,
|
||||||
134A8A2A1AACED7A00945AAE /* libRCTGeolocation.a in Frameworks */,
|
134A8A2A1AACED7A00945AAE /* libRCTGeolocation.a in Frameworks */,
|
||||||
|
@ -621,7 +609,6 @@
|
||||||
2D66FF5F1ECA405900F0A767 /* ART.xcodeproj */,
|
2D66FF5F1ECA405900F0A767 /* ART.xcodeproj */,
|
||||||
14AADEFF1AC3DB95002390C9 /* React.xcodeproj */,
|
14AADEFF1AC3DB95002390C9 /* React.xcodeproj */,
|
||||||
14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */,
|
14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */,
|
||||||
134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */,
|
|
||||||
13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */,
|
13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */,
|
||||||
138DEE021B9EDDDB007F4EA5 /* RCTCameraRoll.xcodeproj */,
|
138DEE021B9EDDDB007F4EA5 /* RCTCameraRoll.xcodeproj */,
|
||||||
134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */,
|
134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */,
|
||||||
|
@ -674,14 +661,6 @@
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
134454561AAFCAAE003F0779 /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
1344545A1AAFCAAE003F0779 /* libRCTAdSupport.a */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
134A8A211AACED6A00945AAE /* Products */ = {
|
134A8A211AACED6A00945AAE /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
@ -1138,10 +1117,6 @@
|
||||||
ProductGroup = 147CED471AB34F8C00DA3E4C /* Products */;
|
ProductGroup = 147CED471AB34F8C00DA3E4C /* Products */;
|
||||||
ProjectRef = 14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */;
|
ProjectRef = 14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */;
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ProductGroup = 134454561AAFCAAE003F0779 /* Products */;
|
|
||||||
ProjectRef = 134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */;
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
ProductGroup = 13E5019D1D07A502005F35D8 /* Products */;
|
ProductGroup = 13E5019D1D07A502005F35D8 /* Products */;
|
||||||
ProjectRef = 13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */;
|
ProjectRef = 13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */;
|
||||||
|
@ -1234,13 +1209,6 @@
|
||||||
remoteRef = 1341802A1AA91779003F314A /* PBXContainerItemProxy */;
|
remoteRef = 1341802A1AA91779003F314A /* PBXContainerItemProxy */;
|
||||||
sourceTree = BUILT_PRODUCTS_DIR;
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
};
|
};
|
||||||
1344545A1AAFCAAE003F0779 /* libRCTAdSupport.a */ = {
|
|
||||||
isa = PBXReferenceProxy;
|
|
||||||
fileType = archive.ar;
|
|
||||||
path = libRCTAdSupport.a;
|
|
||||||
remoteRef = 134454591AAFCAAE003F0779 /* PBXContainerItemProxy */;
|
|
||||||
sourceTree = BUILT_PRODUCTS_DIR;
|
|
||||||
};
|
|
||||||
134A8A251AACED6A00945AAE /* libRCTGeolocation.a */ = {
|
134A8A251AACED6A00945AAE /* libRCTGeolocation.a */ = {
|
||||||
isa = PBXReferenceProxy;
|
isa = PBXReferenceProxy;
|
||||||
fileType = archive.ar;
|
fileType = archive.ar;
|
||||||
|
|
|
@ -1,98 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*
|
|
||||||
* @flow
|
|
||||||
* @providesModule AdSupportIOSExample
|
|
||||||
*/
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var React = require('react');
|
|
||||||
var ReactNative = require('react-native');
|
|
||||||
var {
|
|
||||||
AdSupportIOS,
|
|
||||||
StyleSheet,
|
|
||||||
Text,
|
|
||||||
View,
|
|
||||||
} = ReactNative;
|
|
||||||
|
|
||||||
exports.framework = 'React';
|
|
||||||
exports.title = 'Advertising ID';
|
|
||||||
exports.description = 'Example of using the ad support API.';
|
|
||||||
|
|
||||||
exports.examples = [
|
|
||||||
{
|
|
||||||
title: 'Ad Support IOS',
|
|
||||||
render: function(): React.Element<any> {
|
|
||||||
return <AdSupportIOSExample />;
|
|
||||||
},
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
class AdSupportIOSExample extends React.Component {
|
|
||||||
state = {
|
|
||||||
deviceID: 'No IDFA yet',
|
|
||||||
hasAdvertiserTracking: 'unset',
|
|
||||||
};
|
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
AdSupportIOS.getAdvertisingId(
|
|
||||||
this._onDeviceIDSuccess,
|
|
||||||
this._onDeviceIDFailure
|
|
||||||
);
|
|
||||||
|
|
||||||
AdSupportIOS.getAdvertisingTrackingEnabled(
|
|
||||||
this._onHasTrackingSuccess,
|
|
||||||
this._onHasTrackingFailure
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
_onHasTrackingSuccess = (hasTracking) => {
|
|
||||||
this.setState({
|
|
||||||
'hasAdvertiserTracking': hasTracking,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
_onHasTrackingFailure = (e) => {
|
|
||||||
this.setState({
|
|
||||||
'hasAdvertiserTracking': 'Error!',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
_onDeviceIDSuccess = (deviceID) => {
|
|
||||||
this.setState({
|
|
||||||
'deviceID': deviceID,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
_onDeviceIDFailure = (e) => {
|
|
||||||
this.setState({
|
|
||||||
'deviceID': 'Error!',
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<View>
|
|
||||||
<Text>
|
|
||||||
<Text style={styles.title}>Advertising ID: </Text>
|
|
||||||
{JSON.stringify(this.state.deviceID)}
|
|
||||||
</Text>
|
|
||||||
<Text>
|
|
||||||
<Text style={styles.title}>Has Advertiser Tracking: </Text>
|
|
||||||
{JSON.stringify(this.state.hasAdvertiserTracking)}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var styles = StyleSheet.create({
|
|
||||||
title: {
|
|
||||||
fontWeight: '500',
|
|
||||||
},
|
|
||||||
});
|
|
|
@ -201,11 +201,6 @@ const APIExamples: Array<RNTesterExample> = [
|
||||||
module: require('./ActionSheetIOSExample'),
|
module: require('./ActionSheetIOSExample'),
|
||||||
supportsTVOS: true,
|
supportsTVOS: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 'AdSupportIOSExample',
|
|
||||||
module: require('./AdSupportIOSExample'),
|
|
||||||
supportsTVOS: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 'AlertExample',
|
key: 'AlertExample',
|
||||||
module: require('./AlertExample').AlertExample,
|
module: require('./AlertExample').AlertExample,
|
||||||
|
|
|
@ -97,10 +97,6 @@ Many of the following components provide wrappers for commonly used UIKit classe
|
||||||
<h3><a href="docs/actionsheetios.html">ActionSheetIOS</a></h3>
|
<h3><a href="docs/actionsheetios.html">ActionSheetIOS</a></h3>
|
||||||
<p>API to display an iOS action sheet or share sheet.</p>
|
<p>API to display an iOS action sheet or share sheet.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="component">
|
|
||||||
<h3><a href="docs/adsupportios.html">AdSupportIOS</a></h3>
|
|
||||||
<p>API to access the "advertising identifier" on iOS.</p>
|
|
||||||
</div>
|
|
||||||
<div class="component">
|
<div class="component">
|
||||||
<h3><a href="docs/alertios.html">AlertIOS</a></h3>
|
<h3><a href="docs/alertios.html">AlertIOS</a></h3>
|
||||||
<p>Create an iOS alert dialog with a message or create a prompt for user input.</p>
|
<p>Create an iOS alert dialog with a message or create a prompt for user input.</p>
|
||||||
|
|
|
@ -51,7 +51,6 @@ const components = [
|
||||||
const apis = [
|
const apis = [
|
||||||
'../Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js',
|
'../Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js',
|
||||||
'../Libraries/ActionSheetIOS/ActionSheetIOS.js',
|
'../Libraries/ActionSheetIOS/ActionSheetIOS.js',
|
||||||
'../Libraries/AdSupport/AdSupportIOS.js',
|
|
||||||
'../Libraries/Alert/Alert.js',
|
'../Libraries/Alert/Alert.js',
|
||||||
'../Libraries/Alert/AlertIOS.js',
|
'../Libraries/Alert/AlertIOS.js',
|
||||||
'../Libraries/Animated/src/AnimatedImplementation.js',
|
'../Libraries/Animated/src/AnimatedImplementation.js',
|
||||||
|
|
Loading…
Reference in New Issue