Skip to content

Commit d51dc0c

Browse files
Merge branch 'develop'
# Conflicts: # gradle.properties
2 parents ec37632 + eb0d2b0 commit d51dc0c

File tree

85 files changed

+1759
-1068
lines changed

Some content is hidden

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

85 files changed

+1759
-1068
lines changed

.gitignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ out/
4343
.gradle/
4444
build/
4545

46-
# Local configuration file (sdk path, etc)
47-
local.properties
48-
49-
# Proguard folder generated by Eclipse
50-
proguard/
51-
5246
# Log Files
5347
*.log
5448

@@ -59,7 +53,6 @@ proguard/
5953
captures/
6054

6155
# IntelliJ
62-
*.iml
6356
.idea/workspace.xml
6457
.idea/tasks.xml
6558
.idea/gradle.xml
@@ -78,7 +71,6 @@ captures/
7871
#*.keystore
7972

8073
# External native build folder generated in Android Studio 2.2 and later
81-
.externalNativeBuild
8274
.cxx/
8375

8476
# Google Services (e.g. APIs or Firebase)
@@ -232,7 +224,6 @@ fabric.properties
232224

233225
### macOS ###
234226
# General
235-
.DS_Store
236227
.AppleDouble
237228
.LSOverride
238229

@@ -271,7 +262,6 @@ Temporary Items
271262
# Generated files
272263

273264
# Gradle files
274-
.gradle
275265

276266
# Signing files
277267
.signing/

.idea/codeStyles/Project.xml

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ buildscript {
44
repositories {
55
google()
66
mavenCentral()
7-
maven {
8-
url "https://plugins.gradle.org/m2/"
9-
}
7+
maven { url("https://plugins.gradle.org/m2/") }
8+
maven { url("https://developer.huawei.com/repo/") }
109
}
1110
dependencies {
12-
classpath "com.android.tools.build:gradle:4.1.2"
11+
classpath "com.android.tools.build:gradle:4.1.3"
1312
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1413
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
15-
classpath 'com.google.gms:google-services:4.3.5'
14+
classpath 'com.google.gms:google-services:4.3.10'
1615
// classpath "io.github.gradle-nexus.publish-plugin:1.0.0"
1716
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
17+
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
1818

1919
// NOTE: Do not place your application dependencies here; they belong
2020
// in the individual module build.gradle files
@@ -31,9 +31,12 @@ allprojects {
3131
repositories {
3232
google()
3333
mavenCentral()
34+
maven { url 'https://developer.huawei.com/repo/' }
3435
}
3536
}
3637

3738
task clean(type: Delete) {
3839
delete rootProject.buildDir
3940
}
41+
42+
apply from: 'dependencies.gradle'

dependencies.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
ext {
2+
3+
sdkDependencies = [
4+
kotlin_stdlib: 'org.jetbrains.kotlin:kotlin-stdlib:1.4.20',
5+
androidx_core_ktx: 'androidx.core:core-ktx:1.7.0',
6+
androidx_annotations: 'androidx.annotation:annotation:1.3.0',
7+
firebase_bom: 'com.google.firebase:firebase-bom:26.1.1',
8+
firebase_messaging: 'com.google.firebase:firebase-messaging:21.0.0',
9+
gms_play_services_basement: 'com.google.android.gms:play-services-basement:18.0.0',
10+
gms_play_services_base: 'com.google.android.gms:play-services-base:18.0.1',
11+
gms_play_services_ads_identifier: 'com.google.android.gms:play-services-ads-identifier:18.0.1',
12+
kotlinx_coroutines_core: 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2',
13+
kotlinx_coroutines_android: 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0',
14+
volley: 'com.android.volley:volley:1.2.1',
15+
gson: 'com.google.code.gson:gson:2.8.7',
16+
room: 'androidx.room:room-runtime:2.4.1',
17+
room_compiler: 'androidx.room:room-compiler:2.4.1',
18+
work_manager: 'androidx.work:work-runtime-ktx:2.7.1',
19+
androidx_lifecycle: 'androidx.lifecycle:lifecycle-process:2.3.1',
20+
hms_push: 'com.huawei.hms:push:6.1.0.300',
21+
hms_ads_identifier: 'com.huawei.hms:ads-identifier:3.4.39.302'
22+
]
23+
24+
testDependencies = [
25+
junit: 'junit:junit:4.13.2',
26+
androidx_junit: 'androidx.test.ext:junit:1.1.3',
27+
espresso: 'androidx.test.espresso:espresso-core:3.4.0'
28+
]
29+
30+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ android.enableJetifier=true
2121
kotlin.code.style=official
2222

2323
# SDK version property
24-
SDK_VERSION_NAME=2.0.0-alpha
24+
SDK_VERSION_NAME=2.0.1

mindbox-firebase/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

mindbox-firebase/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apply from: "${rootProject.projectDir}/modulesCommon.gradle"
2+
3+
android {
4+
defaultConfig {
5+
consumerProguardFiles "consumer-rules.pro",
6+
"${rootProject.projectDir}/proguard/proguard-gson.pro",
7+
"${rootProject.projectDir}/proguard/proguard-firebase.pro",
8+
"${rootProject.projectDir}/proguard/proguard-kotlin.pro"
9+
}
10+
}
11+
12+
dependencies {
13+
implementation project(path: ':sdk')
14+
15+
implementation sdkDependencies.androidx_core_ktx
16+
implementation sdkDependencies.kotlinx_coroutines_core
17+
18+
implementation sdkDependencies.gson
19+
20+
// Firebase messaging
21+
implementation platform(sdkDependencies.firebase_bom)
22+
implementation sdkDependencies.firebase_messaging
23+
implementation sdkDependencies.gms_play_services_base
24+
implementation sdkDependencies.gms_play_services_basement
25+
26+
// Ads
27+
implementation sdkDependencies.gms_play_services_ads_identifier
28+
}

mindbox-firebase/consumer-rules.pro

Whitespace-only changes.

mindbox-firebase/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ARTIFACT_ID=mindbox-firebase
2+
ARTIFACT_NAME=Mindbox Firebase Push SDK
3+
MIN_SDK_VERSION=16
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)