Skip to content

Commit

Permalink
Merge pull request #1 from InstaRobot/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
InstaRobot authored Dec 2, 2021
2 parents 0249707 + 6daa8ee commit 448d11e
Show file tree
Hide file tree
Showing 31 changed files with 2,077 additions and 0 deletions.
486 changes: 486 additions & 0 deletions Example-iOS/Example-iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Example-iOS/Example-iOS.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
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,98 @@
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Example-iOS/Example-iOS/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
41 changes: 41 additions & 0 deletions Example-iOS/Example-iOS/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// ContentView.swift
// Example-iOS
//
// Created by Vitaliy Podolskiy on 24.11.2021.
//

import SwiftUI
import UpdateChecker

struct ContentView: View {
var body: some View {
Text("Shake your device to view log!!!")
.padding()
.onAppear {
self.startChecker()
}
}

private func startChecker() {
let configuration = UpdateConfiguration(
bundleIdentifier: "io.itforces.ios.timetable",
daysBeforeCheck: 0
)
let checker = Checker(with: configuration) { results in
switch results {
case .success(let updateResults):
print(updateResults)
case .failure(let error):
print(error.localizedDescription)
}
}
checker.check()
}
}

struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
26 changes: 26 additions & 0 deletions Example-iOS/Example-iOS/Example_iOSApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// Example_iOSApp.swift
// Example-iOS
//
// Created by Vitaliy Podolskiy on 24.11.2021.
//

import SwiftUI
import netfox

@main
struct Example_iOSApp: App {
init() {
startNetfox()
}

var body: some Scene {
WindowGroup {
ContentView()
}
}

private func startNetfox() {
NFX.sharedInstance().start()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
13 changes: 13 additions & 0 deletions Example-iOS/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '12.0'

target 'Example-iOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Example-iOS
# pod 'UpdateChecker', :path => '../'
pod 'netfox'

end

23 changes: 23 additions & 0 deletions UpdateChecker.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Pod::Spec.new do |s|
s.name = 'UpdateChecker'
s.version = '1.0'
s.swift_version = '5.1', '5.2', '5.3', '5.4', '5.5'
s.summary = 'Simple app version checker from AppStore'
s.homepage = 'https://github.com/InstaRobot/Update-Checker'
s.license = 'MIT'
s.author = { 'Vitaliy Podolskiy' => 'instarobot.net@gmail.com' }
s.description = <<-DESC
Simple app version checker from AppStore.
DESC
s.source = { :git => 'https://github.com/InstaRobot/Update-Checker.git', :tag => s.version.to_s }
s.platform = :ios
s.ios.deployment_target = '12.0'
s.requires_arc = true
s.source_files = 'UpdateChecker/Source/**/*'
s.frameworks = 'Foundation'#, 'CommonCrypto'
s.module_name = 'UpdateChecker'
s.documentation_url = 'https://github.com/InstaRobot/Update-Checker'
#s.dependency 'CryptoSwift', '1.3.8'

s.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER': 'studio.devlab.UpdateChecker' }
end
Loading

0 comments on commit 448d11e

Please sign in to comment.