From 32845e7b0fc8c3f9e901421b49e4d6189219619a Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Thu, 2 Jan 2025 12:12:23 +0200 Subject: [PATCH] chore: rename android examples to hiero Signed-off-by: Ivan Ivanov --- example-android/app/build.gradle.kts | 8 ++++---- example-android/app/src/main/AndroidManifest.xml | 2 +- .../hiero}/android_example/MainActivity.kt | 4 ++-- .../ui/main/AccountBalanceFragment.kt | 12 ++++++------ .../ui/main/CryptoTransferFragment.kt | 6 +++--- .../android_example/ui/main/PrivateKeyFragment.kt | 6 +++--- .../android_example/ui/main/SectionsPagerAdapter.kt | 2 +- example-android/gradle/module.properties | 2 ++ 8 files changed, 22 insertions(+), 20 deletions(-) rename example-android/app/src/main/java/{com/hedera => org/hiero}/android_example/MainActivity.kt (92%) rename example-android/app/src/main/java/{com/hedera => org/hiero}/android_example/ui/main/AccountBalanceFragment.kt (92%) rename example-android/app/src/main/java/{com/hedera => org/hiero}/android_example/ui/main/CryptoTransferFragment.kt (97%) rename example-android/app/src/main/java/{com/hedera => org/hiero}/android_example/ui/main/PrivateKeyFragment.kt (89%) rename example-android/app/src/main/java/{com/hedera => org/hiero}/android_example/ui/main/SectionsPagerAdapter.kt (94%) create mode 100644 example-android/gradle/module.properties diff --git a/example-android/app/build.gradle.kts b/example-android/app/build.gradle.kts index fc46e3df53..ac60314697 100644 --- a/example-android/app/build.gradle.kts +++ b/example-android/app/build.gradle.kts @@ -12,10 +12,10 @@ repositories { android { compileSdk = 34 - namespace = "com.hedera.android_example" + namespace = "org.hiero.android_example" defaultConfig { - applicationId = "com.hedera.android_example" + applicationId = "org.hiero.android_example" minSdk = 26 targetSdk = 34 versionCode = 1 @@ -47,10 +47,10 @@ android { dependencies { // --- Remove to use a published SDK version --- - implementation(platform("com.hedera.hashgraph:hiero-dependency-versions")) + implementation(platform("org.hiero:hiero-dependency-versions")) // --------------------------------------------- - implementation("com.hedera.hashgraph:sdk:2.46.0") + implementation("org.hiero.sdk:sdk:2.46.0") implementation("com.google.android.material:material:1.11.0") diff --git a/example-android/app/src/main/AndroidManifest.xml b/example-android/app/src/main/AndroidManifest.xml index 192e9181ac..fa162f1bb0 100644 --- a/example-android/app/src/main/AndroidManifest.xml +++ b/example-android/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> diff --git a/example-android/app/src/main/java/com/hedera/android_example/MainActivity.kt b/example-android/app/src/main/java/org/hiero/android_example/MainActivity.kt similarity index 92% rename from example-android/app/src/main/java/com/hedera/android_example/MainActivity.kt rename to example-android/app/src/main/java/org/hiero/android_example/MainActivity.kt index 64c81df301..f5e046e4a8 100644 --- a/example-android/app/src/main/java/com/hedera/android_example/MainActivity.kt +++ b/example-android/app/src/main/java/org/hiero/android_example/MainActivity.kt @@ -1,9 +1,9 @@ // SPDX-License-Identifier: Apache-2.0 -package com.hedera.android_example +package org.hiero.android_example import android.os.Bundle import androidx.appcompat.app.AppCompatActivity -import com.hedera.android_example.ui.main.SectionsPagerAdapter +import org.hiero.android_example.ui.main.SectionsPagerAdapter import androidx.viewpager2.widget.ViewPager2 import com.google.android.material.tabs.TabLayout import com.google.android.material.tabs.TabLayoutMediator diff --git a/example-android/app/src/main/java/com/hedera/android_example/ui/main/AccountBalanceFragment.kt b/example-android/app/src/main/java/org/hiero/android_example/ui/main/AccountBalanceFragment.kt similarity index 92% rename from example-android/app/src/main/java/com/hedera/android_example/ui/main/AccountBalanceFragment.kt rename to example-android/app/src/main/java/org/hiero/android_example/ui/main/AccountBalanceFragment.kt index ced61c3ddd..3bd5b5ff7c 100644 --- a/example-android/app/src/main/java/com/hedera/android_example/ui/main/AccountBalanceFragment.kt +++ b/example-android/app/src/main/java/org/hiero/android_example/ui/main/AccountBalanceFragment.kt @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -package com.hedera.android_example.ui.main +package org.hiero.android_example.ui.main import android.os.Bundle import android.view.LayoutInflater @@ -11,11 +11,11 @@ import android.widget.ProgressBar import android.widget.TextView import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope -import com.hedera.android_example.R -import com.hedera.hashgraph.sdk.AccountBalanceQuery -import com.hedera.hashgraph.sdk.AccountId -import com.hedera.hashgraph.sdk.Client -import com.hedera.hashgraph.sdk.PrecheckStatusException +import org.hiero.android_example.R +import org.hiero.sdk.AccountBalanceQuery +import org.hiero.sdk.AccountId +import org.hiero.sdk.Client +import org.hiero.sdk.PrecheckStatusException import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch diff --git a/example-android/app/src/main/java/com/hedera/android_example/ui/main/CryptoTransferFragment.kt b/example-android/app/src/main/java/org/hiero/android_example/ui/main/CryptoTransferFragment.kt similarity index 97% rename from example-android/app/src/main/java/com/hedera/android_example/ui/main/CryptoTransferFragment.kt rename to example-android/app/src/main/java/org/hiero/android_example/ui/main/CryptoTransferFragment.kt index d5916527cb..f38827974c 100644 --- a/example-android/app/src/main/java/com/hedera/android_example/ui/main/CryptoTransferFragment.kt +++ b/example-android/app/src/main/java/org/hiero/android_example/ui/main/CryptoTransferFragment.kt @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -package com.hedera.android_example.ui.main +package org.hiero.android_example.ui.main import android.os.Bundle import android.view.LayoutInflater @@ -11,8 +11,8 @@ import android.widget.ProgressBar import android.widget.TextView import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope -import com.hedera.android_example.R -import com.hedera.hashgraph.sdk.* +import org.hiero.android_example.R +import org.hiero.sdk.* import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch diff --git a/example-android/app/src/main/java/com/hedera/android_example/ui/main/PrivateKeyFragment.kt b/example-android/app/src/main/java/org/hiero/android_example/ui/main/PrivateKeyFragment.kt similarity index 89% rename from example-android/app/src/main/java/com/hedera/android_example/ui/main/PrivateKeyFragment.kt rename to example-android/app/src/main/java/org/hiero/android_example/ui/main/PrivateKeyFragment.kt index 73d443816a..724e1f375c 100644 --- a/example-android/app/src/main/java/com/hedera/android_example/ui/main/PrivateKeyFragment.kt +++ b/example-android/app/src/main/java/org/hiero/android_example/ui/main/PrivateKeyFragment.kt @@ -1,14 +1,14 @@ // SPDX-License-Identifier: Apache-2.0 -package com.hedera.android_example.ui.main +package org.hiero.android_example.ui.main import android.widget.TextView import android.view.LayoutInflater import android.view.ViewGroup import android.os.Bundle import android.view.View -import com.hedera.android_example.R +import org.hiero.android_example.R import androidx.fragment.app.Fragment -import com.hedera.hashgraph.sdk.PrivateKey +import org.hiero.sdk.PrivateKey class PrivateKeyFragment : Fragment() { private lateinit var privateKey: TextView diff --git a/example-android/app/src/main/java/com/hedera/android_example/ui/main/SectionsPagerAdapter.kt b/example-android/app/src/main/java/org/hiero/android_example/ui/main/SectionsPagerAdapter.kt similarity index 94% rename from example-android/app/src/main/java/com/hedera/android_example/ui/main/SectionsPagerAdapter.kt rename to example-android/app/src/main/java/org/hiero/android_example/ui/main/SectionsPagerAdapter.kt index 1a13004187..55ef319030 100644 --- a/example-android/app/src/main/java/com/hedera/android_example/ui/main/SectionsPagerAdapter.kt +++ b/example-android/app/src/main/java/org/hiero/android_example/ui/main/SectionsPagerAdapter.kt @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -package com.hedera.android_example.ui.main +package org.hiero.android_example.ui.main import androidx.fragment.app.FragmentActivity import androidx.viewpager2.adapter.FragmentStateAdapter diff --git a/example-android/gradle/module.properties b/example-android/gradle/module.properties new file mode 100644 index 0000000000..68e1d911fb --- /dev/null +++ b/example-android/gradle/module.properties @@ -0,0 +1,2 @@ +org.hiero.sdk=org.hiero.sdk:sdk +org.hiero.sdk.full=org.hiero.sdk:sdk-full