Skip to content

Instantly share code, notes, and snippets.

View Thilagavathi1's full-sized avatar

Thilagavathi Thilagavathi1

View GitHub Profile
@Thilagavathi1
Thilagavathi1 / build.gradle
Created January 26, 2023 16:40
Product flavours
android {
productFlavors {
development {
minSdkVersion rootProject.ext.minSdkVersion
applicationId 'com.awesome.project.dev'
targetSdkVersion rootProject.ext.targetSdkVersion
resValue "string", "build_config_package", "com.myapp"
}
production {
minSdkVersion rootProject.ext.minSdkVersion
@Thilagavathi1
Thilagavathi1 / package.json
Last active January 26, 2023 16:38
ios-scripts
"android:dev": "react-native run-android --variant=developmentdebug",
"android:dev-release": "react-native run-android --variant=developmentrelease",
"android:prod": "react-native run-android --variant=productiondebug",
"android:prod-release": "react-native run-android --variant=productionrelease",
"ios:prod": "react-native run-ios --configuration 'Debug' --scheme 'AwesomeAppProduction'",
"ios:prod-release": "react-native run-ios --configuration 'Release' --scheme 'AwesomeAppProduction'",
"ios:dev": "react-native run-ios --configuration 'Debug' --scheme 'AwesomeAppDevelopment'",
"ios:dev-release": "react-native run-ios --configuration 'Release' --scheme 'AwesomeAppDevelopment'",
@Thilagavathi1
Thilagavathi1 / Integrate ESlint into sublimetext3 editor
Last active January 9, 2018 11:24
Add ESlint to your project
install the eslint package globally.
1.sudo npm install -g eslint
2.Copy the code from the link https://packagecontrol.io/installation (related to sublime text3 or sublime text2)
*paste the code to View->show console option in the sublime editor
3.npm install --save-dev eslint-config-rallycoding
4.ADD FILE IN PROJECT DIRECTORY
.eslintrc file ==> this file has the {"extends": "rallycoding"}
5.ctr + shift+p ==> click install package