File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
sample-app/src/main/java/com/google/secrets_gradle_plugin/sample Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1414
1515package com.google.secrets_gradle_plugin.sample
1616
17+ import android.os.Bundle
18+ import android.widget.LinearLayout
19+ import android.widget.TextView
1720import androidx.appcompat.app.AppCompatActivity
21+ import com.google.secrets_plugin.sample.BuildConfig
1822
1923/* *
2024 * Dummy activity. See build.gradle.kts for sample usage of the plugin.
2125 */
2226class MainActivity : AppCompatActivity () {
27+
28+ override fun onCreate (savedInstanceState : Bundle ? ) {
29+ super .onCreate(savedInstanceState)
30+
31+ val textView = TextView (this ).apply {
32+ @Suppress(" SetTextI18n" )
33+ text = " GMP API Key: ${BuildConfig .gmpApiKey} "
34+ }
35+ val linearLayout = LinearLayout (this ).apply {
36+ layoutParams = LinearLayout .LayoutParams (
37+ LinearLayout .LayoutParams .MATCH_PARENT ,
38+ LinearLayout .LayoutParams .MATCH_PARENT
39+ )
40+ addView(textView)
41+ }
42+ setContentView(linearLayout)
43+ }
2344}
You can’t perform that action at this time.
0 commit comments