-
Notifications
You must be signed in to change notification settings - Fork 76
Fixes gradle issues and adds title field #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,22 +16,23 @@ | |
|
|
||
| plugins { | ||
| id 'com.android.application' | ||
| id 'kotlin-android' | ||
| id 'kotlin-kapt' | ||
| id 'org.jetbrains.kotlin.android' | ||
| } | ||
|
|
||
| apply plugin: 'kotlin-kapt' | ||
|
|
||
| android { | ||
| namespace 'com.android.example.appsearchsample' | ||
| compileSdkVersion 31 | ||
| buildToolsVersion "30.0.3" | ||
| namespace "com.android.example.appsearchsample" | ||
| compileSdk 33 | ||
|
|
||
| defaultConfig { | ||
| applicationId "com.android.example.appsearchsample" | ||
| minSdkVersion 14 | ||
| targetSdkVersion 31 | ||
| minSdk 33 | ||
| targetSdk 33 | ||
| versionCode 1 | ||
| versionName "1.0" | ||
| multiDexEnabled = true | ||
|
|
||
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
| } | ||
|
|
||
| buildTypes { | ||
|
|
@@ -41,35 +42,33 @@ android { | |
| } | ||
| } | ||
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_1_8 | ||
| targetCompatibility JavaVersion.VERSION_1_8 | ||
| sourceCompatibility JavaVersion.VERSION_17 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This (and minsdk) seems like it will significantly restrict what phones this sample will run on. Since this is a sample we intend for other people, can we make it run more broadly? |
||
| targetCompatibility JavaVersion.VERSION_17 | ||
| } | ||
| kotlinOptions { | ||
| jvmTarget = '1.8' | ||
| jvmTarget = '17' | ||
| } | ||
| buildFeatures { | ||
| viewBinding true | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| def appsearch_version = "1.0.0-alpha03" | ||
| kapt 'androidx.appsearch:appsearch-compiler:1.1.0-alpha03' | ||
|
|
||
| // AppSearch dependencies | ||
| implementation "androidx.appsearch:appsearch:$appsearch_version" | ||
| implementation "androidx.appsearch:appsearch-local-storage:$appsearch_version" | ||
| implementation "androidx.appsearch:appsearch-platform-storage:$appsearch_version" | ||
| kapt "androidx.appsearch:appsearch-compiler:$appsearch_version" | ||
| //api 'androidx.annotation:annotation:1.6.0' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not quite clear what this new comment is intended to communicate -- could you clarify? |
||
| implementation 'androidx.appsearch:appsearch:1.1.0-alpha03' | ||
| implementation 'androidx.appsearch:appsearch-local-storage:1.1.0-alpha03' | ||
| implementation 'androidx.appsearch:appsearch-platform-storage:1.1.0-alpha03' | ||
|
|
||
| implementation 'androidx.activity:activity-ktx:1.3.1' | ||
| implementation 'androidx.appcompat:appcompat:1.3.1' | ||
| implementation 'androidx.core:core-ktx:1.8.0' | ||
| implementation 'androidx.appcompat:appcompat:1.6.1' | ||
| implementation 'com.google.android.material:material:1.5.0' | ||
| implementation 'androidx.concurrent:concurrent-futures-ktx:1.1.0' | ||
| implementation 'androidx.constraintlayout:constraintlayout:2.1.1' | ||
| implementation 'androidx.core:core-ktx:1.6.0' | ||
| implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1' | ||
| implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' | ||
| implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1' | ||
| implementation 'androidx.multidex:multidex:2.0.1' | ||
| implementation 'com.google.android.material:material:1.4.0' | ||
| implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | ||
| } | ||
| implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | ||
| implementation 'androidx.navigation:navigation-fragment-ktx:2.5.2' | ||
| implementation 'androidx.navigation:navigation-ui-ktx:2.5.2' | ||
| testImplementation 'junit:junit:4.13.2' | ||
| androidTestImplementation 'androidx.test.ext:junit:1.1.3' | ||
| androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #Tue Jun 29 07:46:11 PDT 2021 | ||
| #Tue Jun 27 13:07:45 PDT 2023 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | ||
| distributionPath=wrapper/dists | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come we are using two different ways to apply plugins in this project (the plugins block and the apply plugin directive)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.