Skip to content

Commit

Permalink
prepare 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kienht committed Jun 1, 2021
1 parent c707291 commit beda58a
Show file tree
Hide file tree
Showing 34 changed files with 78,824 additions and 76,357 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ allprojects {
````
module/build.gradle
````gradle
compile 'com.github.hantrungkien:AutoDimension:1.0.6'
compile 'com.github.hantrungkien:AutoDimension:1.0.8'
````

#### How to use:
Expand Down
7 changes: 4 additions & 3 deletions autodimens.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AutoFactory extends DefaultTask {
class DimensionFactory extends DefaultTask {

@Input
int[] dimens = [320, 360, 384, 390, 400, 411, 420, 433, 450, 480, 533, 540, 561, 600, 640, 681, 720, 768, 800, 840, 886, 960, 1024, 1080, 1280, 1366, 1440, 1600, 1920, 2560, 3840];
int[] dimens = [0, 320, 360, 384, 390, 400, 411, 420, 433, 450, 480, 533, 540, 561, 600, 640, 681, 720, 768, 800, 840, 886, 960, 1024, 1080, 1280, 1366, 1440, 1600, 1920, 2560, 3840];
@Input
int fromDimension = 360;
@Input
Expand All @@ -31,7 +31,8 @@ class DimensionFactory extends DefaultTask {
for (int dimen : dimens) {
String folderName = "";
String dimenFileName = "";
if (dimen == fromDimension) {
if (dimen == 0) {
dimen = fromDimension
folderName = "values"
dimenFileName = "\t<string name=\"dimenFileName\">values-default</string>\r"
} else {
Expand Down Expand Up @@ -78,7 +79,7 @@ class DimensionFactory extends DefaultTask {
task createDimension(type: DimensionFactory) {}

createDimension {
dimens = [320, 360, 384, 390, 400, 411, 420, 433, 450, 480, 533, 540, 561, 600, 640, 681, 720, 768, 800, 840, 886, 960, 1024, 1080, 1280, 1366, 1440, 1600, 1920, 2560, 3840];
dimens = [0, 320, 360, 384, 390, 400, 411, 420, 433, 450, 480, 533, 540, 561, 600, 640, 681, 720, 768, 800, 840, 886, 960, 1024, 1080, 1280, 1366, 1440, 1600, 1920, 2560, 3840];
fromDimension = 360
positiveMaxDP = 600
negativeMaxDP = 600
Expand Down
Loading

0 comments on commit beda58a

Please sign in to comment.