Skip to content

Commit

Permalink
Merge pull request #74 from trello/dlew/update-sample
Browse files Browse the repository at this point in the history
Update sample for latest Victor release
  • Loading branch information
dlew authored May 8, 2020
2 parents 8ed9aa5 + 1f38834 commit d7c8ede
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-25
- build-tools-28.0.3
- android-29
- extra-android-m2repository

jdk: oraclejdk8
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'com.android.tools.build:gradle:3.6.3'
}
}

Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true

android.useAndroidX=true
9 changes: 7 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.trello:victor:1.0.0'
classpath 'com.trello:victor:1.1.0'
}
}

Expand All @@ -42,6 +42,11 @@ android {
vectorDrawables.useSupportLibrary = true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

// Define the 'svg' source set for any flavors/build types and/or 'main' for all of them
sourceSets {
main {
Expand All @@ -68,5 +73,5 @@ repositories {
}

dependencies {
implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
package com.trello.victorsample;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.ImageView;

public class MainActivity extends ActionBarActivity {
import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
5 changes: 1 addition & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
include ':victor'

// Temporarily exclude this sample, because it uses the published version of Victor
// (which is incompatible with Gradle 6 atm).
// include ':sample'
include ':sample'

0 comments on commit d7c8ede

Please sign in to comment.