| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | apply plugin: 'com.android.application' | 
					
						
							|  |  |  | apply plugin: 'kotlin-android' | 
					
						
							|  |  |  | apply plugin: 'kotlin-android-extensions' | 
					
						
							| 
									
										
										
										
											2020-01-22 17:28:59 +00:00
										 |  |  | apply plugin: 'com.google.gms.google-services' | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-22 21:40:57 +00:00
										 |  |  | // Apply the Crashlytics Gradle plugin
 | 
					
						
							|  |  |  | apply plugin: 'com.google.firebase.crashlytics' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-23 02:32:21 +00:00
										 |  |  | // protobuf
 | 
					
						
							|  |  |  | apply plugin: 'com.google.protobuf' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | android { | 
					
						
							|  |  |  |     compileSdkVersion 29 | 
					
						
							|  |  |  |     buildToolsVersion "29.0.2" | 
					
						
							|  |  |  |     defaultConfig { | 
					
						
							|  |  |  |         applicationId "com.geeksville.meshutil" | 
					
						
							| 
									
										
										
										
											2020-01-21 21:12:01 +00:00
										 |  |  |         minSdkVersion 21 | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  |         targetSdkVersion 29 | 
					
						
							|  |  |  |         versionCode 1 | 
					
						
							|  |  |  |         versionName "1.0" | 
					
						
							|  |  |  |         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     buildTypes { | 
					
						
							|  |  |  |         release { | 
					
						
							|  |  |  |             minifyEnabled false | 
					
						
							|  |  |  |             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-01-22 03:16:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     buildFeatures { | 
					
						
							|  |  |  |         // Enables Jetpack Compose for this module
 | 
					
						
							| 
									
										
										
										
											2020-01-22 22:48:06 +00:00
										 |  |  |         compose true // NOTE, if true main app crashes if you use regular view layout functions
 | 
					
						
							| 
									
										
										
										
											2020-01-22 03:16:03 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Set both the Java and Kotlin compilers to target Java 8.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     compileOptions { | 
					
						
							|  |  |  |         sourceCompatibility JavaVersion.VERSION_1_8 | 
					
						
							|  |  |  |         targetCompatibility JavaVersion.VERSION_1_8 | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     kotlinOptions { | 
					
						
							|  |  |  |         jvmTarget = "1.8" | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-23 02:32:21 +00:00
										 |  |  | // per protobuf-gradle-plugin docs, this is recommended for android
 | 
					
						
							|  |  |  | protobuf { | 
					
						
							|  |  |  |     protoc { | 
					
						
							|  |  |  |         artifact = 'com.google.protobuf:protoc:3.9.0' | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     generateProtoTasks { | 
					
						
							|  |  |  |         all().each { task -> | 
					
						
							|  |  |  |             task.builtins { | 
					
						
							|  |  |  |                 java { | 
					
						
							|  |  |  |                     option "lite" | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | dependencies { | 
					
						
							|  |  |  |     implementation fileTree(dir: 'libs', include: ['*.jar']) | 
					
						
							|  |  |  |     implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 
					
						
							| 
									
										
										
										
											2020-01-21 00:13:40 +00:00
										 |  |  |     implementation 'androidx.appcompat:appcompat:1.1.0' | 
					
						
							|  |  |  |     implementation 'androidx.core:core-ktx:1.1.0' | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  |     implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | 
					
						
							|  |  |  |     implementation 'com.google.android.material:material:1.0.0' | 
					
						
							|  |  |  |     testImplementation 'junit:junit:4.12' | 
					
						
							| 
									
										
										
										
											2020-01-21 00:13:40 +00:00
										 |  |  |     androidTestImplementation 'androidx.test.ext:junit:1.1.1' | 
					
						
							|  |  |  |     androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' | 
					
						
							| 
									
										
										
										
											2020-01-22 03:16:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-23 02:32:21 +00:00
										 |  |  |     // You need to depend on the lite runtime library, not protobuf-java
 | 
					
						
							|  |  |  |     implementation 'com.google.protobuf:protobuf-javalite:3.8.0' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-22 03:16:03 +00:00
										 |  |  |     // You also need to include the following Compose toolkit dependencies.
 | 
					
						
							| 
									
										
										
										
											2020-01-22 21:02:24 +00:00
										 |  |  |     implementation("androidx.compose:compose-runtime:$compose_version") | 
					
						
							|  |  |  |     implementation("androidx.ui:ui-framework:$compose_version") | 
					
						
							|  |  |  |     implementation("androidx.ui:ui-layout:$compose_version") | 
					
						
							|  |  |  |     implementation("androidx.ui:ui-material:$compose_version") | 
					
						
							|  |  |  |     implementation("androidx.ui:ui-foundation:$compose_version") | 
					
						
							|  |  |  |     implementation("androidx.ui:ui-animation:$compose_version") | 
					
						
							|  |  |  |     implementation "androidx.ui:ui-tooling:$compose_version" | 
					
						
							|  |  |  |     androidTestImplementation("androidx.ui:ui-platform:$compose_version") | 
					
						
							|  |  |  |     androidTestImplementation("androidx.ui:ui-test:$compose_version") | 
					
						
							| 
									
										
										
										
											2020-01-22 04:32:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-22 21:40:57 +00:00
										 |  |  |     // Add the Firebase SDK for Crashlytics.
 | 
					
						
							|  |  |  |     implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01' | 
					
						
							| 
									
										
										
										
											2020-01-22 17:28:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // add SDKs for any other desired Firebase products
 | 
					
						
							|  |  |  |     // https://firebase.google.com/docs/android/setup#available-libraries
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-22 04:32:19 +00:00
										 |  |  |     implementation project(':geeksville-androidlib') | 
					
						
							| 
									
										
										
										
											2020-01-20 23:53:22 +00:00
										 |  |  | } |