Skip to content

Instantly share code, notes, and snippets.

@acarolsf
acarolsf / cache-manager.dart
Last active December 26, 2023 04:16
Cache Manager using Flutter
import 'package:get_storage/get_storage.dart';
class CacheValue {
dynamic value;
DateTime? lastSaved;
CacheValue({required this.value, this.lastSaved});
Map<String, dynamic> toJson() => {
'value': value,
@acarolsf
acarolsf / checkVersion-iOS.swift
Created February 23, 2021 23:50
Code to check if there is a new version on AppStore.
//
// CheckUpdate.swift
// CheckApp
//
// Created by Ana Carolina on 13/11/20.
// Copyright © 2020 acarolsf. All rights reserved.
//
import Foundation
import UIKit