mirror of
https://github.com/BetterAndroid/Hikage.git
synced 2025-09-05 10:15:37 +08:00
Bump hikage-core, hikage-extension, hikage-extension-betterandroid, hikage-extension-compose, hikage-compiler, hikage-widget-androidx, hikage-widget-material version to 1.0.0
This commit is contained in:
47
hikage-widget-material/build.gradle.kts
Normal file
47
hikage-widget-material/build.gradle.kts
Normal file
@@ -0,0 +1,47 @@
|
||||
plugins {
|
||||
autowire(libs.plugins.android.library)
|
||||
autowire(libs.plugins.kotlin.android)
|
||||
autowire(libs.plugins.maven.publish)
|
||||
autowire(libs.plugins.kotlin.ksp)
|
||||
}
|
||||
|
||||
group = property.project.groupName
|
||||
version = property.project.hikage.widget.material.version
|
||||
|
||||
android {
|
||||
namespace = property.project.hikage.widget.material.namespace
|
||||
compileSdk = property.project.android.compileSdk
|
||||
|
||||
defaultConfig {
|
||||
minSdk = property.project.android.minSdk
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "17"
|
||||
freeCompilerArgs = listOf(
|
||||
"-Xno-param-assertions",
|
||||
"-Xno-call-assertions",
|
||||
"-Xno-receiver-assertions"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
ksp(projects.hikageCompiler)
|
||||
implementation(projects.hikageCore)
|
||||
api(com.google.android.material.material)
|
||||
testImplementation(junit.junit)
|
||||
androidTestImplementation(androidx.test.ext.junit)
|
||||
androidTestImplementation(androidx.test.espresso.espresso.core)
|
||||
}
|
0
hikage-widget-material/consumer-rules.pro
Normal file
0
hikage-widget-material/consumer-rules.pro
Normal file
21
hikage-widget-material/proguard-rules.pro
vendored
Normal file
21
hikage-widget-material/proguard-rules.pro
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
@@ -0,0 +1,25 @@
|
||||
package com.highcapable.hikage
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* See [testing documentation](http://d.android.com/tools/testing).
|
||||
*/
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class ExampleInstrumentedTest {
|
||||
|
||||
@Test
|
||||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("com.highcapable.hikage.test", appContext.packageName)
|
||||
}
|
||||
}
|
2
hikage-widget-material/src/main/AndroidManifest.xml
Normal file
2
hikage-widget-material/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest />
|
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("AppBarLayoutDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.appbar
|
||||
|
||||
import android.widget.Toolbar
|
||||
import com.google.android.material.appbar.AppBarLayout
|
||||
import com.google.android.material.appbar.CollapsingToolbarLayout
|
||||
import com.google.android.material.appbar.MaterialToolbar
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(AppBarLayout::class, AppBarLayout.LayoutParams::class)
|
||||
private object AppBarLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialToolbar::class, Toolbar.LayoutParams::class)
|
||||
private object MaterialToolbarDeclaration
|
||||
|
||||
@HikageViewDeclaration(CollapsingToolbarLayout::class, CollapsingToolbarLayout.LayoutParams::class)
|
||||
private object CollapsingToolbarLayoutDeclaration
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("BottomAppBarDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.bottomappbar
|
||||
|
||||
import androidx.appcompat.widget.Toolbar
|
||||
import com.google.android.material.bottomappbar.BottomAppBar
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(BottomAppBar::class, Toolbar.LayoutParams::class)
|
||||
private object BottomAppBarDeclaration
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("BottomNavigationViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.bottomnavigation
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(BottomNavigationView::class, FrameLayout.LayoutParams::class)
|
||||
private object BottomNavigationViewDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("BottomSheetDragHandleViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.bottomsheet
|
||||
|
||||
import com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(BottomSheetDragHandleView::class)
|
||||
private object BottomSheetDragHandleViewDeclaration
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialButtonDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.button
|
||||
|
||||
import android.widget.LinearLayout
|
||||
import com.google.android.material.button.MaterialButton
|
||||
import com.google.android.material.button.MaterialButtonToggleGroup
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialButton::class)
|
||||
private object MaterialButtonDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialButtonToggleGroup::class, LinearLayout.LayoutParams::class)
|
||||
private object MaterialButtonToggleGroupDeclaration
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialCardViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.card
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import com.google.android.material.card.MaterialCardView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialCardView::class, FrameLayout.LayoutParams::class)
|
||||
private object MaterialCardViewDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialCheckBoxDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.checkbox
|
||||
|
||||
import com.google.android.material.checkbox.MaterialCheckBox
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialCheckBox::class)
|
||||
private object MaterialCheckBoxDeclaration
|
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("ChipDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.chip
|
||||
|
||||
import com.google.android.material.chip.Chip
|
||||
import com.google.android.material.chip.ChipGroup
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(Chip::class)
|
||||
private object ChipDeclaration
|
||||
|
||||
@HikageViewDeclaration(ChipGroup::class, ChipGroup.LayoutParams::class)
|
||||
private object ChipGroupDeclaration
|
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("CircularRevealLayoutDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.circularreveal
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.GridLayout
|
||||
import android.widget.LinearLayout
|
||||
import android.widget.RelativeLayout
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
||||
import com.google.android.material.circularreveal.CircularRevealGridLayout
|
||||
import com.google.android.material.circularreveal.CircularRevealLinearLayout
|
||||
import com.google.android.material.circularreveal.CircularRevealRelativeLayout
|
||||
import com.google.android.material.circularreveal.cardview.CircularRevealCardView
|
||||
import com.google.android.material.circularreveal.coordinatorlayout.CircularRevealCoordinatorLayout
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealGridLayout::class, GridLayout.LayoutParams::class)
|
||||
private object CircularRevealGridLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealRelativeLayout::class, RelativeLayout.LayoutParams::class)
|
||||
private object CircularRevealRelativeLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealFrameLayout::class, FrameLayout.LayoutParams::class)
|
||||
private object CircularRevealFrameLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealLinearLayout::class, LinearLayout.LayoutParams::class)
|
||||
private object CircularRevealLinearLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealCoordinatorLayout::class, CoordinatorLayout.LayoutParams::class)
|
||||
private object CircularRevealCoordinatorLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularRevealCardView::class, FrameLayout.LayoutParams::class)
|
||||
private object CircularRevealCardViewDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialDividerDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.divider
|
||||
|
||||
import com.google.android.material.divider.MaterialDivider
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialDivider::class)
|
||||
private object MaterialDividerDeclaration
|
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("FloatingActionButtonDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.floatingactionbutton
|
||||
|
||||
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(FloatingActionButton::class)
|
||||
private object FloatingActionButtonDeclaration
|
||||
|
||||
@HikageViewDeclaration(ExtendedFloatingActionButton::class)
|
||||
private object ExtendedFloatingActionButtonDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("ShapeableImageViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.imageview
|
||||
|
||||
import com.google.android.material.imageview.ShapeableImageView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(ShapeableImageView::class)
|
||||
private object ShapeableImageViewDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialSwitchDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.materialswitch
|
||||
|
||||
import com.google.android.material.materialswitch.MaterialSwitch
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialSwitch::class)
|
||||
private object MaterialSwitchDeclaration
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("NavigationViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.navigation
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import com.google.android.material.navigation.NavigationView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(NavigationView::class, FrameLayout.LayoutParams::class)
|
||||
private object NavigationViewDeclaration
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("NavigationRailViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.navigationrail
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import com.google.android.material.navigationrail.NavigationRailView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(NavigationRailView::class, FrameLayout.LayoutParams::class)
|
||||
private object NavigationRailViewDeclaration
|
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("ProgressIndicatorDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.progressindicator
|
||||
|
||||
import com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
import com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(CircularProgressIndicator::class)
|
||||
private object ProgressIndicatorDeclaration
|
||||
|
||||
@HikageViewDeclaration(LinearProgressIndicator::class)
|
||||
private object LinearProgressIndicatorDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialRadioButtonDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.radiobutton
|
||||
|
||||
import com.google.android.material.radiobutton.MaterialRadioButton
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialRadioButton::class)
|
||||
private object MaterialRadioButtonDeclaration
|
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("SearchBarDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.search
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import androidx.appcompat.widget.Toolbar
|
||||
import com.google.android.material.search.SearchBar
|
||||
import com.google.android.material.search.SearchView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(SearchBar::class, Toolbar.LayoutParams::class)
|
||||
private object SearchBarDeclaration
|
||||
|
||||
@HikageViewDeclaration(SearchView::class, FrameLayout.LayoutParams::class)
|
||||
private object SearchViewDeclaration
|
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("SliderDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.slider
|
||||
|
||||
import com.google.android.material.slider.RangeSlider
|
||||
import com.google.android.material.slider.Slider
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(Slider::class)
|
||||
private object SliderDeclaration
|
||||
|
||||
@HikageViewDeclaration(RangeSlider::class)
|
||||
private object RangeSliderDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("SwitchMaterialDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.switchmaterial
|
||||
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(SwitchMaterial::class)
|
||||
private object SwitchMaterialDeclaration
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("TabLayoutDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.tabs
|
||||
|
||||
import android.widget.FrameLayout
|
||||
import com.google.android.material.tabs.TabItem
|
||||
import com.google.android.material.tabs.TabLayout
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(TabLayout::class, FrameLayout.LayoutParams::class)
|
||||
private object TabLayoutDeclaration
|
||||
|
||||
@HikageViewDeclaration(TabItem::class)
|
||||
private object TabItemDeclaration
|
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("TextInputLayoutDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.textfield
|
||||
|
||||
import android.widget.LinearLayout
|
||||
import com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||
import com.google.android.material.textfield.TextInputEditText
|
||||
import com.google.android.material.textfield.TextInputLayout
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(TextInputEditText::class)
|
||||
private object TextInputEditTextDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialAutoCompleteTextView::class)
|
||||
private object MaterialAutoCompleteTextViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(TextInputLayout::class, LinearLayout.LayoutParams::class)
|
||||
private object TextInputLayoutDeclaration
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Hikage - An Android responsive UI building tool.
|
||||
* Copyright (C) 2019 HighCapable
|
||||
* https://github.com/BetterAndroid/Hikage
|
||||
*
|
||||
* Apache License Version 2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* This file is created by fankes on 2025/3/3.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:JvmName("MaterialTextViewDeclaration")
|
||||
|
||||
package com.highcapable.hikage.widget.google.material.textview
|
||||
|
||||
import com.google.android.material.textview.MaterialTextView
|
||||
import com.highcapable.hikage.annotation.HikageViewDeclaration
|
||||
|
||||
@HikageViewDeclaration(MaterialTextView::class)
|
||||
private object MaterialTextViewDeclaration
|
@@ -0,0 +1,18 @@
|
||||
package com.highcapable.hikage
|
||||
|
||||
import org.junit.Test
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* See [testing documentation](http://d.android.com/tools/testing).
|
||||
*/
|
||||
class ExampleUnitTest {
|
||||
|
||||
@Test
|
||||
fun addition_isCorrect() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user