File tree Expand file tree Collapse file tree 6 files changed +48
-0
lines changed
Expand file tree Collapse file tree 6 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -65,4 +65,8 @@ dependencies {
6565 implementation ' com.android.support:support-v13:27.1.1'
6666 debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.5'
6767 releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5'
68+
69+ // AboutLibraries
70+ implementation " com.mikepenz:aboutlibraries:6.1.1"
71+
6872}
Original file line number Diff line number Diff line change 1515import com .google .zxing .client .android .Intents ;
1616import com .google .zxing .integration .android .IntentIntegrator ;
1717import com .google .zxing .integration .android .IntentResult ;
18+ import com .mikepenz .aboutlibraries .LibsBuilder ;
1819
1920
2021public class MainActivity extends AppCompatActivity {
@@ -104,6 +105,10 @@ public void tabs(View view) {
104105 startActivity (intent );
105106 }
106107
108+ public void about (View view ) {
109+ new LibsBuilder ().start (this );
110+ }
111+
107112 @ Override
108113 protected void onActivityResult (int requestCode , int resultCode , Intent data ) {
109114 if (requestCode != CUSTOMIZED_REQUEST_CODE && requestCode != IntentIntegrator .REQUEST_CODE ) {
Original file line number Diff line number Diff line change 9898 android : layout_height =" wrap_content"
9999 android : text =" @string/tabs"
100100 android : onClick =" tabs" />
101+
102+ <Button
103+ android : layout_width =" wrap_content"
104+ android : layout_height =" wrap_content"
105+ android : text =" @string/about"
106+ android : onClick =" about" />
107+
108+
101109 </LinearLayout >
102110
103111
Original file line number Diff line number Diff line change 1616 <string name =" turn_off_flashlight" >Turn off Flashlight</string >
1717 <string name =" title_activity_tabbed_scanning" >Tabbed Scanning</string >
1818 <string name =" tabs" >Tabs</string >
19+ <string name =" about" >About</string >
1920
2021</resources >
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ android {
4848 defaultConfig {
4949 minSdkVersion 14
5050 }
51+
52+ buildTypes {
53+ debug {
54+ versionNameSuffix " .debug"
55+ resValue " string" , " app_version" , " ${ defaultConfig.versionName}${ versionNameSuffix} "
56+ }
57+ release {
58+ resValue " string" , " app_version" , " ${ defaultConfig.versionName} "
59+ }
60+ }
5161}
5262
5363task sourceJar (type : Jar ) {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+
3+ <resources xmlns : tools =" http://schemas.android.com/tools" tools : ignore =" ResourceName" >
4+ <string name =" define_zxingandroidembedded" translatable =" false" />
5+ <!-- Author section -->
6+ <string name =" library_zxingandroidembedded_author" translatable =" false" >JourneyApps</string >
7+ <string name =" library_zxingandroidembedded_authorWebsite" translatable =" false" >https://journeyapps.com/</string >
8+ <!-- Library section -->
9+ <string name =" library_zxingandroidembedded_libraryName" translatable =" false" >ZXing Android Embedded</string >
10+ <string name =" library_zxingandroidembedded_libraryDescription" translatable =" false" >Barcode scanning library for Android, using ZXing for decoding.</string >
11+ <string name =" library_zxingandroidembedded_libraryWebsite" translatable =" false" >https://github.com/journeyapps/zxing-android-embedded</string >
12+ <string name =" library_zxingandroidembedded_libraryVersion" translatable =" false" />
13+ <!-- OpenSource section -->
14+ <string name =" library_zxingandroidembedded_isOpenSource" translatable =" false" >true</string >
15+ <string name =" library_zxingandroidembedded_repositoryLink" translatable =" false" >https://github.com/journeyapps/zxing-android-embedded</string >
16+ <!-- License section -->
17+ <string name =" library_zxingandroidembedded_licenseId" translatable =" false" >apache_2_0</string >
18+ <!-- Custom variables section -->
19+ </resources >
20+
You can’t perform that action at this time.
0 commit comments