Module: Pindo::XcodoeResConst

Defined in:
lib/pindo/module/xcode/xcoderesconstant.rb

Class Method Summary collapse

Class Method Details

.xcode_ios_icon_jsonObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/pindo/module/xcode/xcoderesconstant.rb', line 5

def self.xcode_ios_icon_json 
      model_data ={
                "images" => [
                  {
                    "filename" => "[email protected]",
                    "idiom" => "universal",
                    "platform" => "ios",
                    "size" => "1024x1024"
                  }
                ],
                "info" => {
                  "author" => "xcode",
                  "version" => 1
                }
              }
    return model_data
    #   model_data ={
    #             "images" => [
    #               {
    #                 "filename" => "icon0.png",
    #                 "idiom" => "universal",
    #                 "platform" => "ios",
    #                 "size" => "1024x1024"
    #               },
    #               {
    #                 "appearances" => [
    #                   {
    #                     "appearance" => "luminosity",
    #                     "value" => "dark"
    #                   }
    #                 ],
    #                 "idiom" => "universal",
    #                 "platform" => "ios",
    #                 "size" => "1024x1024"
    #               },
    #               {
    #                 "appearances" => [
    #                   {
    #                     "appearance" => "luminosity",
    #                     "value" => "tinted"
    #                   }
    #                 ],
    #                 "idiom" => "universal",
    #                 "platform" => "ios",
    #                 "size" => "1024x1024"
    #               }
    #             ],
    #             "info" => {
    #               "author" => "xcode",
    #               "version" => 1
    #             }
    #           }
    # return model_data
end

.xcode_ios_imessage_icon_jsonObject

def self.xcode_ios_icon_json

  model_data = {
        "images" => [
          {
            "size" => "20x20",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "20x20",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "3x"
          },
          {
            "size" => "29x29",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "29x29",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "3x"
          },
          {
            "size" => "40x40",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "40x40",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "3x"
          },
          {
            "size" => "60x60",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "60x60",
            "idiom" => "iphone",
            "filename" => "[email protected]",
            "scale" => "3x"
          },
          {
            "size" => "20x20",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "1x"
          },
          {
            "size" => "20x20",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "29x29",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "1x"
          },
          {
            "size" => "29x29",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "40x40",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "1x"
          },
          {
            "size" => "40x40",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "76x76",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "1x"
          },
          {
            "size" => "76x76",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "83.5x83.5",
            "idiom" => "ipad",
            "filename" => "[email protected]",
            "scale" => "2x"
          },
          {
            "size" => "1024x1024",
            "idiom" => "ios-marketing",
            "filename" => "[email protected]",
            "scale" => "1x"
          }
        ],
        "info" => {
        "version" => 1,
        "author" => "xcode"
        }
      }
return model_data

end



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/pindo/module/xcode/xcoderesconstant.rb', line 179

def self.xcode_ios_imessage_icon_json
      model_data = {
          "images" => [
            {
              "size" => "29x29",
              "idiom" => "iphone",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "size" => "29x29",
              "idiom" => "iphone",
              "filename" => "[email protected]",
              "scale" => "3x"
            },
            {
              "size" => "60x45",
              "idiom" => "iphone",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "size" => "60x45",
              "idiom" => "iphone",
              "filename" => "[email protected]",
              "scale" => "3x"
            },
            {
              "size" => "29x29",
              "idiom" => "ipad",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "size" => "67x50",
              "idiom" => "ipad",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "size" => "74x55",
              "idiom" => "ipad",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "size" => "1024x1024",
              "idiom" => "ios-marketing",
              "filename" => "[email protected]",
              "scale" => "1x"
            },
            {
              "size" => "27x20",
              "idiom" => "universal",
              "filename" => "[email protected]",
              "scale" => "2x",
              "platform" => "ios"
            },
            {
              "size" => "27x20",
              "idiom" => "universal",
              "filename" => "[email protected]",
              "scale" => "3x",
              "platform" => "ios"
            },
            {
              "size" => "32x24",
              "idiom" => "universal",
              "filename" => "[email protected]",
              "scale" => "2x",
              "platform" => "ios"
            },
            {
              "size" => "32x24",
              "idiom" => "universal",
              "filename" => "[email protected]",
              "scale" => "3x",
              "platform" => "ios"
            },
            {
              "size" => "1024x768",
              "idiom" => "ios-marketing",
              "filename" => "[email protected]",
              "scale" => "1x",
              "platform" => "ios"
            }
          ],
          "info" => {
            "version" => 1,
            "author" => "xcode"
          }
        }
    return model_data
end

.xcode_ios_launchimg_jsonObject



274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
# File 'lib/pindo/module/xcode/xcoderesconstant.rb', line 274

def self.xcode_ios_launchimg_json
      model_data = { 
          "images" => [
            {
              "idiom" => "universal",
              "scale" => "1x"
            },
            {
              "idiom" => "universal",
              "filename" => "[email protected]",
              "scale" => "2x"
            },
            {
              "idiom" => "universal",
              "scale" => "3x"
            }
        ],
        "info" => {
        "version" => 1,
        "author" => "xcode"
        }
    }
    return model_data
end