2 "name": "MNCAnalytics",
4 "summary": "This is POD version of MNC Analytics",
5 "description": "TODO: Add long description of the pod here",
6 "homepage": "https://repo.mncinnovation.id/dac/video-analytics/sdk/mobile-sdk/source/ios/pod/MNCAnalytics",
12 "fepriyadihrp": "fepriyadi.harahap@mncgroup.com"
15 "git": "https://repo.mncinnovation.id/dac/video-analytics/sdk/mobile-sdk/source/ios/pod/MNCAnalytics.git",
21 "requires_arc": false,
22 "static_framework": true,
31 "MNCAnalytics/include/**/*.h",
32 "MNCAnalytics/public/*.h"
34 "public_header_files": "MNCAnalytics/public/*.h",
35 "private_header_files": "MNCAnalytics/include/*.h",
41 "prepare_command": "XCODEPROJECT=MNCAnalytics\nXCODETARGET=MNCAnalytics\nBUILDDIR=build\nBUILDROOT=${BUILDDIR}\nCONFIG=Release\nOUTDIR=${BUILDDIR}/${CONFIG}\n\nif [ -d \"MNCAnalytics/lib\" ]; then\n rm -rf \"MNCAnalytics/lib\"\nfi\n\nif [ ! -d \"MNCAnalytics/lib\" ]; then\n echo \"fetching j2objc lib\"\n mkdir MNCAnalytics/lib\n\n # use this lib locally to test sdk func. only\n # cp /Users/fep/Documents/SDK/PODS/j2objc/j2objc_lib/lib/libjre_emul.a MNCAnalytics/lib\n # cp /Users/fep/Documents/SDK/PODS/j2objc/j2objc_lib/lib/libjson.a MNCAnalytics/lib\n\n # ready to download j2objc lib and publish after test locally successful\n curl -OL https://github.com/fepriyadi/MNCAnalytics/releases/download/1.2.3/lib.zip\n unzip -d MNCAnalytics/lib lib.zip\n rm lib.zip\nfi\n\necho \"Creating framework\"\n \nif [ -d \"${BUILDDIR}\" ]; then\n rm -rf \"${BUILDDIR}\"\nfi\n\nmkdir -p \"${OUTDIR}\"\n\nif [ -f \"${OUTDIR}/lib${XCODEPROJECT}.a\" ]; then\n rm \"${OUTDIR}/lib${XCODEPROJECT}.a\"\nfi\n\nif [ -f \"MNCAnalytics/lib\" ]; then\n rm \"MNCAnalytics/lib/*.a\"\nfi\n\necho \"=======> Building devices...\"\nxcodebuild -project ${XCODEPROJECT}.xcodeproj -target ${XCODETARGET} ONLY_ACTIVE_ARCH=YES -configuration ${CONFIG} -sdk iphoneos \nBUILD_DIR=\"${BUILDDIR}\" BUILD_ROOT=\"${BUILDROOT}\" BITCODE_GENERATION_MODE=bitcode\nif [ $? -gt 0 ]; then\n echo \"ERROR! when try to build...\"\n exit 1\nfi\n\necho \"=======> Building x86_64...\"\nxcodebuild -project ${XCODEPROJECT}.xcodeproj -target ${XCODETARGET} -configuration ${CONFIG} -sdk iphonesimulator -arch x86_64 \nBUILD_DIR=\"${BUILDDIR}\" BUILD_ROOT=\"${BUILDROOT}\" BITCODE_GENERATION_MODE=bitcode\nif [ $? -gt 0 ]; then\n echo \"ERROR! when try to build...\"\n exit 1\nfi\n\necho \"=======> Building all...\"\nlipo -create -output \"${OUTDIR}/lib${XCODEPROJECT}.a\" \"${BUILDDIR}/${CONFIG}-iphoneos/lib${XCODEPROJECT}.a\" \"${BUILDDIR}/${CONFIG}-iphonesimulator/lib${XCODEPROJECT}.a\"\nif [ $? -gt 0 ]; then\n echo \"ERROR! when try to build...\"\n exit 1\nfi\n\necho \"=======> Copying headers...\"\n\ncp \"j2objc/objc/TTask.h\" \"MNCAnalytics/public/\"\ncp \"j2objc/objc/Core.h\" \"MNCAnalytics/public/\"\ncp \"j2objc/objc/MncDigitalAnalytics.h\" \"MNCAnalytics/public/\"\n\ncp \"${OUTDIR}/lib${XCODEPROJECT}.a\" \"MNCAnalytics/lib/\"\n\necho \"=======> Done\"",
42 "vendored_libraries": "MNCAnalytics/lib/*.a",
44 "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64",
45 "ALWAYS_SEARCH_USER_PATHS": "NO",
46 "ONLY_ACTIVE_ARCH": "NO",
47 "OTHER_LDFLAGS": "$(inherited) -liconv -ljson"
49 "pod_target_xcconfig": {
50 "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64"
52 "user_target_xcconfig": {
53 "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64",
54 "USER_HEADER_SEARCH_PATHS": "$(inherited) \"${PODS_ROOT}/Headers/Private/MNCAnalytics\"",
55 "SWIFT_OBJC_BRIDGING_HEADER": "${PODS_ROOT}/Headers/Public/MNCAnalytics/MncDigitalAnalytics.h"