#Installing TeamCity for building Android projects
##Requirements
- MySQL
- JDK 1.7
- 32-bit libstdc++ zlib.i686
##Install JDK
/* | |
* Copyright 2019 Sergey Chelombitko | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
class Flank < Formula | |
desc "Massively parallel Android and iOS test runner for Firebase Test Lab" | |
homepage "https://firebase.community/" | |
url "https://github.com/Flank/flank/releases/download/v20.06.2/flank.jar" | |
sha256 "2aa7e5e5fc83396fa95a2f41341a39d07ee289289e67bdfea874fd5e521777b9" | |
bottle :unneeded | |
depends_on "openjdk" |
import android.annotation.SuppressLint | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Matrix | |
import android.graphics.Paint | |
import android.graphics.Path | |
import android.graphics.drawable.Drawable | |
import android.util.TypedValue | |
import androidx.annotation.ColorInt | |
import androidx.appcompat.graphics.drawable.DrawableWrapper |
import android.os.Build | |
import android.security.keystore.KeyGenParameterSpec | |
import android.security.keystore.KeyProperties | |
import android.util.Base64 | |
import androidx.annotation.RequiresApi | |
import java.nio.ByteBuffer | |
import java.security.InvalidKeyException | |
import java.security.Key | |
import java.security.KeyStore | |
import java.security.SecureRandom |
class Classyshark < Formula | |
desc "Executables browser for Android, Java and Kotlin" | |
homepage "https://github.com/google/android-classyshark" | |
url "https://github.com/google/android-classyshark/releases/download/8.1/ClassyShark.jar" | |
sha256 "73f0f8854a564d0eec4550fd69ebc239a38ae82f57e95cffb45890ba1b2e8098" | |
head do | |
url "https://github.com/google/android-classyshark.git" | |
depends_on "gradle" => :build | |
end |
api=28 | |
branch=android-9.0.0_r3 | |
mkdir android-sdk-source-build | |
cd android-sdk-source-build | |
mkdir -p frameworks/base | |
# Fetch repositories that contain the sources we're interested in | |
git clone --depth 1 https://android.googlesource.com/platform/frameworks/base -b $branch frameworks/base |
import android.support.v7.widget.RecyclerView; | |
import android.util.SparseArray; | |
import android.view.LayoutInflater; | |
import android.view.ViewGroup; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Objects; | |
public abstract class BinderRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
apply plugin: 'checkstyle' | |
checkstyle { | |
toolVersion = '8.2' | |
configFile rootProject.file('checkstyle.xml') | |
} | |
afterEvaluate { project -> | |
def variants | |
if (project.plugins.hasPlugin('com.android.application')) { |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.IBinder; | |
import android.support.annotation.Nullable; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import rx.Completable; | |
import rx.Subscription; | |
import rx.schedulers.Schedulers; |
#Installing TeamCity for building Android projects
##Requirements
##Install JDK