Giter VIP home page Giter VIP logo

liveevents's Introduction

[ci]

LiveEvents

Your Youtube video manager.
It is an example of using YTLiveStreaming and SwiftGoogleSignIn Swift packages (SPM). It uses SwiftUI, Combine, New Swift Concurrency (await/async), Redux pattern for Swift.

Requirements

  • Xcode 13+
  • Swift 5.*

Introduction

  • First of all follow instructions for the YTLiveStreaming Framework and Package to create and set up Google application which uses the YouTube Data API v3.

  • Download or clone the repository

  • Launch console command pod install in the root directory

  • Open the LiveEvents.xcworkspace file in Xcode

  • Update current bundle id on yours

  • Rename Config.plist.example.plist (you can find it in the root directory) to Config.plist. Include it into the app main bundle. It used by SwiftGoogleSignIn package for Google signing in. Edit the Config.plist namely change client ID and API key values on yours

Config.plist

  • Open Info.plist and edit CFBundleURLSchemes key value. Change the value that starts with "com.googleusercontent.apps." based on your API key. It should be set to the reversed API key. The API key has the format XXXXXXXX.apps.googleusercontent.com and the allowed URL should be com.googleusercontent.apps.XXXXXXXX :

Info.plist Example

SwiftUI and Combine

UI of the app is developed with using SwiftUI and Combine frameworks and newest Concurrency Swift approach.

The Redux pattern

The app uses Redux pattern. In current version it's used for Sign In only. Please pay attention on the Home and SignIn screens.

Libraries Used

Video

LiveEvents Demo Video

The 'UIKit' of the app version

Branch 'UIKit' consists UIKit version of the app.

OSLog. Reading logs with the Console.app

  • Start the Console.app
  • Select your device (or simulator) in the Devices menu
  • Set up SUBSYSTEM and CATEGORY appstate in the search field
  • Save search pattern

Author Serhii Krotkykh

Changes history:

  • 20-12-2022 Update according 0.2.29 YTLeaveStreaming package build requarements, update mock data
  • 19-12-2022 Update according of the 0.2.28 YTLeaveStreaming package build
  • 30-11-2022 update with SwiftGoogleSignIn 1.57 build
  • 20-11-2022 current user session is safe now
  • 20-09-2022 bug fixes. Redesign home and log in screens
  • 20-07-2022 implement Redux pattern for Login scene
  • 15-07-2022 added CI unit tests with Xcode Actions
  • 11-11-2016 the project was created

liveevents's People

Contributors

skrotkih avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.