Skip to content

Commit

Permalink
Merge branch 'master' into 'master'
Browse files Browse the repository at this point in the history
Initial application

Closes #38, #8, #7, #6, #5, and #4

See merge request aossie/agora-ios!26
  • Loading branch information
thuva4 committed May 21, 2020
2 parents bd9b959 + 7555c45 commit 2d7b0f7
Show file tree
Hide file tree
Showing 1,649 changed files with 316,163 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

# Created by https://www.gitignore.io/api/swift
# Edit at https://www.gitignore.io/?templates=swift

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## 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
.build/
# Add this line if you want to avoid checking in Xcode SPM integration.
# .swiftpm/xcode

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# Accio dependency management
Dependencies/
.accio/

# 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

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

# End of https://www.gitignore.io/api/swift


14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
before_script:
- brew update;
- brew install carthage;
# - sudo gem install xcpretty;
- carthage bootstrap;
stages:
- build
build_project:
stage: build
script:
- xcodebuild clean -project agora-ios.xcodeproj -scheme agora-ios | xcpretty
- xcodebuild test -project agora-ios.xcodeproj -scheme agora-ios -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.4.1' | xcpretty -s
tags:
- ios
2 changes: 2 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github "realm/realm-cocoa"
github "kvyatkovskys/KVKCalendar"
2 changes: 2 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github "kvyatkovskys/KVKCalendar" "0.3.0"
github "realm/realm-cocoa" "v4.4.1"
10 changes: 10 additions & 0 deletions Carthage/Checkouts/KVKCalendar/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*xcuserdata*
/build/*
/.idea/*
*.mobileprovision
report.xml
fastlane/test_output/
fastlane/xcov_report/
.scannerwork
*.xcuserstate
Example/build/*
45 changes: 45 additions & 0 deletions Carthage/Checkouts/KVKCalendar/.swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
disabled_rules: # rule identifiers to exclude from running
opt_in_rules: # some rules are only opt-in
included: # paths to include during linting. `--path` is ignored if present.
excluded: # paths to ignore during linting. Takes precedence over `included`.

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
cyclomatic_complexity: 15
force_cast: warning # implicitly
force_try:
severity: warning # explicitly
# rules that have both warning and error levels, can set just the warning level
# implicitly
line_length: 500
large_tuple:
warning: 3
error: 5
# they can set both implicitly with an array
type_body_length:
- 300 # warning
- 400 # error
# or they can set both explicitly
file_length:
warning: 1000
error: 1200
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
function_body_length: 150
function_parameter_count:
warning: 8
error: 10
type_name:
min_length: 2 # only warning
max_length: # warning and error
warning: 50
error: 70
excluded: iPhone # excluded via string
variable_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- URL
- GlobalAPIKey
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)
12 changes: 12 additions & 0 deletions Carthage/Checkouts/KVKCalendar/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode11
language: swift
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -workspace Example/KVKCalendar.xcworkspace -scheme KVKCalendar-Example -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.0' ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
63 changes: 63 additions & 0 deletions Carthage/Checkouts/KVKCalendar/Example/.swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
disabled_rules: # rule identifiers to exclude from running
- trailing_whitespace
- variable_name
- type_body_length
- valid_docs
- vertical_parameter_alignment
- unused_closure_parameter
- closure_parameter_position
- empty_enum_arguments
opt_in_rules: # some rules are only opt-in
included: # paths to include during linting. `--path` is ignored if present.
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
# - Source/ExcludedFolder
# - Source/ExcludedFile.swift

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
cyclomatic_complexity: 15
force_cast: warning # implicitly
force_try:
severity: warning # explicitly
# rules that have both warning and error levels, can set just the warning level
# implicitly
line_length: 500
large_tuple:
warning: 3
error: 5
# they can set both implicitly with an array
type_body_length:
- 300 # warning
- 400 # error
# or they can set both explicitly
file_length:
warning: 1000
error: 1200
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
function_body_length: 150
function_parameter_count:
warning: 8
error: 10
type_name:
min_length: 2 # only warning
max_length: # warning and error
warning: 50
error: 70
excluded: iPhone # excluded via string
variable_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- URL
- GlobalAPIKey
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)

custom_rules:
explicit_failure_calls:
name: "Avoid asserting 'false'"
regex: "((assert|precondition)\\(false)"
message: "Use assertionFailure() or preconditionFailure() instead."
severity: warning
Loading

0 comments on commit 2d7b0f7

Please sign in to comment.