Skip to content

Commit 440c4d8

Browse files
committed
2.2.0 Build 78
1 parent d77374f commit 440c4d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2620
-667
lines changed

app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ android {
2121
applicationId "com.jlindemann.science"
2222
minSdkVersion 23
2323
targetSdkVersion 34
24-
versionCode 66
24+
versionCode 78
2525
versionName "2.2.0"
2626
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2727
}
@@ -59,7 +59,7 @@ dependencies {
5959
implementation fileTree(dir: 'libs', include: ['*.jar'])
6060
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6161
implementation 'androidx.appcompat:appcompat:1.3.1'
62-
implementation 'androidx.core:core-ktx:1.3.2'
62+
implementation 'androidx.core:core-ktx:1.13.1'
6363
implementation 'com.github.ultimate-deej:twowaynestedscrollview:0.1'
6464
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
6565
implementation 'com.google.code.gson:gson:2.8.6'
@@ -73,16 +73,17 @@ dependencies {
7373
implementation 'com.beust:klaxon:5.0.1'
7474
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
7575
implementation 'com.google.android.material:material:1.5.0-alpha04'
76-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7"
77-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4"
76+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
77+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
7878
implementation 'androidx.browser:browser:1.3.0'
7979
implementation 'com.ernestoyaquello.dragdropswiperecyclerview:drag-drop-swipe-recyclerview:1.0.2'
8080
implementation 'com.otaliastudios:zoomlayout:1.8.0'
8181
testImplementation 'junit:junit:4.12'
8282
androidTestImplementation 'androidx.test:runner:1.3.0'
83-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
83+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.0'
8484
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
8585

8686
def billing_version = "7.0.0"
8787
implementation "com.android.billingclient:billing-ktx:$billing_version"
88+
implementation 'com.google.firebase:firebase-crashlytics-buildtools:2.9.1'
8889
}

app/release/app-release.aab

10.2 MB
Binary file not shown.

app/release/app-release.apk

681 KB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"type": "SINGLE",
1212
"filters": [],
1313
"attributes": [],
14-
"versionCode": 63,
15-
"versionName": "2.1.1",
14+
"versionCode": 66,
15+
"versionName": "2.2.0",
1616
"outputFile": "app-release.apk"
1717
}
1818
],

app/src/main/AndroidManifest.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
33

44
<uses-permission android:name="android.permission.INTERNET" />
5+
<uses-permission android:name="com.android.vending.BILLING" />
56

67
<application
78
android:allowBackup="true"
@@ -181,6 +182,17 @@
181182
<action android:name="package.OtherActivity" />
182183
</intent-filter>
183184
</activity>
185+
<activity
186+
android:name=".activities.settings.ProActivity"
187+
android:label="SUBMITPAGE"
188+
android:exported="true"
189+
android:screenOrientation="portrait"
190+
android:theme="@style/AppTheme"
191+
android:windowSoftInputMode="adjustNothing">
192+
<intent-filter>
193+
<action android:name="package.OtherActivity" />
194+
</intent-filter>
195+
</activity>
184196
<activity
185197
android:name=".activities.settings.LicensesActivity"
186198
android:label="LICENSESPAGE"
@@ -214,6 +226,17 @@
214226
<action android:name="package.OtherActivity" />
215227
</intent-filter>
216228
</activity>
229+
<activity
230+
android:name=".activities.tables.PoissonActivity"
231+
android:label="POISSONACTIVITY"
232+
android:exported="true"
233+
android:screenOrientation="portrait"
234+
android:theme="@style/AppTheme"
235+
android:windowSoftInputMode="adjustNothing">
236+
<intent-filter>
237+
<action android:name="package.OtherActivity" />
238+
</intent-filter>
239+
</activity>
217240
<activity
218241
android:name=".activities.settings.UnitActivity"
219242
android:label="activity_unit"

app/src/main/java/com/jlindemann/science/activities/ElementInfoActivity.kt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import android.view.ViewGroup
1212
import android.widget.FrameLayout
1313
import android.widget.ImageButton
1414
import android.widget.ImageView
15+
import android.widget.LinearLayout
1516
import android.widget.ScrollView
1617
import android.widget.Space
1718
import android.widget.TextView
@@ -24,7 +25,9 @@ import com.github.mmin18.widget.RealtimeBlurView
2425
import com.google.android.material.floatingactionbutton.FloatingActionButton
2526
import com.jlindemann.science.R
2627
import com.jlindemann.science.activities.settings.FavoritePageActivity
28+
import com.jlindemann.science.activities.settings.ProActivity
2729
import com.jlindemann.science.activities.settings.SubmitActivity
30+
import com.jlindemann.science.activities.tables.NuclideActivity
2831
import com.jlindemann.science.extensions.InfoExtension
2932
import com.jlindemann.science.model.Element
3033
import com.jlindemann.science.model.ElementModel
@@ -58,9 +61,10 @@ class ElementInfoActivity : InfoExtension() {
5861
var ElementSendAndLoadValue = ElementSendAndLoadPreference.getValue()
5962
setContentView(R.layout.activity_element_info)
6063
Utils.fadeInAnim(findViewById<ScrollView>(R.id.scr_view), 300)
64+
6165
readJson()
6266
findViewById<CardView>(R.id.shell).visibility = View.GONE
63-
findViewById<RealtimeBlurView>(R.id.detail_emission).visibility = View.GONE
67+
findViewById<CardView>(R.id.detail_emission).visibility = View.GONE
6468
detailViews()
6569
offlineCheck()
6670
nextPrev()
@@ -77,6 +81,25 @@ class ElementInfoActivity : InfoExtension() {
7781
val intent = Intent(this, SubmitActivity::class.java)
7882
startActivity(intent)
7983
}
84+
findViewById<TextView>(R.id.get_pro_btn).setOnClickListener {
85+
val intent = Intent(this, ProActivity::class.java)
86+
startActivity(intent)
87+
}
88+
//Check if PRO version and if make changes:
89+
val proPref = ProVersion(this)
90+
var proPrefValue = proPref.getValue()
91+
if (proPrefValue==100) {
92+
proChanges()
93+
}
94+
else {
95+
findViewById<LinearLayout>(R.id.more_properties).visibility = View.INVISIBLE
96+
}
97+
98+
}
99+
100+
private fun proChanges() {
101+
findViewById<FrameLayout>(R.id.pro_box).visibility = View.GONE
102+
findViewById<LinearLayout>(R.id.more_properties).visibility = View.VISIBLE
80103
}
81104

82105
override fun onBackPressed() {

0 commit comments

Comments
 (0)