Skip to content

Commit bdec601

Browse files
committed
feat(android/build.gradle): add build.gradle to fix gradle plugin version issue
1 parent 2f10afc commit bdec601

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// GENERATED BY Leanplum.
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:2.3.1'
9+
}
10+
}
11+
12+
allprojects {
13+
repositories {
14+
flatDir {
15+
dirs 'libs'
16+
}
17+
}
18+
}
19+
20+
apply plugin: 'com.android.application'
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
}
25+
26+
android {
27+
compileSdkVersion 25
28+
buildToolsVersion '25.0.2'
29+
30+
defaultConfig {
31+
targetSdkVersion 25
32+
}
33+
34+
lintOptions {
35+
abortOnError false
36+
}
37+
38+
buildTypes {
39+
debug {
40+
jniDebuggable true
41+
}
42+
release {
43+
// Set minifyEnabled to true if you want to run ProGuard on your project
44+
minifyEnabled false
45+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
46+
47+
}
48+
}
49+
50+
}
51+

build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#
66
set -eo pipefail; [[ $DEBUG ]] && set -x
77

8-
# Copied from "$LPM_PLUGIN_PATH/_common/constants.sh"
9-
UNITY_VERSION=1.4.2-SNAPSHOT
10-
11-
# Copied from "$LPM_PLUGIN_PATH/_common/functions.sh"
128
#######################################
139
# Downloads the iOS SDK from internal repository.
1410
# Globals:
@@ -117,7 +113,7 @@ build() {
117113
PATH_TO_PROJECT="$(pwd)/LeanplumSample"
118114

119115
OUT_DLL="$PATH_TO_PROJECT/Assets/Standard Assets/Leanplum/LeanplumSDK.dll"
120-
export OUT_PKG="Leanplum_Unity-$UNITY_VERSION_STRING.unitypackage"
116+
export OUT_PKG="Leanplum_Unity-${UNITY_VERSION_STRING}.unitypackage"
121117

122118
# Compile dll and place into project.
123119
$PATH_TO_UNITY_ROOT/Contents/Mono/bin/gmcs -r:"$PATH_TO_UNITYENGINE" \

0 commit comments

Comments
 (0)