This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.ImageView | |
import android.widget.TextView | |
import androidx.annotation.ColorRes | |
import androidx.core.content.ContextCompat | |
import androidx.interpolator.view.animation.FastOutSlowInInterpolator | |
import com.eudycontreras.boneslibrary.bindings.getBoneDrawable | |
import com.eudycontreras.boneslibrary.bindings.getSkeletonDrawable | |
import com.eudycontreras.boneslibrary.extensions.dp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
sh("git checkout stage", log: false) | |
puts "git checkout stage" | |
rescue => ex | |
sh("git checkout -b stage") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def currentBranch() | |
branch = git_branch() | |
if !branch.to_s.empty? | |
return branch | |
end | |
git = Git.open(File.join(File.dirname(__FILE__), '../')) # git_branch() does not seem work on Windows, it will print error with path not found. | |
return git.current_branch | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is our Android Fastlane template | |
# | |
# We are using this plugin: gem 'fastlane-plugin-android_versioning' | |
# And have a Appfile with json_key_file("***") and package_name("***") | |
# | |
require 'git' | |
require 'fileutils' | |
default_platform(:android) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
ruby ">= 2.6.0" | |
gem "fastlane", ">= 2.126.0" | |
gem "git" | |
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | |
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
$RUBY_VERSION = "2.6.3.1" | |
Function DoesCommandExists { | |
Param ($command) | |
try { if(Get-Command $command){ return $true } } | |
catch { return $false } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private readonly ProductImageContentProvider _productImageContentProvider; | |
private void AddImageInEpiServerBackend(string colorProductCode, string imageName) | |
{ | |
var colorProductLink = _referenceConverterFactory.GetReferenceConverter().GetContentLinks(new []{ colorProductCode }).Values.FirstOrDefault(); | |
ColorProduct colorProduct = _contentRepository.Get<ColorProduct>(colorProductLink).CreateWritableClone() as ColorProduct; | |
ProductImageFile productImageFile = _productImageContentProvider.ConvertToProductImageFile(imageName); | |
colorProduct.CommerceMediaCollection.Add(new CommerceMedia |