Skip to content

Commit b07c642

Browse files
authored
Merge pull request #288 from adjust/v4115
V4120
2 parents 00bf23e + 029a0ff commit b07c642

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3136
-705
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
-keep public class com.adjust.sdk.** { *; }
2+
-keep class com.google.android.gms.common.ConnectionResult {
3+
int SUCCESS;
4+
}
5+
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
6+
com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
7+
}
8+
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
9+
java.lang.String getId();
10+
boolean isLimitAdTrackingEnabled();
11+
}
12+
-keep class dalvik.system.VMRuntime {
13+
java.lang.String getRuntime();
14+
}
15+
-keep class android.os.Build {
16+
java.lang.String[] SUPPORTED_ABIS;
17+
java.lang.String CPU_ABI;
18+
}
19+
-keep class android.content.res.Configuration {
20+
android.os.LocaledList getLocales();
21+
java.util.Locale locale;
22+
}
23+
-keep class android.os.LocaledList {
24+
java.util.Locale get(int);
25+
}
26+
-keep public class com.android.installreferrer.** { *; }

Adjust/adjust/build.gradle

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,43 @@
11
apply plugin: 'com.android.library'
22

33
def getVersionName() {
4-
return "4.11.4"
4+
return "4.12.0"
55
}
66

77
android {
8-
compileSdkVersion 25
9-
buildToolsVersion "25.0.2"
8+
compileSdkVersion 26
9+
buildToolsVersion '26.0.2'
1010

1111
defaultConfig {
1212
minSdkVersion 9
13-
targetSdkVersion 25
13+
targetSdkVersion 26
1414
versionCode 1
1515
versionName getVersionName()
16+
consumerProguardFiles 'adjust-proguard-rules.txt'
1617
}
1718
}
1819

1920
dependencies {
2021
compile fileTree(dir: 'libs', include: ['*.jar'])
2122
}
2223

23-
task clearJar(type: Delete) {
24-
delete "build/outputs/adjust-${getVersionName()}.jar"
25-
}
24+
task makeReleaseJar(type: Copy) {
25+
dependsOn 'build'
2626

27-
task makeJar(type: Copy) {
28-
from('build/intermediates/bundles/default/')
27+
from('build/intermediates/bundles/release/')
2928
into('build/outputs/')
3029
include('classes.jar')
31-
rename ('classes.jar', "adjust-${getVersionName()}.jar")
30+
rename ('classes.jar', "adjust-${getVersionName()}-release.jar")
3231
}
3332

34-
makeJar.dependsOn(clearJar, build)
33+
task makeDebugJar(type: Copy) {
34+
dependsOn 'build'
35+
36+
from('build/intermediates/bundles/debug/')
37+
into('build/outputs/')
38+
include('classes.jar')
39+
rename ('classes.jar', "adjust-${getVersionName()}-debug.jar")
40+
}
3541

3642
task androidJavadocs(type: Javadoc) {
3743
source = android.sourceSets.main.java.srcDirs
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.adjust.sdk">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.adjust.sdk">
32

3+
<uses-permission android:name="android.permission.INTERNET" />
44
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
56

6-
<uses-sdk
7-
android:minSdkVersion="9"
8-
android:targetSdkVersion="25" />
9-
<application />
7+
<application>
8+
<receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:exported="true">
9+
<intent-filter>
10+
<action android:name="com.android.vending.INSTALL_REFERRER" />
11+
</intent-filter>
12+
</receiver>
13+
</application>
1014
</manifest>

0 commit comments

Comments
 (0)