Commit Graph

52 Commits

Author SHA1 Message Date
ibaker 73f28d4829 Fix `core_settings.gradle` to not assume `exoplayerRoot` is absolute
Gradle warns against passing a relative path to `new File(String)`:
https://docs.gradle.org/current/userguide/working_with_files.html#sec:single_file_paths

This change fixes all usages of `exoplayerRoot` to pass it to Gradle's
`Project.file()` first, which returns an absolute `File`.

To reproduce the problem in Issue: #8927:
1. Checkout ExoPlayer git project, to e.g. `~/ExoPlayer/exoplayer-git`
2. Create a new Android Studio project in e.g. `~/AndroidStudioProjects/exoplayer-test`
3. Edit the new project's `settings.gradle` file as described in
   https://github.com/google/ExoPlayer/blob/release-v2/README.md
   using a relative path for `exoplayerRoot`:
   ```
   gradle.ext.exoplayerRoot = '../../ExoPlayer/exoplayer-git'
   ```
4. In a shell:
   ```bash
   $ cd ~/AndroidStudioProjects/exoplayer-test/app
   $ ../gradlew build
   ```

(Step 4 is important, it seems running `./gradlew` from the project root
doesn't trigger the relative path problem)

This change fixes the problem, and also works with `exoplayerRoot` as a
`File` or `Path` object. `String`, `File` and `Path` all work with relative or
absolute paths:
```
gradle.ext.exoplayerRoot = '/home/ibaker/ExoPlayer/exoplayer-git'
gradle.ext.exoplayerRoot = '../../ExoPlayer/exoplayer-git'
gradle.ext.exoplayerRoot = new File('/home/ibaker/ExoPlayer/exoplayer-git')
gradle.ext.exoplayerRoot = new File('../../ExoPlayer/exoplayer-git')
gradle.ext.exoplayerRoot = Paths.get('/home/ibaker/ExoPlayer/exoplayer-git')
gradle.ext.exoplayerRoot = Paths.get('../../ExoPlayer/exoplayer-git')
```

Note: The Path versions above require importing `java.nio.file.Paths`
and changing the `apply from:` line in the project's settings.gradle
file to something like:
```
apply from: file(gradle.ext.exoplayerRoot.resolve('core_settings.gradle'))
```
It's assumed that a project wanting to pass a `Path` will make these
changes.

Issue: #8927
PiperOrigin-RevId: 374421627
2021-05-19 20:23:13 +01:00
ibaker 36533dcbaf Clarify the exoplayerRoot path must be absolute in README.md#locally
Issue: #8927

#minor-release

PiperOrigin-RevId: 373752448
2021-05-14 11:25:07 +01:00
andrewlewis 86a0a405b6 Update instructions for GMaven releasing
Issue: #5246

#minor-release

PiperOrigin-RevId: 366041182
2021-04-01 16:05:53 +01:00
bachinger d34889d7b5 Add version to README
Issue: #7801
PiperOrigin-RevId: 328529525
2020-08-26 16:40:23 +01:00
ibaker 1983667845 Add a `cd` command to ExoPlayer clone instructions
With this missing, the `checkout` command errors with:
$ git checkout release-v2
fatal: not a git repository (or any of the parent directories): .git
PiperOrigin-RevId: 270670796
2019-10-02 21:25:23 +01:00
tonihei 1ee51518ae Use new exoplayer.dev domain everywhere.
The old domain automatically forwards to the new one. For consistency, change
all doc and code references regardless.

Also adds GitHub CNAME config file which configures our page for the custom
domain.

PiperOrigin-RevId: 243592110
2019-04-16 15:25:27 +01:00
aquilescanta f566c9486c Remove app-specific build configurations recommendations from dev-guide and readme
Issue:#5572
PiperOrigin-RevId: 238401862
2019-03-15 04:53:47 +00:00
tonihei 8792c20be5 Update README and dev guide with Java 8 config for Kotlin.
Setting the target conpatibility only seems to work for Java. Added the
equivalent Kotlin config options to the docs.

Issue:#5276
PiperOrigin-RevId: 228482496
2019-01-14 23:57:03 +00:00
olly 894bac6173 Tweak dev guide / readme
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=220059244
2018-11-06 11:07:06 +00:00
tonihei 58f50ca655 Clarify Java 8 gradle requirement in developer guide.
Issue:#5026

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=219454985
2018-10-31 14:02:24 +00:00
tonihei 2d63be0962 Swap google() and jcenter() in docs and gradle config.
This seems to be more stable in case Bintray has issues updating the ExoPlayer
sources.

Issue:#4997

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=218327350
2018-10-24 18:36:18 +01:00
Oliver Woodman aa57062199 Restore equivalence 2018-02-27 13:57:18 +00:00
Aditya Anand 707b481f2c
replace 'compile' with 'implementation' 2018-02-26 09:11:02 +05:30
eguven 8f1ef6a29a Typo fixes
Issue:#3631

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180197723
2018-01-03 13:34:36 +00:00
andrewlewis 70169af6a0 Update version strings
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176989632
2017-11-27 13:51:34 +00:00
olly 75d5adce6f Update dependency versions
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168194589
2017-09-15 23:23:16 +01:00
olly ba0bd72919 Fix typo
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167474040
2017-09-04 10:28:54 +01:00
olly 57bad31e4c Update documentation with new demo app location
Plus a few misc doc fixes / adjustments

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=166323135
2017-08-29 22:54:26 +01:00
olly 34960ad891 Tweak and add READMEs + remove refs to V1
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165578518
2017-08-17 22:59:34 +01:00
olly 757bcf7c63 Update instructions to include Google Maven repository
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165291982
2017-08-17 22:39:15 +01:00
olly d5c2cf79f4 Update READMEs with new local build instructions
Issue: #2851
Issue: #2974

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=160290097
2017-06-28 22:26:05 +01:00
olly 3c49044fb4 Updates for ExoPlayer modularization
- Update relevant documentation
- Use individual modules for the demo app. Given it's
  preferable to use them over the full library, and that
  many people probably use the demo app as a starting
  point, we should set the right example even though we
  currently need to include all of them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153454898
2017-04-18 19:43:41 +01:00
olly 2cf339e095 Bump version to 2.0.2 + document inclusion of OkHttp extension
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135260806
2016-10-05 21:20:34 +01:00
[]inger 669cf6804a Mention jcenter and gradle dependency in dev guide and Github readme.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=134056007
2016-09-28 11:25:40 +01:00
olly 76bb10428b Fix broken link
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130512224
2016-08-31 15:25:07 +01:00
olly 5eb6190682 Fix branch documentation
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=128707067
2016-07-28 20:04:40 +01:00
olly d3cd0c2ee4 Fix another broken link (by removal).
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=126789395
2016-07-07 20:47:03 +01:00
olly ebc5f0e7be Update README/RELEASENOTES from main.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=119211619
2016-06-15 19:39:06 +01:00
olly 1ead229ac5 Misc configuration updates for V2.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117242101
2016-06-15 19:38:05 +01:00
ojw28 3f05ddbcc1 Enforce 80 char line limit in README.md 2015-12-16 20:55:04 +00:00
Oliver Woodman 0dbd7aae54 Restore correct version of README (oops). 2015-12-16 20:49:19 +00:00
eguven f16b8baf75 ExtractorInput new skip methods to make skip methods analogous to the three read methods.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=110155932
2015-12-16 20:41:51 +00:00
ojw28 7bc341f385 Update README.md 2015-12-10 18:16:27 +00:00
ojw28 8a839fcf95 Update README.md 2015-12-10 18:13:27 +00:00
ojw28 4ff5b1f06b Update README.md 2015-12-10 18:12:16 +00:00
ojw28 f2f3f01d61 Update README.md 2015-12-10 18:10:30 +00:00
ojw28 748e5f3013 Update README.md 2015-12-10 18:08:39 +00:00
ojw28 247ac80b52 Update README.md 2015-12-10 18:06:46 +00:00
Ryan Seys f8b9357955 Clean up README.md
- Remove redundant Readme in title
- Remove unnecessary Description header
- Move installation steps to immediately follow description
- Reword some parts for clarification
2015-12-10 09:47:03 -08:00
Oliver Woodman 19552f8e48 Update README 2015-05-22 20:47:49 +01:00
Oliver Woodman d0ea014ba3 Tweak documentation 2015-05-19 13:54:59 +01:00
Oliver Woodman b7b9dc1c2e Fix javadoc location in readme 2015-05-12 17:02:47 +01:00
Oliver Woodman fc31992a01 Update README 2 2015-05-12 10:43:22 +01:00
Oliver Woodman 639690079e Tweak README 2015-05-12 10:12:22 +01:00
Oliver Woodman acad036b80 Fix link 2015-05-11 21:24:31 +01:00
Oliver Woodman 4cebae7dce Update README 2015-05-11 21:23:12 +01:00
Oliver Woodman ed0b02d09b Package restructuring to accommodate incoming features (sorry).
This may be painful in terms of applications having to change their
imports. Sorry about that.
2015-01-27 17:00:46 +00:00
Oliver Woodman da26b03d9c Minor setup tweaks. 2014-11-03 12:01:25 +00:00
rejasupotaro e33f5a514c Update README.md 2014-07-18 23:14:07 +09:00
Oliver Woodman 1ed65dfb85 Add some additional information to README.md. 2014-07-18 14:37:46 +01:00