Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit d3aca61

Browse files
committed
add pods test application for tvos
1 parent aef439d commit d3aca61

File tree

93 files changed

+5556
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+5556
-9
lines changed

Diff for: android/test-app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android.applicationVariants.all { variant ->
5252

5353
dependencies {
5454
implementation fileTree(include: ['*.jar'], dir: 'libs')
55-
implementation 'com.arthenica:mobile-ffmpeg-full:4.2.2.LTS'
55+
implementation 'com.arthenica:mobile-ffmpeg-full:4.2.2'
5656
// implementation project(':app')
5757
testImplementation 'junit:junit:4.12'
5858
implementation 'com.android.support:support-v4:28.0.0'

Diff for: ios/test-app/manual-frameworks/MobileFFmpegTest/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>2.0</string>
2121
<key>CFBundleVersion</key>
22-
<string>29</string>
22+
<string>30</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>NSCameraUsageDescription</key>

Diff for: ios/test-app/pods-with-tooltips/MobileFFmpegTest/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>1.0</string>
2121
<key>CFBundleVersion</key>
22-
<string>34</string>
22+
<string>35</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>NSCameraUsageDescription</key>

Diff for: ios/test-app/pods-with-tooltips/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ platform :ios, '9.3'
33
use_frameworks!
44

55
target "MobileFFmpegTest" do
6-
pod 'mobile-ffmpeg-full', '4.2.1'
6+
pod 'mobile-ffmpeg-full', '4.2.2.LTS'
77
pod 'NMEasyTipView', '~> 1.2'
88
end

Diff for: ios/test-app/pods-with-tooltips/Podfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
2-
- mobile-ffmpeg-full (4.2.1)
2+
- mobile-ffmpeg-full (4.2.2.LTS)
33
- NMEasyTipView (1.2)
44

55
DEPENDENCIES:
6-
- mobile-ffmpeg-full (= 4.2.1)
6+
- mobile-ffmpeg-full (= 4.2.2.LTS)
77
- NMEasyTipView (~> 1.2)
88

99
SPEC REPOS:
@@ -12,9 +12,9 @@ SPEC REPOS:
1212
- NMEasyTipView
1313

1414
SPEC CHECKSUMS:
15-
mobile-ffmpeg-full: 2a2cca559a0e9b909b431b810cd8c184077b3f41
15+
mobile-ffmpeg-full: ef35cde76b752a4a1479a8128ba7e970a4ccbafb
1616
NMEasyTipView: 04948bb8ee01b22957095e1427be972115b57d02
1717

18-
PODFILE CHECKSUM: 6150e6392e967c7f63c1353c03a19a41f09f30cb
18+
PODFILE CHECKSUM: a6b2311659f7c9b8fdcc814fe26a9fb33562162b
1919

20-
COCOAPODS: 1.7.0
20+
COCOAPODS: 1.7.3

Diff for: tvos/test-app/pods/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/Pods/
2+
/*.framework/
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// AppDelegate.h
3+
//
4+
// Copyright (c) 2019 Taner Sener
5+
//
6+
// This file is part of MobileFFmpeg.
7+
//
8+
// MobileFFmpeg is free software: you can redistribute it and/or modify
9+
// it under the terms of the GNU Lesser General Public License as published by
10+
// the Free Software Foundation, either version 3 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// MobileFFmpeg is distributed in the hope that it will be useful,
14+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU Lesser General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU Lesser General Public License
19+
// along with MobileFFmpeg. If not, see <http://www.gnu.org/licenses/>.
20+
//
21+
22+
#import <UIKit/UIKit.h>
23+
24+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
25+
26+
@property (strong, nonatomic) UIWindow *window;
27+
28+
29+
@end
30+
+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
//
2+
// AppDelegate.m
3+
//
4+
// Copyright (c) 2019 Taner Sener
5+
//
6+
// This file is part of MobileFFmpeg.
7+
//
8+
// MobileFFmpeg is free software: you can redistribute it and/or modify
9+
// it under the terms of the GNU Lesser General Public License as published by
10+
// the Free Software Foundation, either version 3 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// MobileFFmpeg is distributed in the hope that it will be useful,
14+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU Lesser General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU Lesser General Public License
19+
// along with MobileFFmpeg. If not, see <http://www.gnu.org/licenses/>.
20+
//
21+
22+
#import <mobileffmpeg/MobileFFmpegConfig.h>
23+
#import "AppDelegate.h"
24+
25+
void uncaughtExceptionHandler(NSException *exception) {
26+
NSLog(@"Uncaught exception detected: %@.", exception);
27+
NSLog(@"%@", [exception callStackSymbols]);
28+
}
29+
30+
@interface AppDelegate ()
31+
32+
@end
33+
34+
@implementation AppDelegate
35+
36+
37+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
38+
// Override point for customization after application launch.
39+
40+
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
41+
42+
// UPDATE TAB BAR STYLE
43+
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
44+
UITabBar *tabBar = tabBarController.tabBar;
45+
UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0];
46+
UITabBarItem *tabBarItem2 = [tabBar.items objectAtIndex:1];
47+
UITabBarItem *tabBarItem3 = [tabBar.items objectAtIndex:2];
48+
UITabBarItem *tabBarItem4 = [tabBar.items objectAtIndex:3];
49+
UITabBarItem *tabBarItem5 = [tabBar.items objectAtIndex:4];
50+
UITabBarItem *tabBarItem6 = [tabBar.items objectAtIndex:5];
51+
UITabBarItem *tabBarItem7 = [tabBar.items objectAtIndex:6];
52+
tabBarItem1.title = @"COMMAND";
53+
tabBarItem2.title = @"VIDEO";
54+
tabBarItem3.title = @"HTTPS";
55+
tabBarItem4.title = @"AUDIO";
56+
tabBarItem5.title = @"SUBTITLE";
57+
tabBarItem6.title = @"VID.STAB";
58+
tabBarItem7.title = @"PIPE";
59+
60+
// SELECTED BAR ITEM
61+
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
62+
[UIColor whiteColor], NSForegroundColorAttributeName,
63+
[UIFont systemFontOfSize:38], NSFontAttributeName,
64+
nil] forState:UIControlStateSelected];
65+
66+
// NOT SELECTED BAR ITEMS
67+
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
68+
[UIColor darkGrayColor], NSForegroundColorAttributeName,
69+
[UIFont systemFontOfSize:38], NSFontAttributeName,
70+
nil] forState:UIControlStateNormal];
71+
72+
NSString *resourceFolder = [[NSBundle mainBundle] resourcePath];
73+
NSDictionary *fontNameMapping = @{@"MyFontName" : @"Doppio One"};
74+
75+
[MobileFFmpegConfig setFontDirectory:resourceFolder with:fontNameMapping];
76+
[MobileFFmpegConfig setFontDirectory:resourceFolder with:nil];
77+
78+
return YES;
79+
}
80+
81+
82+
- (void)applicationWillResignActive:(UIApplication *)application {
83+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
84+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
85+
}
86+
87+
88+
- (void)applicationDidEnterBackground:(UIApplication *)application {
89+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
90+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
91+
}
92+
93+
94+
- (void)applicationWillEnterForeground:(UIApplication *)application {
95+
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
96+
}
97+
98+
99+
- (void)applicationDidBecomeActive:(UIApplication *)application {
100+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
101+
}
102+
103+
104+
- (void)applicationWillTerminate:(UIApplication *)application {
105+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
106+
}
107+
108+
109+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-1280x768.png"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-1280x768.png"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-1280x768.png"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-400x240.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "tv",
10+
"filename" : "mobile-ffmpeg-icon-v5-800x480.png",
11+
"scale" : "2x"
12+
}
13+
],
14+
"info" : {
15+
"version" : 1,
16+
"author" : "xcode"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-400x240.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "tv",
10+
"filename" : "mobile-ffmpeg-icon-v5-800x480.png",
11+
"scale" : "2x"
12+
}
13+
],
14+
"info" : {
15+
"version" : 1,
16+
"author" : "xcode"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "mobile-ffmpeg-icon-v5-400x240.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "tv",
10+
"filename" : "mobile-ffmpeg-icon-v5-800x480.png",
11+
"scale" : "2x"
12+
}
13+
],
14+
"info" : {
15+
"version" : 1,
16+
"author" : "xcode"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

0 commit comments

Comments
 (0)