From 53d709d9f26b11611e7218ac14701528902ac82c Mon Sep 17 00:00:00 2001 From: Michael Len Date: Tue, 4 Oct 2016 15:18:20 -0700 Subject: [PATCH] update OoyalaSkinSampleApp and ExoSampleApp to use updated react libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit still see crash: E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.ooyala.sample.SkinCompleteSampleApp, PID: 29801 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.NoClassDefFoundError: com.facebook.react.CoreModulesPackage$1 at com.facebook.react.CoreModulesPackage.getNativeModules(CoreModulesPackage.java:66) at com.facebook.react.LazyReactPackage.createNativeModules(LazyReactPackage.java:39) at com.facebook.react.XReactInstanceManagerImpl.processPackage(XReactInstanceManagerImpl.java:932) at com.facebook.react.XReactInstanceManagerImpl.createReactContext(XReactInstanceManagerImpl.java:842) at com.facebook.react.XReactInstanceManagerImpl.access$600(XReactInstanceManagerImpl.java:103) at com.facebook.react.XReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(XReactInstanceManagerImpl.java:203) at com.facebook.react.XReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(XReactInstanceManagerImpl.java:182) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  at java.lang.Thread.run(Thread.java:818)  --- ExoPlayerSampleApp/app/build.gradle | 34 +++++++++++-------- OoyalaSkinSampleApp/app/build.gradle | 24 +++++++------ .../gradle/wrapper/gradle-wrapper.properties | 4 +-- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/ExoPlayerSampleApp/app/build.gradle b/ExoPlayerSampleApp/app/build.gradle index c708499e2..3020804c7 100644 --- a/ExoPlayerSampleApp/app/build.gradle +++ b/ExoPlayerSampleApp/app/build.gradle @@ -66,7 +66,7 @@ task copyTask(type: Copy) { from new File(projectDir, '../../vendor/Ooyala/OoyalaSkinSDK-Android/OoyalaSkinSDK.jar') from new File(projectDir, '../../vendor/Freewheel/Android_AdManagerDistribution/FWAdManager.jar') from new File(projectDir, '../../vendor/Google/ima-android-v330.jar') - from new File(projectDir, '../../vendor/Facebook/react-native-0.26.2.aar') + from new File(projectDir, '../../vendor/Ooyala/OoyalaSkinSDK-Android/react-native-0.33.0.aar') into new File(projectDir, './libs') doLast { println "Jars updated." @@ -97,18 +97,22 @@ dependencies { // compile project(':ooyalaCoreSDK') compile files('libs/OoyalaSkinSDK.jar') - compile 'com.google.android.gms:play-services-ads:8.4.0' - compile 'com.android.support:appcompat-v7:23.4.0' - compile 'com.android.support:recyclerview-v7:23.4.0' - compile group: 'com.facebook.fresco', name: 'fresco', version: '0.8.1' - compile group: 'com.facebook.fresco', name: 'imagepipeline-okhttp', version: '0.8.1' - compile group: 'com.facebook.stetho', name: 'stetho', version: '1.2.0' - compile group: 'com.facebook.stetho', name: 'stetho-okhttp', version: '1.2.0' - compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.2.3' - compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0' - compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.5.0' - compile group: 'com.squareup.okhttp', name: 'okhttp-ws', version: '2.5.0' - compile group: 'com.squareup.okio', name: 'okio', version: '1.6.0' - compile group: 'org.webkit', name: 'android-jsc', version: 'r174650' - compile(name:'react-native', version:'0.26.2', ext:'aar') + compile 'com.google.android.gms:play-services-ads:8.4.0' + + + compile 'com.facebook.soloader:soloader:0.1.0' + + compile 'com.android.support:appcompat-v7:23.4.0' + compile 'com.android.support:recyclerview-v7:23.4.0' + compile 'com.facebook.fresco:fresco:0.11.0' + compile 'com.facebook.fresco:imagepipeline-okhttp3:0.11.0' + compile 'com.facebook.stetho:stetho:1.2.0' + compile 'com.facebook.stetho:stetho-okhttp:1.2.0' + compile 'com.fasterxml.jackson.core:jackson-core:2.2.3' + compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0' + compile 'com.squareup.okhttp3:okhttp:3.4.1' + compile 'com.squareup.okhttp3:okhttp-ws:3.4.1' + compile 'com.squareup.okio:okio:1.9.0' + compile group: 'org.webkit', name: 'android-jsc', version: 'r174650' + compile(name:'react-native', version:'0.33.0', ext:'aar') } diff --git a/OoyalaSkinSampleApp/app/build.gradle b/OoyalaSkinSampleApp/app/build.gradle index c9dfa0269..79b366aa5 100644 --- a/OoyalaSkinSampleApp/app/build.gradle +++ b/OoyalaSkinSampleApp/app/build.gradle @@ -59,7 +59,8 @@ task copyTask(type: Copy) { from new File(projectDir, '../../vendor/Ooyala/OoyalaSkinSDK-Android/OoyalaSkinSDK.jar') from new File(projectDir, '../../vendor/Freewheel/Android_AdManagerDistribution/FWAdManager.jar') from new File(projectDir, '../../vendor/Google/ima-android-v330.jar') - from new File(projectDir, '../../vendor/Facebook/react-native-0.26.2.aar') +// from new File(projectDir, '../../vendor/Facebook/react-native-0.26.2.aar') + from new File(projectDir, '../../vendor/Ooyala/OoyalaSkinSDK-Android/react-native-0.33.0.aar') into new File(projectDir,'./libs') println "Jars updated." } @@ -81,17 +82,20 @@ dependencies { compile files('libs/OoyalaSDK.jar') compile files('libs/ima-android-v330.jar') compile files('libs/OoyalaSkinSDK.jar') + + compile 'com.facebook.soloader:soloader:0.1.0' + compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0' - compile group: 'com.facebook.fresco', name: 'fresco', version: '0.8.1' - compile group: 'com.facebook.fresco', name: 'imagepipeline-okhttp', version: '0.8.1' - compile group: 'com.facebook.stetho', name: 'stetho', version: '1.2.0' - compile group: 'com.facebook.stetho', name: 'stetho-okhttp', version: '1.2.0' - compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.2.3' + compile 'com.facebook.fresco:fresco:0.11.0' + compile 'com.facebook.fresco:imagepipeline-okhttp3:0.11.0' + compile 'com.facebook.stetho:stetho:1.2.0' + compile 'com.facebook.stetho:stetho-okhttp:1.2.0' + compile 'com.fasterxml.jackson.core:jackson-core:2.2.3' compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0' - compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.5.0' - compile group: 'com.squareup.okhttp', name: 'okhttp-ws', version: '2.5.0' - compile group: 'com.squareup.okio', name: 'okio', version: '1.6.0' + compile 'com.squareup.okhttp3:okhttp:3.4.1' + compile 'com.squareup.okhttp3:okhttp-ws:3.4.1' + compile 'com.squareup.okio:okio:1.9.0' compile group: 'org.webkit', name: 'android-jsc', version: 'r174650' - compile(name:'react-native', version:'0.26.2', ext:'aar') + compile(name:'react-native', version:'0.33.0', ext:'aar') } diff --git a/OoyalaSkinSampleApp/gradle/wrapper/gradle-wrapper.properties b/OoyalaSkinSampleApp/gradle/wrapper/gradle-wrapper.properties index 0b726827f..2e09d151b 100644 --- a/OoyalaSkinSampleApp/gradle/wrapper/gradle-wrapper.properties +++ b/OoyalaSkinSampleApp/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue May 31 11:48:07 PDT 2016 +#Tue Oct 04 15:13:59 PDT 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip