-
Notifications
You must be signed in to change notification settings - Fork 22
Create FinanceFoundations SDK #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
munizeraa
wants to merge
9
commits into
devpass-tech:main
Choose a base branch
from
munizeraa:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4569bf2
Create FinanceFoudations SDK
munizeraa 921318d
Edit SDK podspec
munizeraa 89f6914
Merge pull request #1 from munizin/feature/finance-foundations-sdk
munizeraa c4dca61
Merge branch 'main' into main
munizeraa eeff787
Remove Extension Files
munizeraa ea12f6a
Remove SDK from Output Folder
munizeraa 424ab51
Merge pull request #2 from munizin/feature/finance-foundations-sdk
munizeraa 240793f
Change Access Modifier
munizeraa e56ff92
Merge pull request #3 from munizin/feature/finance-foundations-sdk
munizeraa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
solutions/devsprint-julio-fernandes-10/FinanceApp/Extensions/String+Extensions.swift
This file was deleted.
Oops, something went wrong.
132 changes: 132 additions & 0 deletions
132
solutions/devsprint-julio-fernandes-10/Libraries/FinanceFoundations/.swiftlint.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# ------------------------------------------------------------------------------ | ||
# INCLUDE, EXCLUDE & IGNORED PATHS | ||
# ------------------------------------------------------------------------------ | ||
|
||
# paths to ignore during linting. | ||
excluded: | ||
- Pods | ||
- SampleApp | ||
- SampleAppTests | ||
|
||
# ------------------------------------------------------------------------------ | ||
# EXCLUDE & IGNORED RULES | ||
# ------------------------------------------------------------------------------ | ||
|
||
# rule identifiers to exclude from running | ||
disabled_rules: | ||
- trailing_whitespace | ||
- large_tuple | ||
- missing_docs | ||
- cyclomatic_complexity | ||
- for_where | ||
- class_delegate_protocol | ||
- private_over_fileprivate | ||
opt_in_rules: # some rules are only opt-in | ||
- overridden_super_call | ||
- closure_spacing | ||
- closure_end_indentation | ||
- redundant_nil_coalescing | ||
- operator_usage_whitespace | ||
- explicit_init | ||
- vertical_parameter_alignment_on_call | ||
- conditional_returns_on_newline | ||
# Find all the available rules by running: | ||
# swiftlint rules | ||
|
||
# ------------------------------------------------------------------------------ | ||
# LENGHT RULES | ||
# ------------------------------------------------------------------------------ | ||
|
||
# file | ||
file_length: | ||
warning: 1500 # lenght considered warning | ||
error: 1700 | ||
# type body | ||
type_body_length: | ||
- 400 # lenght considered warning | ||
|
||
# code line | ||
line_length: 500 | ||
|
||
#function_parameter_count | ||
function_parameter_count: | ||
warning: 15 | ||
error: 20 | ||
|
||
# ------------------------------------------------------------------------------ | ||
# NAMING RULES | ||
# ------------------------------------------------------------------------------ | ||
|
||
identifier_name: | ||
severity: warning | ||
min_length: 1 # only warning | ||
max_length: 80 # warning | ||
excluded: # excluded via string array | ||
- id | ||
- URL | ||
- url | ||
- map | ||
- key | ||
- rhs | ||
- lhs | ||
- Strings | ||
allowed_symbols: ["_"] # these are allowed in type names | ||
|
||
type_name: | ||
min_length: 3 # only warning | ||
max_length: # warning and error | ||
warning: 40 | ||
error: 200 | ||
excluded: iPhone # excluded via string | ||
allowed_symbols: ["_"] # these are allowed in type names | ||
|
||
shorthand_operator: warning | ||
type_name: warning | ||
force_cast: warning | ||
|
||
# ------------------------------------------------------------------------------ | ||
# CUSTOM RULES | ||
# ------------------------------------------------------------------------------ | ||
|
||
custom_rules: | ||
|
||
# Style Guide | ||
sg_nil_verification: | ||
name: "SG nil verification" | ||
regex: "(!=[ ]*nil[ ]*[{][ ]*[}]|==[ ]*nil[ ]*[{][ ]*[}])" | ||
message: "Avoid use != nil {} or == nil {}. Example: instead of using 'param != nil {} else', use 'param == nil'" | ||
severity: warning | ||
|
||
# Style Guide | ||
is_not_empty_rule: | ||
name: "Not empty verification SG" | ||
regex: "([.]count|[.]length[(][)] )[ ]*>[ ]*0" | ||
message: "Use IsNotEmpty instead of count > 0" | ||
severity: warning | ||
|
||
# Style Guide | ||
isEmpty_rule: | ||
name: "Empty verification SG" | ||
regex: "([.]count|[.]length[(][)] )[ ]*==[ ]*0" | ||
message: "Use isEmpty instead of count == 0" | ||
severity: warning | ||
|
||
# Use to avoid unnecessary inheritance | ||
viewModel_unnecessary_inheritance: | ||
name: "Presenter Inheritance " | ||
regex: "Presenter[ ]*:[ ]*NSObject" | ||
message: "Presenter unnecessary inheritance" | ||
severity: warning | ||
|
||
# Use localized before to upperCase or lowerCase a String | ||
localized_rule: | ||
name: "Localized rule" | ||
regex: "cased[(][])].localized" | ||
message: "Use localized before to upperCase or lowerCase a String" | ||
severity: warning | ||
|
||
# ------------------------------------------------------------------------------ | ||
# REPORTER TYPE (xcode, json, csv, checkstyle, junit, html, emoji) | ||
# ------------------------------------------------------------------------------ | ||
|
||
reporter: "xcode" |
31 changes: 31 additions & 0 deletions
31
...ions/devsprint-julio-fernandes-10/Libraries/FinanceFoundations/FinanceFoundations.podspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Pod::Spec.new do |spec| | ||
|
||
spec.name = 'FinanceFoundations' | ||
spec.version = '0.1.0' | ||
spec.summary = 'Foundations Framework.' | ||
spec.homepage = 'https://framework.com' | ||
spec.author = { 'Munizin' => "pmdm.sys@gmail.com" } | ||
spec.license = { :type => 'Private' } | ||
spec.source = { :git => 'https://framework-source-code.git', | ||
:tag => spec.version.to_s } | ||
|
||
spec.ios.deployment_target = '13.0' | ||
spec.requires_arc = true | ||
|
||
spec.cocoapods_version = '>= 1.5' | ||
spec.swift_version = '5.4' | ||
|
||
spec.source_files = 'FinanceFoundations/**/*.{h,m,swift}' | ||
|
||
spec.resource_bundles = { | ||
'FinanceFoundations' => [ | ||
'FinanceFoundations/**/*.xcassets', | ||
'FinanceFoundations/**/*.xib' | ||
] | ||
} | ||
|
||
spec.resources = [ | ||
'FinanceFoundations/**/*.strings' | ||
] | ||
|
||
end |
15 changes: 15 additions & 0 deletions
15
...ibraries/FinanceFoundations/FinanceFoundations/Classes/Extensions/String+Extensions.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// String+Extensions.swift | ||
// FinanceFoundations | ||
// | ||
// Created by Philippe Muniz Gomes on 03/03/23. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String { | ||
|
||
public static func activityDetails(with price: Float, and time: String) -> String { | ||
return "$\(price) • \(time)" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...tensions/UITableViewCell+Extensions.swift → ...tensions/UITableViewCell+Extensions.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
22 changes: 22 additions & 0 deletions
22
...s/devsprint-julio-fernandes-10/Libraries/FinanceFoundations/FinanceFoundations/Info.plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>$(CURRENT_PROJECT_VERSION)</string> | ||
</dict> | ||
</plist> |
3 changes: 3 additions & 0 deletions
3
...ernandes-10/Libraries/FinanceFoundations/FinanceFoundations/Resources/Localizable.strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// MARK: - Feature | ||
|
||
"Feature.Example.HelloWorld" = "Hello World from SDK!!"; |
15 changes: 15 additions & 0 deletions
15
...aries/FinanceFoundations/FinanceFoundationsTests/FinanceFoundationsInitializerTests.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// FinanceFoundationsInitializerTests.swift | ||
// FinanceFoundationsTests | ||
// | ||
|
||
import XCTest | ||
@testable import FinanceFoundations | ||
|
||
final class FinanceFoundationsInitializerTests: XCTestCase { | ||
|
||
func testHellorWorld() { | ||
XCTAssertEqual(FinanceFoundationsInitializer.helloWorld(), "Hello World from SDK!!") | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...sprint-julio-fernandes-10/Libraries/FinanceFoundations/FinanceFoundationsTests/Info.plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
5 changes: 5 additions & 0 deletions
5
solutions/devsprint-julio-fernandes-10/Libraries/FinanceFoundations/Gemfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "xcpretty" | ||
gem "cocoapods", '1.10.2' | ||
gem "xcode-install" |
24 changes: 24 additions & 0 deletions
24
solutions/devsprint-julio-fernandes-10/Libraries/FinanceFoundations/Podfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
source 'https://cdn.cocoapods.org/' | ||
|
||
platform :ios, '13.0' | ||
|
||
inhibit_all_warnings! | ||
use_frameworks! | ||
|
||
workspace 'FinanceFoundations' | ||
|
||
target 'FinanceFoundations' do | ||
|
||
pod 'SwiftLint' | ||
pod 'SwiftGen', '6.5.1' | ||
|
||
target 'FinanceFoundationsTests' do | ||
# pod 'Dependency', '~> 1.0.0' | ||
end | ||
end | ||
|
||
target 'SampleApp' do | ||
project 'SampleApp/SampleApp' | ||
pod 'FinanceFoundations', :path => './' | ||
end |
24 changes: 24 additions & 0 deletions
24
...int-julio-fernandes-10/Libraries/FinanceFoundations/SampleApp/SampleApp/AppDelegate.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// AppDelegate.swift | ||
// SampleApp | ||
// | ||
|
||
import UIKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
var window: UIWindow? | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
|
||
let window = UIWindow(frame: UIScreen.main.bounds) | ||
window.backgroundColor = .white | ||
window.makeKeyAndVisible() | ||
window.rootViewController = UINavigationController(rootViewController: ViewController()) | ||
self.window = window | ||
|
||
return true | ||
} | ||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.