File Coverage

blib/lib/Config/Apple/Profile/Targets.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Config::Apple::Profile::Targets;
2              
3 15     15   173 use 5.10.1;
  15         57  
  15         557  
4 15     15   74 use strict;
  15         20  
  15         675  
5 15     15   71 use warnings FATAL => 'all';
  15         25  
  15         847  
6              
7             our $VERSION = '0.87';
8              
9             use Exporter::Easy (
10 15         90 OK => [qw(
11             $TargetIOS $TargetMACOSX
12             )],
13             TAGS => [
14             'all' => [qw(
15             $TargetIOS $TargetMACOSX
16             )],
17             ],
18 15     15   72 );
  15         28  
19 15     15   2348 use Readonly;
  15         26  
  15         1250  
20              
21              
22             =encoding utf8
23              
24             =head1 NAME
25              
26             Config::Apple::Profile::Targets - Constants for payload targets
27              
28             =head1 DESCRIPTION
29              
30             Apple Configuration Profiles can be used on different platforms. Although some
31             payloads only work on specific platforms, most payloads can be at least
32             partially applied to all platforms that support Apple Configuration Profiles.
33              
34             Provided in this module are a number of read-only scalars that will be used
35             (instead of strings) to identify the platforms supported by configuration
36             profiles. The scalars are all OK for import into your local namespace, or you
37             can simply import C<:all> to get all of them at once.
38              
39             =head1 TYPES
40              
41             Apple Configuration Profiles can be targeted to the following platforms:
42              
43             =head2 iOS C<$TargetIOS>
44              
45             Apple's iOS. In general, at least iOS version 5.0 is required.
46              
47             =cut
48              
49             Readonly our $TargetIOS => 1;
50              
51             =head2 Mac OS X C<$TargetOSX>
52              
53             Apple's Mac OS X. In general, at least OS X version 10.7 is required.
54              
55             =cut
56              
57             Readonly our $TargetMACOSX => 2;
58              
59              
60             =head1 ACKNOWLEDGEMENTS
61              
62             Refer to the L for acknowledgements.
63              
64             =head1 AUTHOR
65              
66             A. Karl Kornel, C<< >>
67              
68             =head1 COPYRIGHT AND LICENSE
69              
70             Copyright © 2014 A. Karl Kornel.
71              
72             This program is free software; you can redistribute it and/or modify it
73             under the terms of either: the GNU General Public License as published
74             by the Free Software Foundation; or the Artistic License.
75              
76             See L for more information.
77              
78             =cut
79              
80             1;