Adds ios_static_framework build rule for exporting NearbyConnections.framework in /releasese/new/ folder.

PiperOrigin-RevId: 409540517
This commit is contained in:
edwinwu
2021-11-12 16:56:21 -08:00
committed by Copybara-Service
parent ab15827a7c
commit c42ec93883
2 changed files with 21 additions and 1 deletions
+21
View File
@@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//tools/build_defs/apple:ios.bzl", "ios_static_framework")
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
@@ -49,3 +51,22 @@ objc_library(
"//third_party/objective_c/google_toolbox_for_mac:GTM_Logger",
],
)
MIN_IOS_VERSION = "12.0"
HDRS_POD = [
"Source/GNCAdvertiser.h",
"Source/GNCConnection.h",
"Source/GNCDiscoverer.h",
"Source/GNCPayload.h",
]
ios_static_framework(
name = "NearbyConnections_framework",
hdrs = HDRS_POD,
bundle_name = "NearbyConnections",
minimum_os_version = MIN_IOS_VERSION,
deps = [
":Connections",
],
)
@@ -13,7 +13,6 @@
// limitations under the License.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "third_party/nearby_connections/cpp/platform/impl/ios/Source/Mediums/GNCMConnection.h"