Skip to content

Commit

Permalink
Merge pull request #52 from trello/dlew/prep-0.3.0
Browse files Browse the repository at this point in the history
Prepared 0.3.0 release
  • Loading branch information
dlew committed Jun 14, 2016
2 parents 0775fbe + a013e25 commit 93a69e5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log
==========

0.3.0
-----
*2016-06-14*

- ([#43](https://github.com/trello/victor/pull/43)) Experimental SVG -> Android drawable support

0.2.0
-----
*2016-03-24*
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.trello:victor:0.2.0'
classpath 'com.trello:victor:0.3.0'
}
}
Expand Down Expand Up @@ -56,6 +56,12 @@ victor {
// Do not generate these densities for SVG assets
excludeDensities = [ 'ldpi', 'xxxhdpi' ]
// WARNING: EXPERIMENTAL
// Generates Android drawables instead of PNGs.
//
// This is known not to work on only a subset of SVGs (e.g., does not support any value besides px).
generateVectorDrawables = true
}
```

Expand Down
8 changes: 7 additions & 1 deletion 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:0.2.0'
classpath 'com.trello:victor:0.3.0'
}
}

Expand All @@ -38,6 +38,9 @@ android {
targetSdkVersion 22
versionCode 1
versionName "1.0"

// In case you use generateVectorDrawables = true
vectorDrawables.useSupportLibrary = true
}

// Define the 'svg' source set for any flavors/build types and/or 'main' for all of them
Expand All @@ -54,6 +57,9 @@ victor {

// Do not generate these densities for SVG assets
excludeDensities = [ 'ldpi', 'xxxhdpi' ]

// Set this to "true" if you want to generate Android vectors instead of PNGs
generateVectorDrawables = false
}

dependencies {
Expand Down
28 changes: 16 additions & 12 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_laptop" />
app:srcCompat="@drawable/ic_laptop"
/>

<ImageView
android:id="@+id/second_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp" />
android:layout_marginTop="24dp"
/>

</LinearLayout>
2 changes: 1 addition & 1 deletion victor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
// Plugin publishing

group = 'com.trello'
version = '0.2.0-SNAPSHOT'
version = '0.3.0-SNAPSHOT'

plugindev {
pluginId 'com.trello.victor'
Expand Down

0 comments on commit 93a69e5

Please sign in to comment.