bump android dependencies (#524)
* bump android dependencies * fixed lint
This commit is contained in:
		
				
					committed by
					
						 Matt Apperson
						Matt Apperson
					
				
			
			
				
	
			
			
			
						parent
						
							e76936b4fc
						
					
				
				
					commit
					be55cef093
				
			| @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | |||||||
|  |  | ||||||
| android { | android { | ||||||
|     compileSdkVersion 23 |     compileSdkVersion 23 | ||||||
|     buildToolsVersion "23.0.1" |     buildToolsVersion "25.0.2" | ||||||
|  |  | ||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         minSdkVersion 16 |         minSdkVersion 16 | ||||||
|   | |||||||
| @@ -1,12 +1,12 @@ | |||||||
| apply plugin: 'com.android.library' | apply plugin: 'com.android.library' | ||||||
|  |  | ||||||
| android { | android { | ||||||
|     compileSdkVersion 23 |     compileSdkVersion 25 | ||||||
|     buildToolsVersion "23.0.1" |     buildToolsVersion "25.0.2" | ||||||
|  |  | ||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         minSdkVersion 16 |         minSdkVersion 16 | ||||||
|         targetSdkVersion 22 |         targetSdkVersion 25 | ||||||
|         versionCode 1 |         versionCode 1 | ||||||
|         versionName "1.0" |         versionName "1.0" | ||||||
|         ndk { |         ndk { | ||||||
| @@ -16,6 +16,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|  |     //noinspection GradleDynamicVersion | ||||||
|     provided 'com.facebook.react:react-native:+' |     provided 'com.facebook.react:react-native:+' | ||||||
|     compile 'com.yqritc:android-scalablevideoview:1.0.4' |     compile 'com.yqritc:android-scalablevideoview:1.0.4' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,5 +1,6 @@ | |||||||
| package com.brentvatne.react; | package com.brentvatne.react; | ||||||
|  |  | ||||||
|  | import android.annotation.SuppressLint; | ||||||
| import android.content.res.AssetFileDescriptor; | import android.content.res.AssetFileDescriptor; | ||||||
| import android.graphics.Matrix; | import android.graphics.Matrix; | ||||||
| import android.media.MediaPlayer; | import android.media.MediaPlayer; | ||||||
| @@ -8,8 +9,10 @@ import android.os.Handler; | |||||||
| import android.util.Log; | import android.util.Log; | ||||||
| import android.view.MotionEvent; | import android.view.MotionEvent; | ||||||
| import android.webkit.CookieManager; | import android.webkit.CookieManager; | ||||||
|  |  | ||||||
| import android.widget.MediaController; | import android.widget.MediaController; | ||||||
|  |  | ||||||
|  | import com.android.vending.expansion.zipfile.APKExpansionSupport; | ||||||
|  | import com.android.vending.expansion.zipfile.ZipResourceFile; | ||||||
| import com.facebook.react.bridge.Arguments; | import com.facebook.react.bridge.Arguments; | ||||||
| import com.facebook.react.bridge.LifecycleEventListener; | import com.facebook.react.bridge.LifecycleEventListener; | ||||||
| import com.facebook.react.bridge.WritableMap; | import com.facebook.react.bridge.WritableMap; | ||||||
| @@ -17,9 +20,6 @@ import com.facebook.react.uimanager.ThemedReactContext; | |||||||
| import com.facebook.react.uimanager.events.RCTEventEmitter; | import com.facebook.react.uimanager.events.RCTEventEmitter; | ||||||
| import com.yqritc.scalablevideoview.ScalableType; | import com.yqritc.scalablevideoview.ScalableType; | ||||||
| import com.yqritc.scalablevideoview.ScalableVideoView; | import com.yqritc.scalablevideoview.ScalableVideoView; | ||||||
|  |  | ||||||
| import com.android.vending.expansion.zipfile.APKExpansionSupport; |  | ||||||
| import com.android.vending.expansion.zipfile.ZipResourceFile; |  | ||||||
| import com.yqritc.scalablevideoview.ScaleManager; | import com.yqritc.scalablevideoview.ScaleManager; | ||||||
| import com.yqritc.scalablevideoview.Size; | import com.yqritc.scalablevideoview.Size; | ||||||
|  |  | ||||||
| @@ -27,6 +27,7 @@ import java.io.IOException; | |||||||
| import java.util.HashMap; | import java.util.HashMap; | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
|  |  | ||||||
|  | @SuppressLint("ViewConstructor") | ||||||
| public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnPreparedListener, MediaPlayer | public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnPreparedListener, MediaPlayer | ||||||
|         .OnErrorListener, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnInfoListener, LifecycleEventListener, MediaController.MediaPlayerControl { |         .OnErrorListener, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnInfoListener, LifecycleEventListener, MediaController.MediaPlayerControl { | ||||||
|  |  | ||||||
| @@ -145,6 +146,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|  |     @SuppressLint("DrawAllocation") | ||||||
|     protected void onLayout(boolean changed, int left, int top, int right, int bottom) { |     protected void onLayout(boolean changed, int left, int top, int right, int bottom) { | ||||||
|         super.onLayout(changed, left, top, right, bottom); |         super.onLayout(changed, left, top, right, bottom); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -83,13 +83,13 @@ def enableSeparateBuildPerCPUArchitecture = false | |||||||
| def enableProguardInReleaseBuilds = false | def enableProguardInReleaseBuilds = false | ||||||
|  |  | ||||||
| android { | android { | ||||||
|     compileSdkVersion 23 |     compileSdkVersion 25 | ||||||
|     buildToolsVersion "23.0.1" |     buildToolsVersion '25.0.2' | ||||||
|  |  | ||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         applicationId "com.videoplayer" |         applicationId "com.videoplayer" | ||||||
|         minSdkVersion 16 |         minSdkVersion 16 | ||||||
|         targetSdkVersion 22 |         targetSdkVersion 25 | ||||||
|         versionCode 1 |         versionCode 1 | ||||||
|         versionName "1.0" |         versionName "1.0" | ||||||
|         ndk { |         ndk { | ||||||
| @@ -127,7 +127,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     compile "com.android.support:appcompat-v7:23.0.1" |     compile "com.android.support:appcompat-v7:25.2.0" | ||||||
|     compile "com.facebook.react:react-native:+"  // From node_modules |     compile "com.facebook.react:react-native:+"  // From node_modules | ||||||
|     compile project(':react-native-video') |     compile project(':react-native-video') | ||||||
| //    compile project(':react-native-video-exoplayer') // uncomment to use exoplayer | //    compile project(':react-native-video-exoplayer') // uncomment to use exoplayer | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ buildscript { | |||||||
|         jcenter() |         jcenter() | ||||||
|     } |     } | ||||||
|     dependencies { |     dependencies { | ||||||
|         classpath 'com.android.tools.build:gradle:2.2.3' |         classpath 'com.android.tools.build:gradle:2.3.0' | ||||||
|  |  | ||||||
|         // NOTE: Do not place your application dependencies here; they belong |         // NOTE: Do not place your application dependencies here; they belong | ||||||
|         // in the individual module build.gradle files |         // in the individual module build.gradle files | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| #Sat Oct 08 18:53:26 BST 2016 | #Thu Mar 09 08:03:03 PST 2017 | ||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip | ||||||
|   | |||||||
| @@ -8,5 +8,5 @@ include ':app', | |||||||
| //project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../android') | //project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../android') | ||||||
| //project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../../android-exoplayer') | //project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../../android-exoplayer') | ||||||
|  |  | ||||||
| project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android') | project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../android') | ||||||
| project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') | project(':react-native-video-exoplayer').projectDir = new File(rootProject.projectDir, '../../android-exoplayer') | ||||||
|   | |||||||
| @@ -6,12 +6,10 @@ | |||||||
|     "start": "node_modules/react-native/packager/packager.sh" |     "start": "node_modules/react-native/packager/packager.sh" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|  |  | ||||||
|     "react": "15.4.2", |     "react": "15.4.2", | ||||||
|     "react-native": "^0.40.0", |     "react-native": "^0.42.0", | ||||||
|  |  | ||||||
|     "react-native-video": "file:../", |     "react-native-video": "file:../", | ||||||
|     "react-native-windows": "~0.38.0" |     "react-native-windows": "^0.40.0" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "rnpm-plugin-windows": "~0.2.3" |     "rnpm-plugin-windows": "~0.2.3" | ||||||
|   | |||||||
							
								
								
									
										4673
									
								
								example/yarn.lock
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4673
									
								
								example/yarn.lock
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user