Skip to content

Commit

Permalink
Add Contents.json for all iOS .imageset directories.
Browse files Browse the repository at this point in the history
The actool requires the Contents.json file to have required
metadata about the image to compile but some were missing.

Automatically generate all missing Contents.json file via a
shell script assuming that all icons are universal and have
a 1x, 2x and 3x variant.

Fixes issue google#630.
  • Loading branch information
sdefresne authored and Scott Hyndman committed Jul 12, 2017
1 parent a6145e1 commit 5ab4288
Show file tree
Hide file tree
Showing 1,129 changed files with 25,967 additions and 0 deletions.
23 changes: 23 additions & 0 deletions action/ios/ic_accessible.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_18pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_18pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_18pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_18pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_36pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_36pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_36pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_36pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_48pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_48pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_white.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_white_18pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_white_18pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_white_18pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_white_18pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_white_36pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_white_36pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_white_36pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_white_36pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_accessible_white_48pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_accessible_white_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_accessible_white_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_accessible_white_48pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_18pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_18pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_18pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_18pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_36pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_36pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_36pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_36pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_48pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_48pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_white.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_white.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_white_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_white_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_white_18pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_white_18pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_white_18pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_white_18pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_white_36pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_white_36pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_white_36pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_white_36pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
23 changes: 23 additions & 0 deletions action/ios/ic_all_out_white_48pt.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_all_out_white_48pt.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_all_out_white_48pt_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_all_out_white_48pt_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Loading

0 comments on commit 5ab4288

Please sign in to comment.