Skip to content

Commit

Permalink
implementation table
Browse files Browse the repository at this point in the history
  • Loading branch information
romellfudi committed May 26, 2021
1 parent 6f2b851 commit 5775b2d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 41 deletions.
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,14 @@ Interactive with ussd windoows, It is necessary to have present that the interfa

Add the following in your app's `build.gradle` file:

### From American Telcoms
```groovy
repositories {
jcenter()
}
dependencies {
// java [deprecated]
implementation 'com.romellfudi.ussdlibrary:ussd-library:{latestVersion}'
// kotlin [deprecated]
implementation 'com.romellfudi.ussdlibrary:kotlin-ussd-library:{kotlinLatestVersion}'
// java
implementation 'com.github.romellfudi.VoIpUSSD:ussd-library:{jitpackVersion}'
// kotlin
implementation 'com.github.romellfudi.VoIpUSSD:kotlin-ussd-library:{jitpackVersion}'
}
```
### Implementations

| Repository | KEY MESSAGE | Status |
| :------: | ------ | :------: |
| jcenter() | 'com.romellfudi.ussdlibrary:ussd-library:1.1.i' | `DEPRECATED` |
| jcenter() | 'com.romellfudi.ussdlibrary:kotlin-ussd-library:1.1.k' | `DEPRECATED` |
| maven { url 'https://jitpack.io' } | 'com.github.romellfudi.VoIpUSSD:kotlin-ussd-library:1.2.c' | `OK` |
| maven { url 'https://jitpack.io' } | 'com.github.romellfudi.VoIpUSSD:kotlin-ussd-library:1.2.c:' | `OK` |

* Writing xml config file from [here](https://github.com/romellfudi/VoIpUSSD/blob/master/ussd-library/src/main/res/xml/ussd_service.xml) to res/xml folder (if necessary), this config file allow link between App and SO:

Expand Down
58 changes: 36 additions & 22 deletions app-kotlin/src/main/res/layout/call_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.romellfudi.ussd.main.view.MainFragmentView">
toolsz:context="com.romellfudi.ussd.main.view.MainFragmentView">

<data>

<variable
name="viewModel"
type="com.romellfudi.ussd.main.entity.CallViewModel" />

<variable
name="mainFragment"
type="com.romellfudi.ussd.main.view.MainFragmentView" />
Expand All @@ -33,11 +35,11 @@
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:lottie_rawRes="@raw/sms"
app:lottie_speed="1.5"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/sms"
app:lottie_renderMode="automatic"
app:lottie_autoPlay="true"/>
app:lottie_speed="1.5" />

<TextView
android:id="@+id/txt"
Expand All @@ -50,19 +52,29 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/animation_view" />


<EditText
android:id="@+id/phone"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/phone_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Put number"
android:inputType="phone"
android:singleLine="true"
android:text="@{viewModel.number}"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
android:hint="Input number"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/txt" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txt">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/phone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="phone"
android:singleLine="true"
android:background="#CBCCB8D3"
android:textColor="#CB9509C6"
android:textColorHint="#CB764D85"
android:text="@{viewModel.number}"
android:layout_margin="5dp"
tools:text="@tools:sample/us_phones"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

<View
android:id="@+id/divider_p"
Expand All @@ -71,7 +83,8 @@
android:layout_height="1dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/phone" />
app:layout_constraintTop_toBottomOf="@id/phone_layout" />

<RadioGroup
android:id="@+id/flavor_options"
android:layout_width="match_parent"
Expand All @@ -85,28 +98,28 @@
android:id="@+id/normal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="italic"
android:checked="@{viewModel.dialUpType.equals(@string/normal)}"
android:onClick="@{() -> viewModel.setDialUpType(@string/normal)}"
android:text="@string/normal" />
android:text="@string/normal"
android:textStyle="italic" />

<RadioButton
android:id="@+id/custom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="italic"
android:checked="@{viewModel.dialUpType.equals(@string/custom)}"
android:onClick="@{() -> viewModel.setDialUpType(@string/custom)}"
android:text="@string/custom" />
android:text="@string/custom"
android:textStyle="italic" />

<RadioButton
android:id="@+id/splash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="italic"
android:checked="@{viewModel.dialUpType.equals(@string/splash)}"
android:onClick="@{() -> viewModel.setDialUpType(@string/splash)}"
android:text="@string/splash" />
android:text="@string/splash"
android:textStyle="italic" />

</RadioGroup>

Expand All @@ -130,13 +143,14 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/accessibility" />

<TextView
android:id="@+id/result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{viewModel.result}"
android:textAppearance="@style/Base.TextAppearance.AppCompat.Medium"
android:textSize="16sp"
android:text="@{viewModel.result}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/divider_f" />
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ buildscript {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion ussd-library-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ext {
siteUrl = 'https://romellfudi.github.io/VoIpUSSD'
gitUrl = 'https://github.com/romellfudi/VoIpUSSD.git'

libraryVersion = '1.2.c'
libraryVersion = '1.2.d'

developerId = 'romellfudi'
developerName = 'Romell Dominguez'
Expand Down
2 changes: 1 addition & 1 deletion ussd-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
siteUrl = 'https://romellfudi.github.io/VoIpUSSDSample'
gitUrl = 'https://romellfudi.github.io/VoIpUSSDSample.git'

libraryVersion = '1.2.c'
libraryVersion = '1.2.d'

developerId = 'romellfudi'
developerName = 'Romell Dominguez'
Expand Down

0 comments on commit 5775b2d

Please sign in to comment.