Skip to content

Commit

Permalink
BIT-62: Adds the initial project structure (#7)
Browse files Browse the repository at this point in the history
nathan-livefront authored Aug 24, 2023
1 parent 8d8c9d3 commit c6bf6af
Showing 76 changed files with 2,788 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
*.strings diff
94 changes: 71 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,72 @@
# General
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

# macOS
.DS_Store
Thumbs.db

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Node
node_modules
npm-debug.log

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## UserDefaults testing
*.swift.plist

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM
*dSYMs.zip

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
fastlane/README.md

# XcodeGen
/*.xcodeproj
15 changes: 15 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# format options
--indent 4
--ifdef noindent
--swiftversion 5.8.1
--header strip
--funcattributes prev-line
--typeattributes prev-line
--varattributes same-line

# file options
--exclude **/Generated

# rules
--disable elseOnSameLine,semicolons,unusedArguments,opaqueGenericParameters
--enable blankLineAfterImports,isEmpty,blockComments,docComments,sortedSwitchCases
71 changes: 71 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
analyzer_rules:
- unused_declaration
- unused_import

opt_in_rules:
- anonymous_argument_in_multiline_closure
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- empty_collection_literal
- empty_count
- empty_string
- fallthrough
- file_name
- file_name_no_space
- first_where
- identical_operands
- missing_docs
- multiline_arguments
- multiline_parameters
- operator_usage_whitespace
- prefer_zero_over_explicit_init
- sorted_imports
- sorted_first_last
- static_operator
- toggle_bool
- type_contents_order
- unneeded_parentheses_in_closure_argument
- unowned_variable_capture
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition

excluded:
- BitwardenShared/Application/Support/Generated

cyclomatic_complexity:
ignores_case_statements: true

multiline_arguments:
only_enforce_after_first_closure_on_first_line: true

trailing_comma:
mandatory_comma: true

type_contents_order:
order:
- case
- type_alias
- associated_type
- subtype
- type_property
- instance_property
- ib_inspectable
- ib_outlet
- initializer
- deinitializer
- type_method
- view_life_cycle_method
- ib_action
- other_method
- subscript

identifier_name:
excluded:
- id
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Bitwarden/Application/Support/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
31 changes: 31 additions & 0 deletions Bitwarden/Application/Support/Bitwarden.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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>com.apple.developer.authentication-services.autofill-credential-provider</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.8bit.bitwarden</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.8bit.bitwarden</string>
</array>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.$(CFBundleIdentifier)</string>
</array>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>NDEF</string>
<string>TAG</string>
</array>
<key>com.apple.developer.associated-domains</key>
<array>
<string>webcredentials:bitwarden.com</string>
</array>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
8 changes: 8 additions & 0 deletions Bitwarden/Application/Support/Configs/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon-Dev
CODE_SIGN_ENTITLEMENTS = Bitwarden/Application/Support/Entitlements/Bitwarden.entitlements
CODE_SIGN_STYLE = Automatic
DEVELOPMENT_TEAM = EMPTY
FIREBASE_CONFIG_FILENAME = GoogleService-Info.plist
INFOPLIST_FILE = Bitwarden/Application/Support/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = com.8bit.bitwarden
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) PREVIEWS
8 changes: 8 additions & 0 deletions Bitwarden/Application/Support/Configs/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CODE_SIGN_ENTITLEMENTS = Bitwarden/Application/Support/Entitlements/Bitwarden.entitlements
CODE_SIGN_STYLE = Automatic
DEVELOPMENT_TEAM = EMPTY
FIREBASE_CONFIG_FILENAME = GoogleService-Info.plist
INFOPLIST_FILE = Bitwarden/Application/Support/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = com.8bit.bitwarden
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)
34 changes: 34 additions & 0 deletions Bitwarden/Application/Support/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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>CLIENT_ID</key>
<string>___________</string>
<key>REVERSED_CLIENT_ID</key>
<string>___________</string>
<key>API_KEY</key>
<string>___________</string>
<key>GCM_SENDER_ID</key>
<string>___________</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.8bit.bitwarden</string>
<key>PROJECT_ID</key>
<string>___________</string>
<key>STORAGE_BUCKET</key>
<string>___________</string>
<key>IS_ADS_ENABLED</key>
<false/>
<key>IS_ANALYTICS_ENABLED</key>
<false/>
<key>IS_APPINVITE_ENABLED</key>
<true/>
<key>IS_GCM_ENABLED</key>
<true/>
<key>IS_SIGNIN_ENABLED</key>
<true/>
<key>GOOGLE_APP_ID</key>
<string>___________</string>
</dict>
</plist>
Loading

0 comments on commit c6bf6af

Please sign in to comment.