Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
google-automerger committed Nov 19, 2014
1 parent 3b2617e commit 459f6f4
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 14 deletions.
17 changes: 11 additions & 6 deletions MediaRecorderSample/build.gradle → Application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ buildscript {
}
}

apply plugin: 'android'
apply plugin: 'com.android.application'


dependencies {

// Add the support lib that is appropriate for SDK 14
compile "com.android.support:support-v13:20.+"

compile "com.android.support:support-v4:21.+"
compile "com.android.support:support-v13:21.+"
compile "com.android.support:cardview-v7:21.+"

}

Expand All @@ -28,9 +28,13 @@ List<String> dirs = [
'template'] // boilerplate code that is generated by the sample template process

android {
compileSdkVersion 19
compileSdkVersion 21
buildToolsVersion "21.0.0"

buildToolsVersion "20"
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
}

sourceSets {
main {
Expand All @@ -43,6 +47,7 @@ android {
androidTest.java.srcDirs = ['tests/src']

}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->

<!-- This app records A/V content from camera and stores it to disk -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import android.os.Looper;
import android.view.Surface;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayDeque;
import java.util.Queue;
Expand Down Expand Up @@ -136,7 +137,7 @@ public void setOutputFormatChangedListener(final OutputFormatChangedListener
* @return
*/
public static MediaCodecWrapper fromVideoFormat(final MediaFormat trackFormat,
Surface surface) {
Surface surface) throws IOException {
MediaCodecWrapper result = null;
MediaCodec videoCodec = null;

Expand Down
22 changes: 22 additions & 0 deletions Application/src/main/res/values-v21/template-styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
Copyright 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<resources>

<!-- Activity themes -->
<style name="Theme.Base" parent="android:Theme.Material.Light" />

</resources>
5 changes: 1 addition & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@



include 'MediaRecorderSample'
include 'Application'

0 comments on commit 459f6f4

Please sign in to comment.