(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
require 'albacore' | |
@file_version = "2.0.0.0" | |
@keystore = "../keystores/opgenorth-release-key.keystore" | |
@alias_name = "mytrips" | |
@input_apk = "EmploymentStandardsJudgments.Android/bin/Release/net.opgenorth.esj.apk" | |
@signed_apk = "EmploymentStandardsJudgments.Android/bin/Release/net.opgenorth.esj-signed.apk" | |
@final_apk = "deploy/AlbertaEmploymentJudgments.apk" | |
task :default => [:clean, :versioning, :build, :sign] |
public class ResizeAnimation extends Animation { | |
final int startWidth; | |
final int targetWidth; | |
View view; | |
public ResizeAnimation(View view, int targetWidth) { | |
this.view = view; | |
this.targetWidth = targetWidth; | |
startWidth = view.getWidth(); | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
task :update_build_number do | |
File.open('AndroidManifest.xml', 'r+') do |f| | |
manifest = f.read | |
build = ENV['TRAVIS_BUILD_NUMBER'] || 0 | |
# Update version | |
manifest = manifest.gsub( | |
/android:versionCode=".*"/, "android:versionCode=\"#{build}\"") | |
# Write back |