Emulator can be started using command line using:
emulator -avd <name>
emulator -avd <name>
defaultConfig {Dependencies
applicationId "appId" minSdkVersion 17 targetSdkVersion 23 versionCode 1
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"}
dependencies {Running Instrument tests:
compile 'com.android.support:support-annotations:23.0.1' compile 'com.android.support:appcompat-v7:23.0.1'
androidTestCompile 'junit:junit:4.12' androidTestCompile 'com.android.support:support-annotations:23.0.1' androidTestCompile 'com.android.support.test:runner:0.4.1' androidTestCompile 'com.android.support.test:rules:0.4.1'
}
gradlew connectedAndroidTest
BuildConfig.VERSION_NAME
BuildConfig.VERSION_CODE
Don't forget to add local maven repo:apply plugin: 'maven-publish'
repositories {
mavenLocal()
}
Add publishing block now:
publishing {
publications {
mavenJava(MavenPublication) {
groupId <GROUP_ID>
artifactId <ARTIFACT_ID>
version <currentVersion>
artifacts = ["${buildDir}/outputs/aar/<your_android_library>.aar"]
}
}
}
git tag -a <tagname>An already existing tag can be modified using flag "-f" like this:
git tag -a -f <existing_tag_name>A specific tag can be pushed to remote like this:
git push origin <tagname>
Deleting tags:
git push origin :<tagname> OR git push --delete origin <tagname>
git tag -d <tagname>
[user]name = <new name>
git commit --amend --reset-author
Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .