Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #313 from thermatk/fdroid
Browse files Browse the repository at this point in the history
satisfy f-droid and change CI tasks for flavors
  • Loading branch information
kosh authored Apr 14, 2017
2 parents 6de5b7c + 1ab263d commit 864d033
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jdk: oraclejdk8
sudo: required

script:
- ./gradlew clean assembleDebug
- ./gradlew clean assembleFdroidDebug
- ./gradlew clean assembleGmsDebug

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
7 changes: 4 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ android {
}

configurations {
gmsReleaseCompile
all*.exclude module: 'annotations'
}
}
Expand Down Expand Up @@ -144,8 +143,10 @@ dependencies {
annotationProcessor "frankiesardo:icepick-processor:${icepickVersion}"
annotationProcessor "com.jakewharton:butterknife-compiler:${butterKnifeVersion}"
provided "org.projectlombok:lombok:${lombokVersion}"
gmsCompile "com.google.firebase:firebase-ads:${firebase}"
gmsReleaseCompile "com.google.firebase:firebase-crash:${firebase}"
if (isGms) {
compile "com.google.firebase:firebase-ads:${firebase}"
releaseCompile "com.google.firebase:firebase-crash:${firebase}"
}
}

if (isGms) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public BaseViewHolder(@NonNull View itemView, @Nullable BaseRecyclerAdapter adap
itemView.setOnLongClickListener(this);
}

@Override public void onClick(View v) {
@SuppressWarnings("unchecked") @Override public void onClick(View v) {
if (adapter != null && adapter.getListener() != null) {
int position = getAdapterPosition();
if (position != RecyclerView.NO_POSITION && position < adapter.getItemCount())
adapter.getListener().onItemClick(position, v, adapter.getItem(position));
}
}

@Override public boolean onLongClick(View v) {
@SuppressWarnings("unchecked") @Override public boolean onLongClick(View v) {
if (adapter != null && adapter.getListener() != null) {
int position = getAdapterPosition();
if (position != RecyclerView.NO_POSITION && position < adapter.getItemCount())
Expand Down

0 comments on commit 864d033

Please sign in to comment.