Skip to content

Commit

Permalink
Update Gradle version (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
whackawaldo committed Apr 22, 2020
1 parent 45b92ab commit de30ced
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 24 deletions.
6 changes: 3 additions & 3 deletions base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ android {
def gitBranch = (System.getenv('GIT_BRANCH') == null ? 'local' : System.getenv('GIT_BRANCH').replace('origin/', ''))
def releaseType = (System.getenv('RELEASE_TYPE') == null ? 'NONE' : System.getenv('RELEASE_TYPE'))
def updateUrls = (System.getenv('UPDATE_URLS') == null ? '"https://popcorntime.sh/android-update.json"' : System.getenv('UPDATE_URLS'))
def animeUrls = (System.getenv('ANIME_URLS') == null ? '"https://anime.api-fetch.website/"' : System.getenv('ANIME_URLS'))
def movieUrls = (System.getenv('MOVIE_URLS') == null ? '"https://movies-v2.api-fetch.website/"' : System.getenv('MOVIE_URLS'))
def tvUrls = (System.getenv('TV_URLS') == null ? '"http://tv-v2.api-fetch.website/"' : System.getenv('TV_URLS'))
def animeUrls = (System.getenv('ANIME_URLS') == null ? '"https://anime.api-fetch.sh/"' : System.getenv('ANIME_URLS'))
def movieUrls = (System.getenv('MOVIE_URLS') == null ? '"https://movies-v2.api-fetch.sh/"' : System.getenv('MOVIE_URLS'))
def tvUrls = (System.getenv('TV_URLS') == null ? '"https://tv-v2.api-fetch.sh/"' : System.getenv('TV_URLS'))

defaultConfig {
minSdkVersion rootProject.ext.minSdk
Expand Down
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ buildscript {
//temporary to solve hugo error
mavenCentral()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
Expand Down Expand Up @@ -81,12 +82,9 @@ def renameOutputFiles(Project project, variant) {

// Customise APK filenames
if (outputFileName.contains("debug")) {
outputFileName = outputFileName.replace("debug", "development").replace(".apk", "-" + (System.getenv("BUILD_NUMBER") ?: "local") + ".apk")
output.outputFileName = outputFileName.replace("debug", "development").replace(".apk", "-" + (System.getenv("BUILD_NUMBER") ?: "local") + ".apk")
} else {
outputFileName = outputFileName.replace(".apk", "-" + variant.versionName + ".apk")
output.outputFileName = outputFileName.replace(".apk", "-" + variant.versionName + ".apk")
}

// normal APK (already aligned)
output.outputFile = new File(output.outputFile.parent, outputFileName)
}
}
12 changes: 1 addition & 11 deletions connectsdk/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.connectsdk"
android:versionCode="11"
android:versionName="1.5.0" >

<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="22" />

<application />
</manifest>
<manifest package="com.connectsdk" />
11 changes: 10 additions & 1 deletion connectsdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.6.2'
// classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0'
}
}
Expand Down Expand Up @@ -54,6 +55,14 @@ build.dependsOn jacocoTestReport
android {
compileSdkVersion rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
versionCode 11
versionName "1.5.0"
}

useLibrary 'org.apache.http.legacy'

packagingOptions {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jul 03 10:16:50 CET 2018
#Thu Apr 16 21:44:09 EDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
5 changes: 4 additions & 1 deletion mobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ android {
}
}

flavorDimensions 'platform'
productFlavors {
arm {
dimension 'platform'
ndk {
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
x86 {
dimension 'platform'
ndk {
abiFilters "x86", "x86_64"
}
Expand Down Expand Up @@ -79,7 +82,7 @@ dependencies {

compile 'de.hdodenhof:circleimageview:2.0.0'
compile "com.jakewharton:butterknife:${rootProject.ext.butterknifeVersion}"
compile 'com.github.nirhart:parallaxscroll:1.0'
compile 'com.github.nirhart:parallaxscroll:dd53d1f9d1'
compile 'com.larswerkman:HoloColorPicker:1.5'
compile 'com.gu:option:1.3'
compile 'net.rdrei.android.dirchooser:library:3.0@aar'
Expand Down
3 changes: 3 additions & 0 deletions tv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ android {
}
}

flavorDimensions 'platform'
productFlavors {
arm {
dimension 'platform'
ndk {
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
x86 {
dimension 'platform'
ndk {
abiFilters "x86", "x86_64"
}
Expand Down

0 comments on commit de30ced

Please sign in to comment.