From 7ad669f218f863743a06836133f511808afd7277 Mon Sep 17 00:00:00 2001 From: Daniel Sastre Date: Mon, 13 Jun 2016 15:47:45 +0200 Subject: [PATCH] Setting iOS and Android releases --- .gitignore | 1 + android/app/build.gradle | 9 +++++++++ iOS/mnm.xcodeproj/project.pbxproj | 9 +++++++++ iOS/mnm/Info.plist | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a0a04de..b0a03c8 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ project.xcworkspace .idea .gradle local.properties +*.keystore # node.js # diff --git a/android/app/build.gradle b/android/app/build.gradle index 6497c66..d2d2bb8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -90,6 +90,14 @@ android { abiFilters "armeabi-v7a", "x86" } } + signingConfigs { + release { + storeFile file(MNM_RELEASE_STORE_FILE) + storePassword MNM_RELEASE_STORE_PASSWORD + keyAlias MNM_RELEASE_KEY_ALIAS + keyPassword MNM_RELEASE_KEY_PASSWORD + } + } splits { abi { reset() @@ -102,6 +110,7 @@ android { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + signingConfig signingConfigs.release } } // applicationVariants are e.g. debug, release diff --git a/iOS/mnm.xcodeproj/project.pbxproj b/iOS/mnm.xcodeproj/project.pbxproj index db914b5..444fb28 100644 --- a/iOS/mnm.xcodeproj/project.pbxproj +++ b/iOS/mnm.xcodeproj/project.pbxproj @@ -411,6 +411,9 @@ CreatedOnToolsVersion = 6.2; TestTargetID = 13B07F861A680F5B00A75B9A; }; + 13B07F861A680F5B00A75B9A = { + DevelopmentTeam = 5RY4T725CY; + }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "mnm" */; @@ -685,6 +688,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer: Daniel Sastre (5NZR2B55GT)"; DEAD_CODE_STRIPPING = NO; HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -694,7 +698,9 @@ INFOPLIST_FILE = mnm/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = com.apsl.Meneame; PRODUCT_NAME = mnm; + PROVISIONING_PROFILE = "4b8183aa-6e3a-4ccb-8d70-91bf5212daa3"; }; name = Debug; }; @@ -702,6 +708,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; HEADER_SEARCH_PATHS = ( "$(inherited)", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, @@ -710,7 +717,9 @@ INFOPLIST_FILE = mnm/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = com.apsl.Meneame; PRODUCT_NAME = mnm; + PROVISIONING_PROFILE = "529355fa-ea42-425b-814c-41e169f6df66"; }; name = Release; }; diff --git a/iOS/mnm/Info.plist b/iOS/mnm/Info.plist index 33776f0..ce6548e 100644 --- a/iOS/mnm/Info.plist +++ b/iOS/mnm/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName