-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from PhenoApps/dev
v1.0.1 release
- Loading branch information
Showing
17 changed files
with
397 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "694219135598", | ||
"firebase_url": "https://prospector-152d1.firebaseio.com", | ||
"project_id": "prospector-152d1", | ||
"storage_bucket": "prospector-152d1.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:694219135598:android:24dfad3f9a06a09627a47f", | ||
"android_client_info": { | ||
"package_name": "org.phenoapps.prospector" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "694219135598-cfgu6j9mod78hlt8pp1p4kt3t8f6jvg4.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyDTiJwSIZ-eqFpw-u6Qio5ddqR9NNQdG3s" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "694219135598-cfgu6j9mod78hlt8pp1p4kt3t8f6jvg4.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
app/src/main/java/org/phenoapps/prospector/activities/IntroActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package org.phenoapps.prospector.activities | ||
|
||
import android.os.Bundle | ||
import androidx.fragment.app.Fragment | ||
import com.github.appintro.AppIntro | ||
import com.github.appintro.AppIntroFragment | ||
import org.phenoapps.prospector.R | ||
|
||
class IntroActivity : AppIntro() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
// Make sure you don't call setContentView! | ||
|
||
isWizardMode = true | ||
|
||
askForPermissions(arrayOf(android.Manifest.permission.CAMERA, | ||
android.Manifest.permission.READ_EXTERNAL_STORAGE, | ||
android.Manifest.permission.WRITE_EXTERNAL_STORAGE), slideNumber = 1, required = false) | ||
|
||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.accept_permissions), | ||
description = getString(R.string.frag_instructions_step_zero), | ||
)) | ||
// Call addSlide passing your Fragments. | ||
// You can use AppIntroFragment to use a pre-built fragment | ||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.welcome), | ||
description = getString(R.string.frag_instructions_step_one), | ||
imageDrawable = R.drawable.icon_device_ap | ||
|
||
)) | ||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.choose_network), | ||
description = getString(R.string.frag_instructions_step_two), | ||
imageDrawable = R.drawable.choose_ap_wifi_network | ||
)) | ||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.check_connection), | ||
description = getString(R.string.frag_instructions_step_three), | ||
imageDrawable = R.drawable.icon_ap | ||
)) | ||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.prospector_workflow), | ||
description = getString(R.string.frag_instructions_step_four), | ||
imageDrawable = R.drawable.instructions_create_button | ||
)) | ||
addSlide(AppIntroFragment.newInstance( | ||
title = getString(R.string.iot_compatible), | ||
description = getString(R.string.frag_instructions_step_five), | ||
imageDrawable = R.drawable.iot_instructions | ||
)) | ||
} | ||
|
||
override fun onSkipPressed(currentFragment: Fragment?) { | ||
super.onSkipPressed(currentFragment) | ||
// Decide what to do when the user clicks on "Skip" | ||
finish() | ||
} | ||
|
||
override fun onDonePressed(currentFragment: Fragment?) { | ||
super.onDonePressed(currentFragment) | ||
// Decide what to do when the user clicks on "Done" | ||
finish() | ||
} | ||
} |
Oops, something went wrong.