Code Monkey home page Code Monkey logo

appreviewpostman's People

Contributors

vox-humana avatar

Stargazers

 avatar

Watchers

 avatar

appreviewpostman's Issues

Cleanup deleted reviews

App Store is full of spam reviews. Apple usually deletes them after a couple of days. It would be nice to synchronise reviews in a chat with App Store as much as possible.

Subtasks:

  • Save not only the latest processed but a buffer of sent reviews ids
  • Save sent corresponding messages ids
  • Integrate API for message deletion: TamTam, Telegram. Ideally, it should be done via providing additional optional web hook parameter, the app shouldn't know anything about any particular messenger API.

Note: messengers have limits on period when a message can be deleted (ex 48 hours in Telegram). Maybe, make sense to add some optimisation based on this knowledge (providing an extra parameter?). Should be configurable without recompilation.

Use Swift 5.5 concurrency

It should be available in Swift for Linux.
Also, playing with SwiftNIO was a good exercise but seems that it is time to cleanup and use URLSession.
As async methods from URLSession not available on Linux, a simple wrapper like this could help:

import FoundationNetworking

extension URLSession {
    func data(for request: URLRequest) async throws -> (Data, URLResponse) {
        try await withCheckedThrowingContinuation { continuation in
            dataTask(with: request) { data, response, error in
                if let error = error {
                    continuation.resume(throwing: error)
                } else if let data = data, let response = response {
                    continuation.resume(returning: (data, response))
                } else {
                    continuation.resume(throwing: URLSessionError.unknownError)
                }
            }.resume()
        }
    }
}

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.