From 0489d36d2c5a0cb43acbbb3c513705b09ce79394 Mon Sep 17 00:00:00 2001 From: Dominik Cubelic Date: Fri, 11 Sep 2020 15:21:20 +0200 Subject: [PATCH] update app id --- SampleFiles/index.js | 8 ++++---- initReactNativeSampleApp.sh | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/SampleFiles/index.js b/SampleFiles/index.js index 4f2090e..5e07842 100644 --- a/SampleFiles/index.js +++ b/SampleFiles/index.js @@ -17,10 +17,10 @@ import { } from 'react-native'; const licenseKey = Platform.select({ - // iOS license key for applicationID: org.reactjs.native.example.BlinkIDReactNative - ios: 'sRwAAAEtb3JnLnJlYWN0anMubmF0aXZlLmV4YW1wbGUuQmxpbmtJRFJlYWN0TmF0aXZlt67qu61k2vMma/ITqdz0Hw5VrGUGzgJ2tHeM9IxCzR0zl3+SIAzPW69yDvGXRrQlkT7ByFgTINRtu2FoNbYOrUCLxq37Y3npcDj4yaElrr8rM0b2q+FOnmD9gu4wCoMjKV5CJ14JJsmwP+naiIcVqmuv+tQ8hWgAKM8L616owzG1UYp+h2ZdTOMWSX/AkwDXguj8z5zx/iE10KE2iTrcU1Iu5AANV02VHUmeAHoOOTloMJJuBsBbwWFgS+pke73YmTfnmbUxCQ==', - // android license key for applicationID: com.blinkidreactnative - android: 'sRwAAAAWY29tLmJsaW5raWRyZWFjdG5hdGl2ZYouOuuUS2CbdVuoF2lsSqeObkzyko/0kah+gpMcK/G18fQtB1vAoiuyDojRyY6xOLlJYAFwGuepBKDJPqdsQh11RxKSLANRLDH0lWJzgo3EKRae9NXAoKPUJ0nqUy7uIP8eAVkFelNILVRy3pkWJjY5o/vRLn7sf2cNsdmt/ZvzUw1545pLHgT7LqOxSRg+81p0/koApvVMnJ+yI9QJgHNwa9AFNDOYEKCiow/J1dJjx+yGL1crnvfaOLv7ndLUisX496v+w9k=' + // iOS license key for applicationID: com.microblink.sample + ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP+dpSuS/38LVOOaNNacdy5kvOjARlS+ZYUJequcG+Hqo27AnV1Dsb+chCYtaeZSdPijWBCYJ51tohlnyZoEVBy/6a1OH/bRSNy8cPbh6GEjWK5XsLOJGggpwhNMoId3hXJpEJisHYvwiArC5tvWBUZzgr5rmupFObXTd67RaHytuIBa1ENEiLqT9RRHho05ftVuEcfE0Qk/eKv1vbL+LyowK80VS2pZNoOCd/g8K7iHW5XhGdeCqu0C7izVQ+kROfheTZf8I', + // android license key for applicationID: com.microblink.sample + android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdf5ZkGlTu9W3OPtHZuoNGKKjVJCtgeTniIreKYHlm+vSvgCWTIaeV3b/8PTI1MaUdu55ajYYbb1bNxTKMsPqTbYuXP3HyEjcZqoPC6g4fGVkCtqhecMtUG9FOSsPTWEXIrF8nHVYFmHZcMcasXB6h5u5YwXeIEh1IxrFkq3DFizEuuTWPsRs5iXdxPtTFUFR+1k2J64h88wGuTYLW696bYgSqBmH5p0v36roZC+U+VcKfmWm9Y5+mJvoHyi3fRn/DtK9lMkK' }) var renderIf = function(condition, content) { diff --git a/initReactNativeSampleApp.sh b/initReactNativeSampleApp.sh index 182f3da..47d7342 100755 --- a/initReactNativeSampleApp.sh +++ b/initReactNativeSampleApp.sh @@ -36,6 +36,13 @@ pushd android # patch the build.gradle to add "maven { url https://maven.microblink.com }"" repository perl -i~ -pe "BEGIN{$/ = undef;} s/maven \{/maven \{ url 'https:\\/\\/maven.microblink.com' }\n maven {/" build.gradle +# change package name +mkdir -p app/src/main/java/com/microblink/sample +mv app/src/main/java/com/sampleapp/* app/src/main/java/com/microblink/sample/ +rmdir app/src/main/java/com/sampleapp +grep -rl com.sampleapp . | xargs sed -i '' s/com.sampleapp/com.microblink.sample/g +./gradlew clean + popd # enter into ios project folder @@ -55,6 +62,9 @@ if [ "$IS_LOCAL_BUILD" = true ]; then #popd fi +# change bundle id +sed -i '' s/\$\(PRODUCT_BUNDLE_IDENTIFIER\)/com.microblink.sample/g SampleApp/Info.plist + # go to react native root project popd