-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'introduce-asset-script-gae-proto-endpoint-impl' into in…
…troduce-asset-download-script
- Loading branch information
Showing
69 changed files
with
2,735 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
# Configurations for arguments that should automatically be added to Bazel commands. | ||
# Configurations to ensure that Android-specific classes build correctly. | ||
build --android_databinding_use_v3_4_args \ | ||
--experimental_android_databinding_v2 \ | ||
--android_databinding_use_androidx | ||
|
||
# Ensure that all builds use the same JDK for building & running (for better hermeticity and fewer | ||
# inconsistencies across environment configurations). | ||
build --java_runtime_version=remotejdk_11 --tool_java_runtime_version=remotejdk_11 | ||
|
||
# Ensure all built Java files treat warnings as errors (similar to the Kotlin configuration) to help | ||
# reduce code smell & potential bugs during development. | ||
build --javacopt="-Werror" | ||
|
||
# Note that this doesn't stop 'Werror' from being passed above, but that shouldn't affect most of | ||
# the Oppia Android-specific build. | ||
build:ignore_build_warnings --//tools/kotlin:warn_mode=warning | ||
|
||
# Show all test output by default (for better debugging). | ||
test --test_output=all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/src/main/java/org/oppia/android/app/databinding/ColorBindingAdapters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.oppia.android.app.databinding; | ||
|
||
import android.view.View; | ||
import androidx.databinding.BindingAdapter; | ||
|
||
/** Holds all custom binding adapters that set color values. */ | ||
public final class ColorBindingAdapters { | ||
|
||
/** Binding adapter for setting the `customBackgroundColor` for a [View]. */ | ||
@BindingAdapter("customBackgroundColor") | ||
public static void setCustomBackgroundColor(View view, int color) { | ||
view.setBackgroundColor(color); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.