Adds circle-ci script

This commit is contained in:
Diego Mello 2017-09-25 10:15:28 -03:00 committed by Rodrigo Nascimento
parent e0777a969e
commit 5435d4a102
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
12 changed files with 93 additions and 22 deletions

View File

@ -45,12 +45,12 @@ android_library(
android_build_config(
name = "build_config",
package = "com.rocketchatrn",
package = "chat.rocket.reactnative",
)
android_resource(
name = "res",
package = "com.rocketchatrn",
package = "chat.rocket.reactnative",
res = "src/main/res",
)

View File

@ -94,7 +94,7 @@ android {
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.rocketchatrn"
applicationId "chat.rocket.reactnative"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
@ -105,13 +105,13 @@ android {
}
signingConfigs {
release {
if (project.hasProperty('ROCKETCHAT_RN_RELEASE_STORE_FILE')) {
storeFile file(ROCKETCHAT_RN_RELEASE_STORE_FILE)
storePassword ROCKETCHAT_RN_RELEASE_STORE_PASSWORD
keyAlias ROCKETCHAT_RN_RELEASE_KEY_ALIAS
keyPassword ROCKETCHAT_RN_RELEASE_KEY_PASSWORD
}
}
if (project.hasProperty('KEYSTORE')) {
storeFile file(KEYSTORE)
storePassword KEYSTORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
}
}
}
splits {
abi {

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rocketchatrn"
package="chat.rocket.reactnative"
android:versionCode="1"
android:versionName="1.0">

View File

@ -1,4 +1,4 @@
package com.rocketchatrn;
package chat.rocket.reactnative;
import com.facebook.react.ReactActivity;

View File

@ -1,4 +1,4 @@
package com.rocketchatrn;
package chat.rocket.reactnative;
import android.app.Application;

55
circle.yml Normal file
View File

@ -0,0 +1,55 @@
machine:
node:
version: 8
environment:
YARN_VERSION: 0.18.1
# Needed for Android SDK installation bash script (see below)
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
# Install YARN
- node -v
- echo $KEYSTORE_BASE64 | base64 --decode > ./android/app/rocketchat-rn.keystore
- echo -e "KEYSTORE=$KEYSTORE" >> ./android/gradle.properties
- echo -e "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> ./android/gradle.properties
- echo -e "KEY_ALIAS=$KEY_ALIAS" >> ./android/gradle.properties
- echo -e "KEY_PASSWORD=$KEYSTORE_PASSWORD" >> ./android/gradle.properties
override:
# The Android Gradle build will need the Android signing keystore keys setup
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.3,build-tools-25.0.2,build-tools-26.0.1,android-23,extra-google-m2repository,extra-google-google_play_services,extra-android-m2repository
- echo y | $ANDROID_HOME/tools/bin/sdkmanager --update
- echo y | $ANDROID_HOME/tools/bin/sdkmanager --licenses
# Install node modules
- yarn
# - ./node_modules/.bin/react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
- cd android && ./gradlew assembleRelease
- mv ./android/app/build/outputs/ $CIRCLE_ARTIFACTS
cache_directories:
# Let's speed up the next build by cacheing installed dependencies
- ~/.yarn
- ~/.cache/yarn
- vendor/bundle
- node_modules
- ~/Library/Caches/CocoaPods
- /usr/local/android-sdk-linux/platforms/android-25
- /usr/local/android-sdk-linux/build-tools/25.0.0
- /usr/local/android-sdk-linux/extras/android/m2repository
deployment:
production: # just a label; label names are completely up to you
branch: master
commands:
- ./gradlew assembleRelease
-Dorg.gradle.project.track=production
beta:
branch: develop
commands:
- ./gradlew assembleRelease
-Dorg.gradle.project.track=beta
alpha:
branch: circle-ci
commands:
- android/gradlew publishApkProductionRelease

View File

@ -5,6 +5,7 @@
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
@ -672,6 +673,7 @@
6533FB90166345D29F1B91C0 /* libRNFetchBlob.a */,
5A0EEFAF8AB14F5B9E796CDD /* libRNVectorIcons.a */,
DA50CE47374C4C35BE6D9D58 /* libRNSVG.a */,
3B696712EE2345A59F007A88 /* libRNImagePicker.a */,
);
name = "Recovered References";
sourceTree = "<group>";
@ -1397,7 +1399,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = chat.rocket.reactnative;
PRODUCT_BUNDLE_IDENTIFIER = "chat.rocket.reactnative-chat.rocket.reactnative";
PRODUCT_NAME = RocketChatRN;
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -1430,7 +1432,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = chat.rocket.reactnative;
PRODUCT_BUNDLE_IDENTIFIER = "chat.rocket.reactnative-chat.rocket.reactnative";
PRODUCT_NAME = RocketChatRN;
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "NO"
@ -54,6 +54,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
@ -83,6 +84,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "NO"
@ -54,6 +54,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
@ -83,6 +84,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"

View File

@ -143,10 +143,15 @@
"idiom" : "ipad",
"filename" : "icon-83.5@2x.png",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
}

View File

@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>Rocket.Chat.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>chat.rocket.reactnative</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
@ -38,7 +38,7 @@
<key>NSCameraUsageDescription</key>
<string>Upload images from camera</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<string></string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Upload images from library</string>
<key>UIAppFonts</key>

View File

@ -69,5 +69,10 @@
"preset": "react-native",
"coverageDirectory": "./coverage/",
"collectCoverage": true
},
"engines": {
"node": ">=8.x",
"npm": ">=4.x",
"yarn": ">=0.21.3"
}
}