Skip to content

Commit

Permalink
Update version for Android
Browse files Browse the repository at this point in the history
Summary:
Per Google's requirements:
https://support.google.com/googleplay/android-developer/answer/113469#targetsdk

Reviewed By: Oliverccccct

Differential Revision: D18747134

fbshipit-source-id: 9829744e6f1e27ec637add1fb4f3aef1f9908920
  • Loading branch information
KylinChang authored and facebook-github-bot committed Dec 2, 2019
1 parent 28ce7db commit 7ebaeb5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions facebook-android-wrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ dependencies {
// Use local file instead of maven to enable testing with versions
// not released to maven.
if (project.hasProperty("localRepo")) {
compile 'com.facebook.android:facebook-android-sdk:' + fbSdkVersion + '@aar'
compile 'com.android.support:support-v4:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.android.support:customtabs:25.0.0'
compile 'com.parse.bolts:bolts-android:1.8.4'
implementation 'com.facebook.android:facebook-android-sdk:' + fbSdkVersion + '@aar'
implementation 'com.android.support:support-v4:25.0.0'
implementation 'com.android.support:cardview-v7:25.0.0'
implementation 'com.android.support:customtabs:25.0.0'
implementation 'com.parse.bolts:bolts-android:1.8.4'
} else {
compile 'com.facebook.android:facebook-android-sdk:' + fbSdkVersion
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
}
}

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
compileSdkVersion 29
buildToolsVersion '29.0.0'

defaultConfig {
minSdkVersion 15
targetSdkVersion 26
targetSdkVersion 28
}

compileOptions {
Expand Down
1 change: 0 additions & 1 deletion facebook-android-wrapper/src/com/facebook/unity/FB.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.test.ActivityTestCase;
import android.util.Log;
import android.util.Base64;
import android.content.pm.*;
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup_android_unity_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ if [ "$localBuild" = true ]; then
./gradlew clean -PlocalRepo=libs -PsdkVersion="$FB_ANDROID_SDK_VERSION" || die "Failed to perform gradle clean"
./gradlew assemble -PlocalRepo=libs -PsdkVersion="$FB_ANDROID_SDK_VERSION" || die "Failed to build facebook android wrapper"
else
./gradlew clean -PsdkVersion="$FB_ANDROID_SDK_VERSION" || die "Failed to perform gradle clean"
./gradlew assemble -PsdkVersion="$FB_ANDROID_SDK_VERSION" || die "Failed to build facebook android wrapper"
./gradlew clean || die "Failed to perform gradle clean"
./gradlew assemble || die "Failed to build facebook android wrapper"
fi
popd

Expand Down

0 comments on commit 7ebaeb5

Please sign in to comment.