Skip to content

Commit aff8349

Browse files
add license check (#23)
1 parent 1f0350b commit aff8349

File tree

52 files changed

+705
-52
lines changed

Some content is hidden

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

52 files changed

+705
-52
lines changed

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apply plugin: "com.android.application"
22
apply plugin: "kotlin-android"
33
apply plugin: "kotlin-android-extensions"
4-
apply from: "$rootProject.projectDir/spotless.gradle"
54

65
android {
76
compileSdkVersion androidCompileSdkVersion

app/src/main/java/com/qifan/powerpermission/MainActivity.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission
217

318
import android.content.Intent

app/src/main/java/com/qifan/powerpermission/activity/ExampleActivity.kt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.activity
217

318
import android.Manifest
@@ -6,7 +21,12 @@ import androidx.appcompat.app.AppCompatActivity
621
import com.qifan.powerpermission.Permission
722
import com.qifan.powerpermission.PowerPermission
823
import com.qifan.powerpermission.R
9-
import com.qifan.powerpermission.data.*
24+
import com.qifan.powerpermission.data.granted
25+
import com.qifan.powerpermission.data.hasAllGranted
26+
import com.qifan.powerpermission.data.hasPermanentDenied
27+
import com.qifan.powerpermission.data.hasRational
28+
import com.qifan.powerpermission.data.permanentDenied
29+
import com.qifan.powerpermission.data.rational
1030
import com.qifan.powerpermission.databinding.ActivityExampleBinding
1131

1232
class ExampleActivity : AppCompatActivity() {

app/src/main/java/com/qifan/powerpermission/childfragment/ExampleChildContainerFragment.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.childfragment
217

318
import android.os.Bundle

app/src/main/java/com/qifan/powerpermission/childfragment/ExampleChildFragment.kt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.childfragment
217

318
import android.Manifest
@@ -10,7 +25,12 @@ import androidx.fragment.app.Fragment
1025
import com.qifan.powerpermission.Permission
1126
import com.qifan.powerpermission.R
1227
import com.qifan.powerpermission.askPermissions
13-
import com.qifan.powerpermission.data.*
28+
import com.qifan.powerpermission.data.granted
29+
import com.qifan.powerpermission.data.hasAllGranted
30+
import com.qifan.powerpermission.data.hasPermanentDenied
31+
import com.qifan.powerpermission.data.hasRational
32+
import com.qifan.powerpermission.data.permanentDenied
33+
import com.qifan.powerpermission.data.rational
1434
import com.qifan.powerpermission.databinding.FragmentChildExampleBinding
1535
import com.qifan.powerpermission.rationale.createDialogRationale
1636
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

app/src/main/java/com/qifan/powerpermission/coroutines/CoroutinesActivity.kt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.coroutines
217

318
import android.Manifest
419
import android.os.Bundle
520
import androidx.appcompat.app.AppCompatActivity
621
import com.qifan.powerpermission.Permission
722
import com.qifan.powerpermission.R
8-
import com.qifan.powerpermission.data.*
23+
import com.qifan.powerpermission.data.PermissionResult
24+
import com.qifan.powerpermission.data.granted
25+
import com.qifan.powerpermission.data.hasAllGranted
26+
import com.qifan.powerpermission.data.hasPermanentDenied
27+
import com.qifan.powerpermission.data.hasRational
28+
import com.qifan.powerpermission.data.permanentDenied
29+
import com.qifan.powerpermission.data.rational
930
import com.qifan.powerpermission.databinding.ActivityCoroutinesExmapleBinding
1031
import com.qifan.powerpermission.rationale.createDialogRationale
1132
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

app/src/main/java/com/qifan/powerpermission/fragment/ExampleFragment.kt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.fragment
217

318
import android.Manifest
@@ -10,7 +25,12 @@ import androidx.fragment.app.Fragment
1025
import com.qifan.powerpermission.Permission
1126
import com.qifan.powerpermission.R
1227
import com.qifan.powerpermission.askPermissions
13-
import com.qifan.powerpermission.data.*
28+
import com.qifan.powerpermission.data.granted
29+
import com.qifan.powerpermission.data.hasAllGranted
30+
import com.qifan.powerpermission.data.hasPermanentDenied
31+
import com.qifan.powerpermission.data.hasRational
32+
import com.qifan.powerpermission.data.permanentDenied
33+
import com.qifan.powerpermission.data.rational
1434
import com.qifan.powerpermission.databinding.FragmentExampleBinding
1535
import com.qifan.powerpermission.rationale.createDialogRationale
1636
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

app/src/main/java/com/qifan/powerpermission/livedata/LiveDataActivity.kt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.livedata
217

318
import android.Manifest
@@ -6,7 +21,13 @@ import androidx.appcompat.app.AppCompatActivity
621
import androidx.lifecycle.Observer
722
import com.qifan.powerpermission.Permission
823
import com.qifan.powerpermission.R
9-
import com.qifan.powerpermission.data.*
24+
import com.qifan.powerpermission.data.PermissionResult
25+
import com.qifan.powerpermission.data.granted
26+
import com.qifan.powerpermission.data.hasAllGranted
27+
import com.qifan.powerpermission.data.hasPermanentDenied
28+
import com.qifan.powerpermission.data.hasRational
29+
import com.qifan.powerpermission.data.permanentDenied
30+
import com.qifan.powerpermission.data.rational
1031
import com.qifan.powerpermission.databinding.ActivityLiveDataBinding
1132
import com.qifan.powerpermission.rationale.createDialogRationale
1233
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

app/src/main/java/com/qifan/powerpermission/rx/RxJava2Activity.kt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.rx
217

318
import android.Manifest
@@ -7,7 +22,13 @@ import androidx.appcompat.app.AppCompatActivity
722
import com.jakewharton.rxbinding3.view.clicks
823
import com.qifan.powerpermission.Permission
924
import com.qifan.powerpermission.R
10-
import com.qifan.powerpermission.data.*
25+
import com.qifan.powerpermission.data.PermissionResult
26+
import com.qifan.powerpermission.data.granted
27+
import com.qifan.powerpermission.data.hasAllGranted
28+
import com.qifan.powerpermission.data.hasPermanentDenied
29+
import com.qifan.powerpermission.data.hasRational
30+
import com.qifan.powerpermission.data.permanentDenied
31+
import com.qifan.powerpermission.data.rational
1132
import com.qifan.powerpermission.databinding.ActivityRx2ExmapleBinding
1233
import com.qifan.powerpermission.rationale.createDialogRationale
1334
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

app/src/main/java/com/qifan/powerpermission/rx/RxJava3Activity.kt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.qifan.powerpermission.rx
217

318
import android.Manifest
@@ -6,7 +21,13 @@ import android.util.Log
621
import androidx.appcompat.app.AppCompatActivity
722
import com.qifan.powerpermission.Permission
823
import com.qifan.powerpermission.R
9-
import com.qifan.powerpermission.data.*
24+
import com.qifan.powerpermission.data.PermissionResult
25+
import com.qifan.powerpermission.data.granted
26+
import com.qifan.powerpermission.data.hasAllGranted
27+
import com.qifan.powerpermission.data.hasPermanentDenied
28+
import com.qifan.powerpermission.data.hasRational
29+
import com.qifan.powerpermission.data.permanentDenied
30+
import com.qifan.powerpermission.data.rational
1031
import com.qifan.powerpermission.databinding.ActivityRx3ExmapleBinding
1132
import com.qifan.powerpermission.rationale.createDialogRationale
1233
import com.qifan.powerpermission.rationale.delegate.RationaleDelegate

0 commit comments

Comments
 (0)