Skip to content

Commit 362eb3a

Browse files
Finish initialization by running the generator script.
1 parent 688f41d commit 362eb3a

File tree

16 files changed

+81
-181
lines changed

16 files changed

+81
-181
lines changed
File renamed without changes.

LibTemplatePlaceholder/LibTemplatePlaceholder.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

LibTemplatePlaceholder.xcodeproj/project.pbxproj renamed to OSBarcodeLib.xcodeproj/project.pbxproj

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
7507FC1B27FC2AAE003809F6 /* LibTemplatePlaceholder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7507FC1227FC2AAE003809F6 /* LibTemplatePlaceholder.framework */; };
11-
7507FC2027FC2AAE003809F6 /* LibTemplatePlaceholderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7507FC1F27FC2AAE003809F6 /* LibTemplatePlaceholderTests.swift */; };
12-
7507FC2127FC2AAE003809F6 /* LibTemplatePlaceholder.h in Headers */ = {isa = PBXBuildFile; fileRef = 7507FC1527FC2AAE003809F6 /* LibTemplatePlaceholder.h */; settings = {ATTRIBUTES = (Public, ); }; };
10+
7507FC1B27FC2AAE003809F6 /* OSBarcodeLib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7507FC1227FC2AAE003809F6 /* OSBarcodeLib.framework */; };
11+
7507FC2027FC2AAE003809F6 /* OSBarcodeLibTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7507FC1F27FC2AAE003809F6 /* OSBarcodeLibTests.swift */; };
12+
7507FC2127FC2AAE003809F6 /* OSBarcodeLib.h in Headers */ = {isa = PBXBuildFile; fileRef = 7507FC1527FC2AAE003809F6 /* OSBarcodeLib.h */; settings = {ATTRIBUTES = (Public, ); }; };
1313
/* End PBXBuildFile section */
1414

1515
/* Begin PBXContainerItemProxy section */
@@ -18,15 +18,15 @@
1818
containerPortal = 7507FC0927FC2AAE003809F6 /* Project object */;
1919
proxyType = 1;
2020
remoteGlobalIDString = 7507FC1127FC2AAE003809F6;
21-
remoteInfo = LibTemplatePlaceholder;
21+
remoteInfo = OSBarcodeLib;
2222
};
2323
/* End PBXContainerItemProxy section */
2424

2525
/* Begin PBXFileReference section */
26-
7507FC1227FC2AAE003809F6 /* LibTemplatePlaceholder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LibTemplatePlaceholder.framework; sourceTree = BUILT_PRODUCTS_DIR; };
27-
7507FC1527FC2AAE003809F6 /* LibTemplatePlaceholder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LibTemplatePlaceholder.h; sourceTree = "<group>"; };
28-
7507FC1A27FC2AAE003809F6 /* LibTemplatePlaceholderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LibTemplatePlaceholderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29-
7507FC1F27FC2AAE003809F6 /* LibTemplatePlaceholderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LibTemplatePlaceholderTests.swift; sourceTree = "<group>"; };
26+
7507FC1227FC2AAE003809F6 /* OSBarcodeLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OSBarcodeLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };
27+
7507FC1527FC2AAE003809F6 /* OSBarcodeLib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OSBarcodeLib.h; sourceTree = "<group>"; };
28+
7507FC1A27FC2AAE003809F6 /* OSBarcodeLibTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OSBarcodeLibTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29+
7507FC1F27FC2AAE003809F6 /* OSBarcodeLibTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSBarcodeLibTests.swift; sourceTree = "<group>"; };
3030
/* End PBXFileReference section */
3131

3232
/* Begin PBXFrameworksBuildPhase section */
@@ -41,7 +41,7 @@
4141
isa = PBXFrameworksBuildPhase;
4242
buildActionMask = 2147483647;
4343
files = (
44-
7507FC1B27FC2AAE003809F6 /* LibTemplatePlaceholder.framework in Frameworks */,
44+
7507FC1B27FC2AAE003809F6 /* OSBarcodeLib.framework in Frameworks */,
4545
);
4646
runOnlyForDeploymentPostprocessing = 0;
4747
};
@@ -51,35 +51,35 @@
5151
7507FC0827FC2AAE003809F6 = {
5252
isa = PBXGroup;
5353
children = (
54-
7507FC1427FC2AAE003809F6 /* LibTemplatePlaceholder */,
55-
7507FC1E27FC2AAE003809F6 /* LibTemplatePlaceholderTests */,
54+
7507FC1427FC2AAE003809F6 /* OSBarcodeLib */,
55+
7507FC1E27FC2AAE003809F6 /* OSBarcodeLibTests */,
5656
7507FC1327FC2AAE003809F6 /* Products */,
5757
);
5858
sourceTree = "<group>";
5959
};
6060
7507FC1327FC2AAE003809F6 /* Products */ = {
6161
isa = PBXGroup;
6262
children = (
63-
7507FC1227FC2AAE003809F6 /* LibTemplatePlaceholder.framework */,
64-
7507FC1A27FC2AAE003809F6 /* LibTemplatePlaceholderTests.xctest */,
63+
7507FC1227FC2AAE003809F6 /* OSBarcodeLib.framework */,
64+
7507FC1A27FC2AAE003809F6 /* OSBarcodeLibTests.xctest */,
6565
);
6666
name = Products;
6767
sourceTree = "<group>";
6868
};
69-
7507FC1427FC2AAE003809F6 /* LibTemplatePlaceholder */ = {
69+
7507FC1427FC2AAE003809F6 /* OSBarcodeLib */ = {
7070
isa = PBXGroup;
7171
children = (
72-
7507FC1527FC2AAE003809F6 /* LibTemplatePlaceholder.h */,
72+
7507FC1527FC2AAE003809F6 /* OSBarcodeLib.h */,
7373
);
74-
path = LibTemplatePlaceholder;
74+
path = OSBarcodeLib;
7575
sourceTree = "<group>";
7676
};
77-
7507FC1E27FC2AAE003809F6 /* LibTemplatePlaceholderTests */ = {
77+
7507FC1E27FC2AAE003809F6 /* OSBarcodeLibTests */ = {
7878
isa = PBXGroup;
7979
children = (
80-
7507FC1F27FC2AAE003809F6 /* LibTemplatePlaceholderTests.swift */,
80+
7507FC1F27FC2AAE003809F6 /* OSBarcodeLibTests.swift */,
8181
);
82-
path = LibTemplatePlaceholderTests;
82+
path = OSBarcodeLibTests;
8383
sourceTree = "<group>";
8484
};
8585
/* End PBXGroup section */
@@ -89,16 +89,16 @@
8989
isa = PBXHeadersBuildPhase;
9090
buildActionMask = 2147483647;
9191
files = (
92-
7507FC2127FC2AAE003809F6 /* LibTemplatePlaceholder.h in Headers */,
92+
7507FC2127FC2AAE003809F6 /* OSBarcodeLib.h in Headers */,
9393
);
9494
runOnlyForDeploymentPostprocessing = 0;
9595
};
9696
/* End PBXHeadersBuildPhase section */
9797

9898
/* Begin PBXNativeTarget section */
99-
7507FC1127FC2AAE003809F6 /* LibTemplatePlaceholder */ = {
99+
7507FC1127FC2AAE003809F6 /* OSBarcodeLib */ = {
100100
isa = PBXNativeTarget;
101-
buildConfigurationList = 7507FC2427FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "LibTemplatePlaceholder" */;
101+
buildConfigurationList = 7507FC2427FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "OSBarcodeLib" */;
102102
buildPhases = (
103103
7507FC0D27FC2AAE003809F6 /* Headers */,
104104
7507FC0E27FC2AAE003809F6 /* Sources */,
@@ -109,14 +109,14 @@
109109
);
110110
dependencies = (
111111
);
112-
name = LibTemplatePlaceholder;
113-
productName = LibTemplatePlaceholder;
114-
productReference = 7507FC1227FC2AAE003809F6 /* LibTemplatePlaceholder.framework */;
112+
name = OSBarcodeLib;
113+
productName = OSBarcodeLib;
114+
productReference = 7507FC1227FC2AAE003809F6 /* OSBarcodeLib.framework */;
115115
productType = "com.apple.product-type.framework";
116116
};
117-
7507FC1927FC2AAE003809F6 /* LibTemplatePlaceholderTests */ = {
117+
7507FC1927FC2AAE003809F6 /* OSBarcodeLibTests */ = {
118118
isa = PBXNativeTarget;
119-
buildConfigurationList = 7507FC2727FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "LibTemplatePlaceholderTests" */;
119+
buildConfigurationList = 7507FC2727FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "OSBarcodeLibTests" */;
120120
buildPhases = (
121121
7507FC1627FC2AAE003809F6 /* Sources */,
122122
7507FC1727FC2AAE003809F6 /* Frameworks */,
@@ -127,9 +127,9 @@
127127
dependencies = (
128128
7507FC1D27FC2AAE003809F6 /* PBXTargetDependency */,
129129
);
130-
name = LibTemplatePlaceholderTests;
131-
productName = LibTemplatePlaceholderTests;
132-
productReference = 7507FC1A27FC2AAE003809F6 /* LibTemplatePlaceholderTests.xctest */;
130+
name = OSBarcodeLibTests;
131+
productName = OSBarcodeLibTests;
132+
productReference = 7507FC1A27FC2AAE003809F6 /* OSBarcodeLibTests.xctest */;
133133
productType = "com.apple.product-type.bundle.unit-test";
134134
};
135135
/* End PBXNativeTarget section */
@@ -150,7 +150,7 @@
150150
};
151151
};
152152
};
153-
buildConfigurationList = 7507FC0C27FC2AAE003809F6 /* Build configuration list for PBXProject "LibTemplatePlaceholder" */;
153+
buildConfigurationList = 7507FC0C27FC2AAE003809F6 /* Build configuration list for PBXProject "OSBarcodeLib" */;
154154
compatibilityVersion = "Xcode 13.0";
155155
developmentRegion = en;
156156
hasScannedForEncodings = 0;
@@ -163,8 +163,8 @@
163163
projectDirPath = "";
164164
projectRoot = "";
165165
targets = (
166-
7507FC1127FC2AAE003809F6 /* LibTemplatePlaceholder */,
167-
7507FC1927FC2AAE003809F6 /* LibTemplatePlaceholderTests */,
166+
7507FC1127FC2AAE003809F6 /* OSBarcodeLib */,
167+
7507FC1927FC2AAE003809F6 /* OSBarcodeLibTests */,
168168
);
169169
};
170170
/* End PBXProject section */
@@ -198,7 +198,7 @@
198198
isa = PBXSourcesBuildPhase;
199199
buildActionMask = 2147483647;
200200
files = (
201-
7507FC2027FC2AAE003809F6 /* LibTemplatePlaceholderTests.swift in Sources */,
201+
7507FC2027FC2AAE003809F6 /* OSBarcodeLibTests.swift in Sources */,
202202
);
203203
runOnlyForDeploymentPostprocessing = 0;
204204
};
@@ -207,7 +207,7 @@
207207
/* Begin PBXTargetDependency section */
208208
7507FC1D27FC2AAE003809F6 /* PBXTargetDependency */ = {
209209
isa = PBXTargetDependency;
210-
target = 7507FC1127FC2AAE003809F6 /* LibTemplatePlaceholder */;
210+
target = 7507FC1127FC2AAE003809F6 /* OSBarcodeLib */;
211211
targetProxy = 7507FC1C27FC2AAE003809F6 /* PBXContainerItemProxy */;
212212
};
213213
/* End PBXTargetDependency section */
@@ -354,7 +354,7 @@
354354
"@loader_path/Frameworks",
355355
);
356356
MARKETING_VERSION = 1.0;
357-
PRODUCT_BUNDLE_IDENTIFIER = organizationIDPlaceholder.LibTemplatePlaceholder;
357+
PRODUCT_BUNDLE_IDENTIFIER = com.outsystems.rd.barcode.OSBarcodeLib;
358358
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
359359
SKIP_INSTALL = YES;
360360
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -384,7 +384,7 @@
384384
"@loader_path/Frameworks",
385385
);
386386
MARKETING_VERSION = 1.0;
387-
PRODUCT_BUNDLE_IDENTIFIER = organizationIDPlaceholder.LibTemplatePlaceholder;
387+
PRODUCT_BUNDLE_IDENTIFIER = com.outsystems.rd.barcode.OSBarcodeLib;
388388
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
389389
SKIP_INSTALL = YES;
390390
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -401,7 +401,7 @@
401401
DEVELOPMENT_TEAM = EVSWK8BA55;
402402
GENERATE_INFOPLIST_FILE = YES;
403403
MARKETING_VERSION = 1.0;
404-
PRODUCT_BUNDLE_IDENTIFIER = organizationIDPlaceholder.LibTemplatePlaceholderTests;
404+
PRODUCT_BUNDLE_IDENTIFIER = com.outsystems.rd.barcode.OSBarcodeLibTests;
405405
PRODUCT_NAME = "$(TARGET_NAME)";
406406
SWIFT_EMIT_LOC_STRINGS = NO;
407407
SWIFT_VERSION = 5.0;
@@ -417,7 +417,7 @@
417417
DEVELOPMENT_TEAM = EVSWK8BA55;
418418
GENERATE_INFOPLIST_FILE = YES;
419419
MARKETING_VERSION = 1.0;
420-
PRODUCT_BUNDLE_IDENTIFIER = organizationIDPlaceholder.LibTemplatePlaceholderTests;
420+
PRODUCT_BUNDLE_IDENTIFIER = com.outsystems.rd.barcode.OSBarcodeLibTests;
421421
PRODUCT_NAME = "$(TARGET_NAME)";
422422
SWIFT_EMIT_LOC_STRINGS = NO;
423423
SWIFT_VERSION = 5.0;
@@ -428,7 +428,7 @@
428428
/* End XCBuildConfiguration section */
429429

430430
/* Begin XCConfigurationList section */
431-
7507FC0C27FC2AAE003809F6 /* Build configuration list for PBXProject "LibTemplatePlaceholder" */ = {
431+
7507FC0C27FC2AAE003809F6 /* Build configuration list for PBXProject "OSBarcodeLib" */ = {
432432
isa = XCConfigurationList;
433433
buildConfigurations = (
434434
7507FC2227FC2AAE003809F6 /* Debug */,
@@ -437,7 +437,7 @@
437437
defaultConfigurationIsVisible = 0;
438438
defaultConfigurationName = Release;
439439
};
440-
7507FC2427FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "LibTemplatePlaceholder" */ = {
440+
7507FC2427FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "OSBarcodeLib" */ = {
441441
isa = XCConfigurationList;
442442
buildConfigurations = (
443443
7507FC2527FC2AAE003809F6 /* Debug */,
@@ -446,7 +446,7 @@
446446
defaultConfigurationIsVisible = 0;
447447
defaultConfigurationName = Release;
448448
};
449-
7507FC2727FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "LibTemplatePlaceholderTests" */ = {
449+
7507FC2727FC2AAE003809F6 /* Build configuration list for PBXNativeTarget "OSBarcodeLibTests" */ = {
450450
isa = XCConfigurationList;
451451
buildConfigurations = (
452452
7507FC2827FC2AAE003809F6 /* Debug */,

LibTemplatePlaceholder.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to OSBarcodeLib.xcodeproj/project.xcworkspace/contents.xcworkspacedata

File renamed without changes.

LibTemplatePlaceholder.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist renamed to OSBarcodeLib.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

File renamed without changes.

LibTemplatePlaceholder.xcodeproj/xcshareddata/xcschemes/LibTemplatePlaceholder.xcscheme renamed to OSBarcodeLib.xcodeproj/xcshareddata/xcschemes/OSBarcodeLib.xcscheme

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "7507FC1127FC2AAE003809F6"
18-
BuildableName = "LibTemplatePlaceholder.framework"
19-
BlueprintName = "LibTemplatePlaceholder"
20-
ReferencedContainer = "container:LibTemplatePlaceholder.xcodeproj">
18+
BuildableName = "OSBarcodeLib.framework"
19+
BlueprintName = "OSBarcodeLib"
20+
ReferencedContainer = "container:OSBarcodeLib.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -34,9 +34,9 @@
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
3636
BlueprintIdentifier = "7507FC1927FC2AAE003809F6"
37-
BuildableName = "LibTemplatePlaceholderTests.xctest"
38-
BlueprintName = "LibTemplatePlaceholderTests"
39-
ReferencedContainer = "container:LibTemplatePlaceholder.xcodeproj">
37+
BuildableName = "OSBarcodeLibTests.xctest"
38+
BlueprintName = "OSBarcodeLibTests"
39+
ReferencedContainer = "container:OSBarcodeLib.xcodeproj">
4040
</BuildableReference>
4141
</TestableReference>
4242
</Testables>
@@ -62,9 +62,9 @@
6262
<BuildableReference
6363
BuildableIdentifier = "primary"
6464
BlueprintIdentifier = "7507FC1127FC2AAE003809F6"
65-
BuildableName = "LibTemplatePlaceholder.framework"
66-
BlueprintName = "LibTemplatePlaceholder"
67-
ReferencedContainer = "container:LibTemplatePlaceholder.xcodeproj">
65+
BuildableName = "OSBarcodeLib.framework"
66+
BlueprintName = "OSBarcodeLib"
67+
ReferencedContainer = "container:OSBarcodeLib.xcodeproj">
6868
</BuildableReference>
6969
</MacroExpansion>
7070
</ProfileAction>

OSBarcodeLib/OSBarcodeLib.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
#import <Foundation/Foundation.h>
3+
4+
//! Project version number for OSBarcodeLib.
5+
FOUNDATION_EXPORT double OSBarcodeLibVersionNumber;
6+
7+
//! Project version string for OSBarcodeLib.
8+
FOUNDATION_EXPORT const unsigned char OSBarcodeLibVersionString[];
9+
10+
// In this header, you should import all the public headers of your framework using statements like #import <OSBarcodeLib/PublicHeader.h>
11+
12+

LibTemplatePlaceholderTests/LibTemplatePlaceholderTests.swift renamed to OSBarcodeLibTests/OSBarcodeLibTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
import XCTest
3-
@testable import LibTemplatePlaceholder
3+
@testable import OSBarcodeLib
44

5-
class LibTemplatePlaceholderTests: XCTestCase {
5+
class OSBarcodeLibTests: XCTestCase {
66

77
override func setUpWithError() throws {
88
// Put setup code here. This method is called before the invocation of each test method in the class.

docs/README.md

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1 @@
1-
# LibTemplatePlaceholder
2-
3-
Welcome to **LibTemplatePlaceholder**. This repository serves as a template to create repositories used to build iOS libraries. This file will guide you through that process, that is defined by two sequential steps:
4-
5-
1. Use the current repository as the template for the new one.
6-
2. Clone the new repository on our machine.
7-
3. Run a script that updates the created repository with the correct information.
8-
9-
These steps are detailed in the next sections.
10-
11-
:warning: Every step listed here must be successfully completed before you start working on the new repository.
12-
13-
## Create a Repository Based on the Template
14-
15-
First, we need to create a new repository. To accomplish this, please press the **Use this template** button available on the repository's GitHub webpage.
16-
17-
![Use this template button](./assets/useThisTemplateButton.png)
18-
19-
Next, we have to define the new repository's name. In order to get the maximum performance of the following step, we advise you to use the **[ProjectName]Lib-iOS** format for the name. The names used for the **Health and Fitness** and the **Social Logins** are valid examples of the expected format (_OSHealthFitnessLib-iOS_ and _OSSocialLoginsLib-iOS_ respectively).
20-
21-
The following image shows an example of the creation of a repository for the iOS' Payments Library.
22-
23-
![Example for payments repository name](./assets/repositoryNameExample.png)
24-
25-
After filling up the form as needed, the last step to effectively create the repository is the click on the **Create repository from template** button.
26-
27-
![Create repository from template button](./assets/createRepositoryButton.png)
28-
29-
## Clone the New Repository
30-
31-
After completing the previous step, the next one is something common done in every repository a developer needs to do work on: clone the repository on the local machine.
32-
33-
## Run the **generator_script.sh**
34-
35-
To finish the process, we just have one last thing to do. Run the **generator_script.sh** script that automates a couple of changes we need to apply. It is included in the _scripts_ folder.
36-
37-
To run the script, please execute the following commands on **Terminal**:
38-
39-
```
40-
cd scripts
41-
sh generator_script.sh
42-
```
43-
44-
Here's the complete list of what the script does:
45-
46-
- The script provides a bit of information, such as mentioning the name that it will use as the Library name (its based on the one you used while creating the repository on GitHub).
47-
- Requests the user for the application's organisational identifier. The format required is provided and needs to be complied with in order to advance.
48-
- It informs that the script itself will be deleted, as it is a one time execution only.
49-
- It performs the needed changes, replacing all placeholder's organisational identifier and library name for the ones provided by the user.
50-
- To conclude, the script commits and pushes the changes to the remote repository.
1+
# OSBarcodeLib
-13.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)